problem using two serial devices at the same time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

problem using two serial devices at the same time

ソリューションへジャンプ
683件の閲覧回数
tschtj
Contributor I

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

0 件の賞賛
1 解決策
483件の閲覧回数
DavidS
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

0 件の賞賛
1 返信
484件の閲覧回数
DavidS
NXP Employee
NXP Employee

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

0 件の賞賛