Hi everyone,
so far I have been able to solve all my problems with Stellaris Launchpad, often thanks to this great forum. But this time I encountered a problem which is beyond me or my web searching skills.
I am trying to read from UART0, which is connected to my PC. I have a UART interrupt handler, which reads 5 bytes containing a 1byte command_id and a 4 byte float value. This float value is supposed to set one of my PID controller constants.
The problem is that everything works fine as long as I start the program using Debugger in CCS - meaning I hit the Debug button, the code is loaded and the I press run. The values I send from my commputer are read correctly, the command_id is recognized and the float value used to set the PID.
However, as soon as I DON'T use the Debug button in CCS, but simply turn on the Stellaris board and try to repeat this procedure the values read from my PC are completely wrong.
If I start the MCU execution by the Debug button and loading the code, then even if I turn the Debugger off, the UART still works fine. But if I don't use the Debugger, UART "reacts" to those command, but reads messed up values.
Is there a specific thing the Debugger does to the behavior of UART0 on Stellaris which would explain this behavior?
I would be glad for any help.
With regards,
Cenek
P.S. I would post my code, but I am not sure how to post it correctly using this board, so if anyone would find it useful please give me a hint and I will post it:)