Format Error message serial port ColdFire

Hello, I’ve an error message on a serial port. I’m working with FreeRTOS v6.0.1 and a ColdFire MCF5213. Everything work fine but when I add an “if” before to send message, instead of sending “1 2 3 4 5”, I have “Format Error – PC = 0X0030BE” Here’s the sending line :     vSerialPutString( xPortRF,trameTEST,5); and if I had this condition just before :     if (rxchar == (char)_ID)
   
the COM port will not work. Thank you for you help.

Format Error message serial port ColdFire

I have no idea and don’t think this is FreeRTOS related, but if add an if statement that will only send _ID to the COM port and nothing else then I would not expect it to work. You would have to provide a lot more code for somebody to be able to help, like what _ID actually is, but to be honest I don’t think this is the most appropriate place for the question.