S12DP256, no Bootloader with menu, no D-BUG 12

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

S12DP256, no Bootloader with menu, no D-BUG 12

3,672 Views
Fruity
Contributor I
Hi,

I'm a student who is working at the moment on a HCS12 Board (Dragon 12) with CW 3.1.
I have some problems and i hope somebody can help me.

The first problem is that i'm not getting a menu in a hyper terminal from the Bootloader. When i flash some examples with CW (hi-Wave) they get in the flash 0x4000 and run . But opening a the hyperterminal (COM1,(9600/.../ I tried all),8,N,1,XON/XOFF) I don't get a menu.

The other problem is that i don't have a D-BUG12 Monitor on the µC. I have downloaded the software from Freescal but I can't flash the sourcecode. Here is the .s19 file

S2243880008A838A518A2589FC89BD8997895C891788EF88A388788844881387DE879F8754AD
S224388020870B86D6868E8668862785F085B88590855F852E84F984CA84898443841483CC82
S22438804083B2837D83658344830082E182CB82A28253820381CD81A78157811F80EE80BDB5
S22438806000003B3B87C76C80202EEC8059B746ECEA800016DFA8CCC58C16DFA8EC80C30027
S224388080016C80CE0017181504640DCC80A616DFA816DBB24AA4CF39EC8059B746ECEA80EF
S2243880A00026C71B840A507265737320416E79204B657920466F72204D6F726500202020F5

....

S22438BCC0806B80260BCC00024AACE0396B8027031B833DFD3C3615EB0038CC00024AAB1A3A
S22438BCE0396B8020EB43000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAC

__________________________HERE IS THE START OF PAGE 39

S2243980003B3BB746ECEB00003BCC837F16DFA81B82CC00016C802015EC80B745086E8059F0
S224398020ECEE3BCC837A16DFA81B82EC80EDF3000259ECEE26E2CC837416DFA8ED82EC4462

...

The download start's in hi-wave but at this codesection i get an error.
Memory 398000 .. 398002 is not exsisting/available.

I think the bootloader on the board is not understanding that on this codesegment must be a page-change (38 to 39).

So i hope someone can help me.

cya
Labels (1)
0 Kudos
7 Replies

769 Views
Fruity
Contributor I
Hi,

first thanks for your answers. But your files couldn't help me. I get the same error message only on a other adress. You can see my error windows at the attechment.
0 Kudos

769 Views
kwik
Contributor I
What kind of program is giving you this message?

If you buy a BDM from Wytec ,you can restore both the bootloader and Dbug12 ....I think someone has overwritten the bootloader ....

Message Edited by kwik on 2006-09-04 04:40 PM

0 Kudos

769 Views
Fruity
Contributor I
Hi,

for flashing my programm i use Hi-Wave in association with CW 3.1.

I think that i lost the DBUG12 and Bootloader but why can i flash my testprogramms (blinking LED) an so with the GDI Interface?

I would not buy a BDM because it's a EVB from school and i don't wanna pay it because the EVB is not my.
0 Kudos

769 Views
imajeff
Contributor III
Hi Fruity,

It sounds like you are using a Hi-Wave BDM debugger. That would most likely have erased D-Bug12 bootloader. Since the Hi-Wave BDM works for at least one program, there is no reason for any bootloader unless you need to use it somewhere with only HyperTerm (or other terminal), which perhaps is the case.

The trick might be to tell Hi-Wave that you want to load the S19 file containing S2 records in "banked" format. I hope someone here can tell you but I don't use Hi-Wave.

The file you need most which displays the menu in HyperTerm is "BootEVB-16banked.S19". Perhaps you have the same file in "linear" format that would load? The Ep9s12_mon.S19 is in linear format, but was only monitor. You need "Ep9s12_boot.s19" so I'll attach that from my Dragon12/rev-D. Make sure you still have a 4 MHz xtal. (*** sorry, I just noticed that _boot file was attached in another post *** maybe what this needs is use SRecCvt.exe to convert it to banked or linear format).

Another possible problem I dont know is if this old Hi-Wave is not compatible with your version of MCU? You can download the latest CW and try it.

Any way, the reason some programs will not load when the D-Bug12 bootloader is erased is because it was linked for the bootloader. That means the bootloader must be present to find and execute the program on powerup.

Good luck and Happy Programming!

Message Edited by imajeff on 2006-09-14 10:00 AM

Message Edited by imajeff on 2006-09-14 10:04 AM

0 Kudos

769 Views
imajeff
Contributor III
Ah, try this to convert it to linear file "Ep9s12_boot_linear.s19" and then maybe Hi-Wave can load that.

SRecCvt.exe -o Ep9s12_boot_linear.s19 -lp -m c0000 fffff 32 Ep9s12_boot.s19

The utility can also convert same file to banked format if needed.
SRecCvt.exe -o Ep9s12_boot_banked.s19 -ob -m c0000 fffff 32 Ep9s12_boot_linear.s19
0 Kudos

769 Views
kwik
Contributor I
Hello there !

I would try with the DBug that came with the board. Here is mine;

(At least I think it is)
0 Kudos

769 Views
kwik
Contributor I
And here is the bootloader too ; Send the bootloader and then the DBug12;

You need to use the

fload ;b

for the boot loader and

fload

for the DBug12

because the bootloader is an s1 file ,but the DBug 12 is an S2 file

Message Edited by kwik on 2006-09-04 10:43 AM

0 Kudos