problem with IAR code

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


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