I've been having issues with the serial port. I'm using MQX 3.8.1 on the TWR-K60F120M. I've seen a number of issues, but this small sample seems to capture the basic issue.
I've enabled UART3 "ITTYD", but not "TTYD". I've also changed the default baud rate to "19200".
Using the code in the attached file:
- it blocks on the first fgetc
- send one character to the serial port
- it receives a non-stop stream of the incoming character sent
- over time, the value read changes
In other examples, I've seen lots of other weird behavior.
Is there a known issue with this?
Thanks
rgeorge,
I have same board. I think that "ittyf" or "ttyf" should work, instead of "ittyd" or "ttyd".
I believe that UART5 ("ittyf") is connected to both RS-232 and OSBDM/OSJTAG (USB J13). I hope this will help you.
You can check my other post about this topic.
Lisa
Hi All,
Lisa is correct that be default the user_config.h has the #define enabled (set to 1) for the ttfy (polled mode).
The new Tower CPU cards have one device UART going to both the OSJTAG interface and the TWR-SER card DB-9 serial connector.
Please make sure you have re-compiled the PSP, BSP, (and any other RTOS components you might be using) whenever you change the user_config.h.
Also please read the following:
C:\Freescale\Freescale MQX 3.8b1\doc\FSL_MQX_getting_started.pdf
Section 7.1.8 has the board jumper setting for the MCU and TWR-SER card. By default the kits are not setup to what MQX is wants.
Hope this helps.
Regards,
David