codewarrior 10.1    MCF52233   printf

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

codewarrior 10.1    MCF52233   printf

ソリューションへジャンプ
977件の閲覧回数
rlstraney
Contributor III

I am using codewarrior 10.1 Targeting a MCF52233 on a demo board. 

 

When I create a bareboard project and have codewarrior create main.c there is a printf statement in the code.   I want the text in the printf to go out uart0 so that I can capture the string on hyperterminal connected to the board’s DB9.

 

What I have done:

I generated the project and chose “None” for Rapid application development..

I edited support_common.h and set ENABLE_UART_SUPPORT to a 1.

I edited main.c and added:

#include “uart_support.h”

and I added:

uart_init(TERMINAL_PORT, SYSTEM_CLOCK_KHZ, TERMINAL_BAUD);

 

 

Note that: TERMINAL_PORT and SYSTEM_CLOCK_KHZ and TERMINAL_BAUD are set in mcf52233_sysinit.h.

 

When I debug the code the printf is definitely executed however hyperterminal never receives the string.

 

FYI:  I set hyperterminal to

19200

8 data bits

no parity

1 stop bit

no flow control

 

 

I suspect this is probably something trivial to fix however I haven’t found the solution yet – any suggestions?

 

Thanks

Renee

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
619件の閲覧回数
MCF52233
Contributor III

Hi Renee,

 

I guess u tried out with new project wizard with MCF52233 as ur board.

 

Instead of try selecting MCF52233DEMO board.

 

I hope it will help.

 

Regards,

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
620件の閲覧回数
MCF52233
Contributor III

Hi Renee,

 

I guess u tried out with new project wizard with MCF52233 as ur board.

 

Instead of try selecting MCF52233DEMO board.

 

I hope it will help.

 

Regards,

0 件の賞賛
返信
619件の閲覧回数
rlstraney
Contributor III

Abhijit

 

Thank you so much - that works.   I'd like to know what the difference is between selecting MCF52233 and MCF52233DEMO. 

 

I will do a comparison between the two directories and see if I can understand why the original didn't work.  

 

Thank you

Renee

 

0 件の賞賛
返信