I am trying to get a printf() to display some text on the component (virtual) terminal.
The code runs fine on a real development board from Wytec (Dragon-12). But what I am trying to do is have the code display some stuff on the virtual terminal.
I traced the code and found that it gets stuck in the following line of code:
while (!(SCI.SCxSR1 & 0x80)) {};
For some reason or another, printf gets stuck in this line of code.
Any ideas as to what is going on?
The code above was taken straight from termiosci.c provided by freescale.
Any help is greatly appreciated.
Thanks
已解决! 转到解答。