I'm using the TWR-K60F120M with the TWR-SER board using both available serial ports at the same time. I have the shell running on the OSJTAG port without problem (ttyf) now I'm trying to use the serial port (ttyd) for a custom protocol, but for now, I'm just opening and writing a test string to the port. The open and write are not returning any errors, but the test strings are not what I'm reading from the TWR-SER connector. Instead, I'm seeing a duplicate of all the shell output from ttyf.
Any thoughts would be appreciated. I don't understand why I'm seeing this.
Tom
Solved! Go to Solution.
Hi Tom,
Not all tower designs (form, fit, functionality) are identical. Some Towers have independent UARTS going to the OSJTAG(debugger interface) and TWR-SER card. Other Towers have one UART going to both.
The TWR-K60F120M is one of the latter cases where the UART5/ttyf is going to both the OSJTAG and TWR-SER card. This has advantage of not having to change MQX code to use one or the other serial interface but has a negative that you only have access to one UART.
Regards,
David
Hi Tom,
Not all tower designs (form, fit, functionality) are identical. Some Towers have independent UARTS going to the OSJTAG(debugger interface) and TWR-SER card. Other Towers have one UART going to both.
The TWR-K60F120M is one of the latter cases where the UART5/ttyf is going to both the OSJTAG and TWR-SER card. This has advantage of not having to change MQX code to use one or the other serial interface but has a negative that you only have access to one UART.
Regards,
David