MQX 3.8.1 Interrupt based Serial Driver and TWR-K60F120M

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX 3.8.1 Interrupt based Serial Driver and TWR-K60F120M

715 Views
rgeorge
Contributor I

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

 

0 Kudos
2 Replies

326 Views
lisa_tx
Contributor III

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

0 Kudos

326 Views
DavidS
NXP Employee
NXP Employee

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  

0 Kudos