cw and serial monitor

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

cw and serial monitor

2,873 Views
sprince
Contributor I
New to cw and trying to use it with the serial monitor.  No problems changing the target from simulator to serial monitor, and am able to erase and program the board (tech arts adapt12x board).
 
My question is:  shouldn't I be able to single step thru the code and have it execute step by step?  What am I supposed to see on the screen telling me the program is running?
 
Thanx
S. Prince
Labels (1)
Tags (1)
0 Kudos
6 Replies

827 Views
sprince
Contributor I
codewarrior 4.6
hc12x
 
Well, I guess that's what is happening. 
 
Here's what I understand:  The board comes with a version of serial monitor.  I can create a file in CW with debugging set to simulator, then change it to serial monitor when actually in the debugger.  I can communicate with the board and burn my program.  I can even run the program successfully if I switch the board jumper to "run" mode.  The only thing I can't do is debug it inside of CW.  I get the same error over and over.....illegal breakpoint.
 
Just seems kind of odd to me that freescale would promote the use of CW with the serial monitor for the s12, then not support it for the s12x.  If I would have known this, I wouldn't have picked the x series for my project.  I mean, it's a great concept, right?  You use CW and the serial monitor in the degugger and you don't even need a BDM pod.
 
Thanx
S. Prince
0 Kudos

827 Views
sprince
Contributor I
Sorry about the protocol...
 
Chip: hc912x
Codwarrior 4.6
Tech Arts adapt12x
 
The board comes with a version of the serial monitor program in it.  When you begin using the CW debugger, serial monitor is an option.  So, I tell it to load, it erases the eeprom, and loads the program (i think).
 
That's not my question.....if I just run the debugger in the simulation mode, I can single step thru the code and watch the datascreens/registers change.  I should be able to single step thru the code as it executes inside of the processor, right?  How do I do this?  What docs should I read?
 
thanx
 
S. Prince
0 Kudos

827 Views
CrasyCat
Specialist III
Hello
 
I am not sure which monitor is delivered with the board you are speaking about.
As far as I know CodeWarrior does not support Serial monitor for HCS12X.
We support Serial Monitor for HCS12, but we only support (validate) connection to Freescale serial monitor.
 
I do not know what Tech Arts provides as monitor, but I am not sure it uses the same protocol as the Freescale one. Additionally as the whole debug module has changed between HCS12 and HCS12X, debugger will not be able to handle breakpoint in flash on HCS12X.
 
If you are looking for a low cost debug solution on HCS12X I would recommend you to look into TBDML connection.
 
I hope this helps.
 
CrasyCat
0 Kudos

827 Views
Alban
Senior Contributor II
Hello Sprince,
 
Step by step debugging in the MCU will work the same way as with the simulator.
To execute the code, you press the green "play" button and the MCU runs either until the soft crashes, or until you press the STOP button.
 
As long as the Stop button is enabled and the play button is grayed out, it means the MCU is running.
 
Cheers,
Alban.
0 Kudos

827 Views
CrasyCat
Specialist III
Hello
 
Where did you find source code for that monitor?
As far as I know there is only source code for Serial Monitors for HCS12 MCUs on the Freescale web page.
 
CrasyCat
0 Kudos

827 Views
Alban
Senior Contributor II
Hello,

Please refer to the following post:
[IMPORTANT] When Asking about CODEWARRIOR !!!

It is at the top of the list and in Bold.

Alban.
0 Kudos