I am new to C and am trying to read the characters in a string serially but I keep getting the error

makes pointer from integer without a cast

This is my code

void UART1PutChar(char Ch)
    //char data;
    //transmit only if Tx buffer is empty
    while(U1STAbits.UTXBF ==1);
    U1TXREG = Ch;
// Send a zero-terminated string to UART 1
void UART1SendStringSerially(char *string)

int main(void)

Why do I get such an error? How can this be solved? Thanks

Recommended Answers

'Hello' should be "Hello".

Jump to Post

All 2 Replies

'Hello' should be "Hello".

Thanks a lot :) Problem solved :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.