P&E Multilink, can't communicate / unable to load and S12

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

P&E Multilink, can't communicate / unable to load and S12

3,004 Views
kef
Specialist I

I hope this will help someone. I remember there was a thread where someone had problems talking to the target, while all possible clues seemed to be eliminated.

I have S12C target board, were Vcc=3.3V was not wired to BDM connector. CW 5.1 debugger was unable to connect and program until I wired Vcc to pin6 of BDM connector. Communication dialog every time showed different values for IO_DELAY_CNT. I think it's a bug. I specify known correct IO_DELAY_CNT value, but it is everytime superseded by debugger detected value. I think "Autodetect communication speed" mode should be used for autocalculation of IO_DELAY_CNT?

It is weird that NoICE debugger was communicating fine without Vcc on pin6. After wiring Vcc to pin6 both debuggers are working fine.

Labels (1)
Tags (1)
0 Kudos
5 Replies

844 Views
Yuping
Contributor I

Hi Kef,

 

Thank you for the info!

I am working with the M68EVB912B32 board with CodeWarrior 5.1.

I have a 12V supply to the Vpp input and connected W7 jumper to Vpp.

The PE Micro USB Multilink is connected to BDM IN (W9) on the board.

When I try to debug a simple project, I got the following error:

 

Communications with the target failed:

The target MCU has no clock or wrong BDM clock speed is used or derivative is secured.

 

In Command window, I see

Could not find appropriate io_delay_cnt.

 

I checked HC12MultilinkCyclonePro communication settings,

BDM Communications Speed was set to Autodetect communications speed.

 

Do you have any idea about this?

Also when you say NoICE, what is that? Do I need to install it?

 

I saw this on one webpage

Tie the MODA and MODB pins of your target to ground (Single Chip mode). If you are using these pins as port pins, you may need extra circuitry to hold the pins low during reset. In conjunction with the BDM pod, NoICE will start the chip in Special Single Chip mode. If you start in any other mode, the processor will begin executing instructions immediately, and NoICE may not be able to control it.

 

The MODA and MODB pins are not used on my board, should I worry about it?

 

Thanks!

 

Yuping

0 Kudos

844 Views
kef
Specialist I

NoICE debugger can found here www.noicedebugger.com . Certainly you should try it. 

 

MODA/MODB pins are very important, since they determine operating mode out of reset. You should check if these pins are pulled low at reset. Most likely you won't be able to connect if any one of these is high.

0 Kudos

844 Views
Yuping
Contributor I

Hi Kef,

 

So you mean I can use NoICE instead of CodeWarrior, right?

But the problem is my professor wants us to use CodeWarrior to program and debug...

 

I'll try pulling MODA/MODV low and connect the board using CodeWarrior debugger first. I'm sure I'll come back with more questions... Thank you!!

0 Kudos

844 Views
kef
Specialist I

Just try to figure if you get better results with flash programming using NoICE. HC12 B32 is very old device, and it might be that there was some change in last CW versions that broke B32 support. You should have somewhere original CW version that came with your board. V2.0 maybe. It makes sense to try that version too.

0 Kudos

844 Views
Yuping
Contributor I

Thanks, Kef!

It came with CW4.3. But I could not install it on my machine, that's why I am using CW5.1...

Maybe it's time to switch to a newer board...

 

0 Kudos