Current project is 12K of code, so would be a bit much to post, here is a short test program I wrote to demonstrate, list file follows;
Freescale HC12-Assembler
(c) Copyright Freescale 1987-2006
Loc Obj. code Source line
------ --------- -----------
XDEF START ; export 'START' symbol for RESET Vector 0
ORG $C000 ;This is program main location in top of fixed flash area
a00C000 CF40 00 START LDS #$4000 ;Set Stack (16384) Top of RAM
a00C003 8601 REPEAT LDAA #1
a00C005 C602 LDAB #2
a00C007 87 CLRA
a00C008 C7 CLRB
a00C009 20F8 BRA REPEAT
After loading into flash, Program can be seen in the correct location, but execution did not stop at the breakpoint, I manually stopped it. Trace is working, here is D-Bug12 display;
S>fbulk
S>fload
**
S>br C009
Breakpoints: C009
S>g C000
R>stop
Target Processor Has Been Stopped
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE C007 4000 0000 0000 01:02 0 1101 0000
xx:C007 87 CLRA
S>t 2
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE C008 4000 0000 0000 00:02 0 1101 0100
xx:C008 C7 CLRB
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE C009 4000 0000 0000 00:00 0 1101 0100
xx:C009 20F8 BRA $C003
S>t 1
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE C003 4000 0000 0000 00:00 0 1101 0100
xx:C003 8601 LDAA #$01
S>
Moved the code into ram and had the same results, trace works but breakpoints don't;
Freescale HC12-Assembler
(c) Copyright Freescale 1987-2006
Loc Obj. code Source line
------ --------- -----------
ORG $2000 ;Fixed ram
a002000 CF40 00 START LDS #$4000 ;Set stack
a002003 8601 REPEAT LDAA #1
a002005 C602 LDAB #2
a002007 87 CLRA
a002008 C7 CLRB
a002009 20F8 BRA REPEAT
load
*
S>br 2009
Breakpoints: 2009
S>g 2000
R>stop
Target Processor Has Been Stopped
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE 2008 4000 0000 0000 00:02 0 1101 0100
xx:2008 C7 CLRB
S>t 4
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE 2009 4000 0000 0000 00:00 0 1101 0100
xx:2009 20F8 BRA $2003
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE 2003 4000 0000 0000 00:00 0 1101 0100
xx:2003 8601 LDAA #$01
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE 2005 4000 0000 0000 01:00 0 1101 0000
xx:2005 C602 LDAB #$02
PP PC SP X Y D = A:B CCR = IPL SXHI NZVC
FE 2007 4000 0000 0000 01:02 0 1101 0000
xx:2007 87 CLRA
S>
My next question is D-Bug12 ver 4.5.0a10 in a BDM pod compatible with 9S12XDP512 target? If not is there a newer version that is? Breakpoints work fine with 9S12C32 and 9S12DP256B targets I have used previously.