Hello Everyone,
I'm very new to the CodeWarrior IDE. I have a couple of HC12 boards from college that I would like to begin experimenting with. Right now I'm having a problem connecting to my board. Would anyone be able to tell me why I'm getting these error messages?
I'm going through the tutorial in the CodeWarrior help documentation. I've been able to run the sample program using the simulator.
The problem is when I get to the serial interface parameters window. As you can see, it is seeing my board on my COM1 port.
I click on "Connect (Reset)" and I get the following errors, "Communications with the target failed: The target MCU has no clock or wrong BDM clock speed is used or derivative is secured".
Can anyone tell me what this means?
After the window above, I get:
Then I get:
After that I see:
I checked to see if I can get some sort of heartbeat from the board using the hyperterminal window in Windows XP and I can see the board is reporting something.
Here are the settings:
When I press the reset button on my board, I get the following read out.
So I know my problem is pilot error. All I need to know is what parameters I should be setting in the
"Connection Manager". Any help is appreciated.
Thanks!
Hi eda_support,
seems you are using different connection.
I assume you are using just serial RS232 cable to connect to the board.
The MCU runs D-Bug12. Unfortunately D-Bug12 is not more supported since CodeWarrior v4.5.
Anyway I'd suggest you to replace D-Bug12 firmware by SeriaMonitor (see AN2548) that is still supported in v5.0.
To do it you will need a BDM connection.
There are several threads about this topics: e.g.
Hi Stanish,
Thank you very much for responding.
Yes, I'm using the RS232 serial cable. I've been reading HCS12SerialMonitor_Dragon12.pdf which explains a work around for the BDM (Background Debug Mode) interface and it also reiterates what you have suggeted. Fortunatley I have two Dragon 12 boards. I'll check the app note out you suggested.
Should I upgrade to CodeWarrior v5.0?
Hello Everyone,
I'm going through the HCS12SerialMonitor_Dragon12.pdf document (which is specific for my board) and I'm getting stuck on the instructions described on page 11 (figure 10). I don't see that option available in my drop down menu.
I ended up selecting the P&E Multilink/Cyclone Pro option ( not sure if if this correct).
And I now get stuck as I describe in the first thread.
I tried to use AppNote recommended but it was to general. Being a novice, I'd like to understand the fundumentals before I move on to AN2548
For a HC12 Serial monitor, pick "Serial Monitor" in the list (at least I saw that entry in the CW for HC12 4.7 version) :smileyhappy:,
this automatically picks the right DLL, which is a manual next step in the pdf you referred too.
If you want to use the generic gdi protocol, a "set gdi" command from the command window offers this setup, but it is no longer needed for most (all?) of the use cases.
The P&E connection is to connect to a P&E pod, not to a serial monitor so I would not expect this to work.
Daniel
Hey CompilerGuru,
I'll try to use "Serial Monitor" next time it's available. I've been playing around with Dragon12 specific examples and I've found these have different options available in the drop down menu (see below).
"Simulator" simply simulates the code without loading on to the board. "Monitor" acutally loads it to the board and allows real time stepping or running of the code (awesome!).
So is it the "DLL" which allows the drop down menu to change??????
Hi Everyone,
I just wanted to update everyone on this. It appears there is something different with this example I'm trying to use. I changed it to a different LCD example and it was able to communicate and download to the board. The CodeWarrior Debug interface also works. I'm not sure what is wrong with my initial project but the led_test seemed to work fine.