problem with IAR code

Status
Not open for further replies.

STP.Asghari

New Member
Hello
I wrote a program in IAR. The program has an error when executing the following line.

UART1_SendData8("A");

The complete program file is available below.
I would be grateful if you could tell me the mistakes of my code.
 

Attachments

  • 2.rar
    612.7 KB · Views: 214
I don't like opening RAR files but my experience with IAR is rusty..

Normally you need to fill in the putch() funtion to divert traffic to the correct peripheral.. What system are you using as when I used IAR, it was for Hitachi H8 systems
 
Try putting the A in single quotes?

UART1_SendData8('A');

Single quotes denote a char value, double would normally be a pointer to a character array string.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…