Usbdm for mc9s12dp512

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

Usbdm for mc9s12dp512

Jump to solution
2,141 Views
domenico_petruzzelli
Contributor I

Hi

I have problem... I want make a TLC test i open TLC program and i write connect... The software tell me usbdm device Is not open... In this mode i dont have possibility tò check a PIN status.

Help me pls

 

0 Kudos
Reply
1 Solution
2,104 Views
pgo
Senior Contributor V

Does TLC = TCL? ( I pronounce it tickle)

I presume you are talking about UsbdmScript?

If so:

UsbdmScript is not really intended as a general purpose program,  It is used behind the scenes by the programmers to customize connection sequences and such.

In any case the usual opening sequence is:

  • settarget HCS12 ;# select target family
  • openbdm ;# to open a detected USBDM that supports the target
  • reset sh ;# To reset a HCS12 target to a known state
  • connect

You can get a terse list of commands by typing '?'

bye

 

View solution in original post

0 Kudos
Reply
4 Replies
1,985 Views
domenico_petruzzelli
Contributor I

tnx for all

but when im arrive to reset s h have error.....RESET PIN TIMEOUT....

0 Kudos
Reply
2,105 Views
pgo
Senior Contributor V

Does TLC = TCL? ( I pronounce it tickle)

I presume you are talking about UsbdmScript?

If so:

UsbdmScript is not really intended as a general purpose program,  It is used behind the scenes by the programmers to customize connection sequences and such.

In any case the usual opening sequence is:

  • settarget HCS12 ;# select target family
  • openbdm ;# to open a detected USBDM that supports the target
  • reset sh ;# To reset a HCS12 target to a known state
  • connect

You can get a terse list of commands by typing '?'

bye

 

0 Kudos
Reply
2,084 Views
domenico_petruzzelli
Contributor I

Hi tnx

But i have problem... White tcl

The program stopped on connect

Tcl tell me 

No bdm RX....

0 Kudos
Reply
2,053 Views
pgo
Senior Contributor V

Hi,

I have been unable to find a mc9s12dp512 to test with although I have used similar chip previously.

The response you are getting indicates that it was unable to find the connection speed or the value obtained was out of range.  This would usually be because of a connection problem on the BDM interface.

Can't really say much else about it I'm afraid.

Does the stand-alone programmers work?  Are they able to connect?

What version of the programmer are you using?

A typical connection and result is given below:

UsbdmScript [~] settarget HCS12
USBDM DLL Version = 4.12.1.320
BDM List:
0 - USBDM-MK-9226EF6A : USBDM ARM-SWD for MK
Found 1 devices
:setTarget HCS12
UsbdmScript [~] settargetvdd 5
:setTargetVdd 5 (applied when target set)
UsbdmScript [~] openbdm
Opening USBDM-MK-9226EF6A
BDM Version = HW=5D, SW=57

UsbdmScript [~] reset s h
:reset 0x04(HARDWARE, SPECIAL)
UsbdmScript [~] connect
:connect
BDM status => Ackn, Speed-sync, Vpp-Off, Vdd-Internal, RSTO=1, No Reset, CFVx-running
Speed = 10000 kHz (768 ticks, sync=12.8 us)
Ackn, Speed-sync, Vpp-Off, Vdd-Internal, RSTO=1, No Reset, CFVx-running
UsbdmScript [~]

 You can also try the sync command which just tries to work out the communication speed.

I would suggest checking the connection to the target and target Vdd.  If an oscilloscope is available you can use the above command to check for activity on the BDM pins.

I would expect the connect to work even on a secured device.

bye

0 Kudos
Reply