Getting serial out in CW 10.2 and MQX 3.8

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

Getting serial out in CW 10.2 and MQX 3.8

ソリューションへジャンプ
1,537件の閲覧回数
intevac_coder
Contributor III

Hello!

What changes need to be made to get the K40 tower to output serial data to the serial port card so I can read the data stream in Hyperterminal?  I had this all fixed up in MQX 3.7 but that doesn't seem to work in 3.8.

 

I've changed user_config.h

 BSPCFG_ENABLE_TTYD 1

 

and changed twrk40x256.h

#ifndef BSP_DEFAULT_IO_CHANNEL
#if BSPCFG_ENABLE_TTYA
//#define BSP_DEFAULT_IO_CHANNEL "ttya:" /* OSJTAG-COM polled mode */
#define BSP_DEFAULT_IO_CHANNEL "ttyd:" // Tower serial polled mode
#define BSP_DEFAULT_IO_CHANNEL_DEFINED
#else
//#define BSP_DEFAULT_IO_CHANNEL NULL
#endif
#endif

 

It's always a challenge to get this running again. Thanks!

0 件の賞賛
返信
1 解決策
1,133件の閲覧回数
c0170
Senior Contributor III

Hi intevac coder,

 

it is the same procedure as in 3.7 to set the default IO channel.

If you did not set TTYA, then your TTYD channel was not set as default because your condition is #if BSPCFG_ENABLE_TTYA.

With correction:

#ifndef BSP_DEFAULT_IO_CHANNEL
#if BSPCFG_ENABLE_TTYD
#define BSP_DEFAULT_IO_CHANNEL "ttyd:" // Tower serial polled mode
#define BSP_DEFAULT_IO_CHANNEL_DEFINED
#else
#define BSP_DEFAULT_IO_CHANNEL NULL
#endif
#endif

 

Regards,

MartinK

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,134件の閲覧回数
c0170
Senior Contributor III

Hi intevac coder,

 

it is the same procedure as in 3.7 to set the default IO channel.

If you did not set TTYA, then your TTYD channel was not set as default because your condition is #if BSPCFG_ENABLE_TTYA.

With correction:

#ifndef BSP_DEFAULT_IO_CHANNEL
#if BSPCFG_ENABLE_TTYD
#define BSP_DEFAULT_IO_CHANNEL "ttyd:" // Tower serial polled mode
#define BSP_DEFAULT_IO_CHANNEL_DEFINED
#else
#define BSP_DEFAULT_IO_CHANNEL NULL
#endif
#endif

 

Regards,

MartinK

0 件の賞賛
返信
1,133件の閲覧回数
intevac_coder
Contributor III

MartinK,

 

Thanks, that change worked.

0 件の賞賛
返信