Jeff Smith

D-Bug12 4.0.0b32 broken (BDM POD mode)

Discussion created by Jeff Smith on Sep 19, 2006
Latest reply on Jul 14, 2009 by kef
Is D-Bug12 4.0.0b32 (BDM POD mode) broken? I can't do much with
Flash memory banks. I'm new to the DG128B but have trouble even with
my well-tested DP256.

- I think the major thing is that it did not seem to initialize Flash
in order to write to it. That makes it tedious to init every time it
gets reset!
- `asm` should be able to disassemble from Flash banks, but
keeps saying "Bad Extended Address".
- My S19 file won't load all the way with `fload` because dbug says
"S-Record Out Of Range" even the records are within PPAGE 3e and 3f.
- Why do docs conflict for 128K Flash banks? My docs say start PPAGE 0x00 but
new docs say 0x38. I still don't know which one.

----
Experimenting:

S>ver
4.0.0b32
S>device

Device: S12DB128, MC9S12DT128, MC9S12DG128, MC9S12DJ128, MC9S12DB128, MC9S12A 2
EEPROM: $0800 - $0FFF
Flash: $8000 - $BFFF Pages: 8 PPAGE at: $0030
RAM: $2000 - $3FFF
I/O Regs: $0000 - $03FF
Target Speed: 16000 KHz

S>asm 8000
PPAGE Value Required With Address
S>asm 00:8000
Bad Extended Address
S>asm 30:8000
Bad Extended Address
[*which is it? old docs say Flash starts at PP 00, new says 80]
S>bs 00:8000 07:bfff 35
Bad Extended Address

I made this S19 file "tst.s19":
S00B000062757A7A2E7331391E
S224018000CF4000180B390010180B000011180B080012164184CEC04ACD2000CC01FA2707D9
S804FF4000BC

S>fload
[*no errors displayed in minicom]
[*my larger S19 file showed error "S-Record Out Of Range" which I don't see]
S>upload 018000 01801f ;f
S224018000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7A
S9030000FC
[*shows "tst.s19" not programmed]
S>pp 6

PP PC SP X Y D = A:B CCR = SXHI NZVC
06 0000 2000 0000 0000 00:00 1101 0000
xx:0000 00 BGND
S>md 8000

8000 FF FF FF FF - FF FF FF FF - FF FF FF FF - FF FF FF FF ................
[*should show bytes programmed from "tst.s19" above]
S>md 100

0100 00 FE 00 00 - FF C1 00 00 - 00 00 00 00 - 00 00 00 00 ................
[*is this showing that D-Bug12 did not initialize Flash registers?]

Outcomes