problem with IAR code

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.

it is very short code and the error occurs in the last line
and microcontroller modell is STM8S003F3

2.zip