Output Console on the Codewarrior

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

Output Console on the Codewarrior

Jump to solution
5,420 Views
farhud
Contributor III

Hi, I just got the EVB51JM128 (with the MCF51JM128) and have been playing around with the Codewarrior software. I can't find the output console on the Codewarrior. I tried to print some string but I just can't find out where it is printing. Does anyone know which option I need to select to see the output console on the Codewarrior?

Labels (1)
0 Kudos
1 Solution
1,482 Views
kef
Specialist I

v5.9 is IDE version, not product verion. In IDE click about, then Installed Products. On top you should see something like Codewarrior Development Suite for Microcontrollers V6.3.

 

Try without Device Initialize and Processor Expert. These don't like Console I/O enabled, so it's greyed out :smileyhappy:

View solution in original post

0 Kudos
6 Replies
1,482 Views
kef
Specialist I

While in debugger, try opening terminal component. IIRC debugging messages appear in terminal window if terminal component is mapped to nonexisting SCI0 port. But these communications are really slow and you shouldn't send too much and too fast.

0 Kudos
1,482 Views
farhud
Contributor III

Thanks for replying to my question. I opened the terminal component, but i didn't get any IIRC debugging message. Can you tell me how to map the terminal component to a non-existing SCI0? When I open the terminal component, I open the "Configure Terminal Connections" window. I set the Connections from Virtual SCI to Output file. Is that correct? By the way, I used either of the following commands for printing:   sprintf("Test");       OR      TERMIO_PutChar('c');

0 Kudos
1,482 Views
kef
Specialist I

IIRC is "if I recall correctly".

 

Are we talking about CW for MCUs V6.3? If so then

1) create new project. Being in "new project wizard", answer to "Would you like console io printf?" with "Enable Console Support".

2) Add to source file #include <stdio.h> and do some printf.

3) Click run and being in debugger go to Component menu, Open...and open Terminal window.

4) By default terminal I/O should be mapped to SCI0. You can verify that going to menu Terminal->Configure Cconnections... In Virtual SCI groupbox you should see Sci0.SerialOutput and Sci0.SerialInput. And if it so, then printf should work.

 

I'm checked that ith MCF51QE. And on MCF51QE there's no SCI0, first serial port is SCI1. Debugger is mapping BDM console to SCI0.

 

0 Kudos
1,482 Views
farhud
Contributor III

I am using CW v5.9 and it doesn't give an option to choose the "Enable Console Support" option (it's not highlighted). The "No Console Support" option is selected. Maybe I should ask for an upgrade or something from Freescale.

0 Kudos
1,483 Views
kef
Specialist I

v5.9 is IDE version, not product verion. In IDE click about, then Installed Products. On top you should see something like Codewarrior Development Suite for Microcontrollers V6.3.

 

Try without Device Initialize and Processor Expert. These don't like Console I/O enabled, so it's greyed out :smileyhappy:

0 Kudos
1,482 Views
farhud
Contributor III

Wow, lots of effort for such a tiny task! You are correct. When i choose the "Device Initialization" option in the project wizard it doesn't let me choose the "Enable Console". It seems like some part of memory get overlapped when this option is selected. Nonetheless, I didn't choose the "Device Initialization" option but ran it when the projected was created and it worked. By the way, my CW version is 6.2 and I used TERMIO_PutChar command to print a character. The printf didn't work. Not sure why. But thanks for your help.

0 Kudos