Hello,
I'm unable to program the reset vector table on my 9S12DJ64. I'm using D-Bug12 version 4.0.0b32 and it shows my target as the following, straight out of reset:
Device: S12DJ64, MC9S12DJ64, MC9S12D64, MC9S12A64
EEPROM: $0000 - $03FF
Flash: $8000 - $BFFF Pages: 4 PPAGE at: $0030
RAM: $0000 - $0FFF
I/O Regs: $0000 - $03FF
Target Speed: 16000 KHz
I see that the vector table area ($FF80-$FFFF) does not appear in the Flash space. Attempts to fload my s-records into that space fail. The manual for the 9S12DJ64 says that the reset vector table is available out of reset without setting PPAGE, yet I cannot seem to access and program the table.
Any ideas on what I might be doing wrong?
Thanks!
Solved! Go to Solution.
$FF80-$FFFF is indeed included. It is accessible on PPAGE=0x3F at 0xBF80-0xBFFF.
As far as I know for paged derivatives D-Bug12 assumes S records are only in linear/physical format. This means you should not find any S1 record in your file, only S2 records with linear/physical addresses in the range 0x0F0000 to 0x0FFFFF. Linear address is P*W+O, where P is page number, W - size of page window (0x4000) and O offset within page window.
You asked before about SrecCvt arguments. Depending on your S records file, Sreccvt may be unable to convert your S records. You may try using Log2Phy uility from www.pemicro.com.
$FF80-$FFFF is indeed included. It is accessible on PPAGE=0x3F at 0xBF80-0xBFFF.
As far as I know for paged derivatives D-Bug12 assumes S records are only in linear/physical format. This means you should not find any S1 record in your file, only S2 records with linear/physical addresses in the range 0x0F0000 to 0x0FFFFF. Linear address is P*W+O, where P is page number, W - size of page window (0x4000) and O offset within page window.
You asked before about SrecCvt arguments. Depending on your S records file, Sreccvt may be unable to convert your S records. You may try using Log2Phy uility from www.pemicro.com.