s19 file for 9S12XS128

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

s19 file for 9S12XS128

Jump to solution
1,325 Views
simonqian
Contributor I

Hi, I'm implementing a flash downloader for S12 series, the algorithm is ready, all the source code is at: http://code.google.com/p/vsprog/source/browse/trunk/src/target/s12x.

 

HCS08 support is tested OK: http://code.google.com/p/vsprog/source/browse/trunk/src/target/hcs08.

 

s19 file parser is at: http://code.google.com/p/vsprog/source/browse/trunk/src/tools/s19.

 

But there is something I don't understand.

In the s19 file generated by Codewarrior (source code is the demo from my develop board):

 

S11EC000CF2100C6055B134A804CFE4A8000FE0000C015C0190000000000006E

S105FFFEC0003D

S224FE800010EFC6C05B0351071EC6FF0710C63F070CC6FF0708C6BF070EC67F20F65B01CC1F

S224FE802001F44A8031FE3D5B01CC01F44A8031FE3D6CAC186982200B1887088E01F425FA30

S224FE8040186282EC82AC8025EF1B840AFEC011FDC00F270E35ED31EC3169700434FB31034A

S219FE806026F2FEC013EC31270BED31180A30700434F920F10AA4

 

The first line defines 27(0x1E - 3) bytes at 0xC000, but for 128K flash, flash shoud start from 0x7E0000.

Where should I put the data in 0xC000?

Labels (1)
0 Kudos
1 Solution
518 Views
kef
Specialist I

Codewarrior S19 file contains banked S2 records (addresses are page number + 16bits CPU address like FE8000, here FE is PPAGE and 0x8000 - CPU address, bottom of PPAGE window) and S1 records (only 16bits CPU addresses). So if your downloader expects global addresses, then you should convert S records according to S12SX memory map. 0xC000 is topmost PPAGE=0xFF, global address 0x7FC000.

In project bin folder you should find *.glo file. This file also contins S records, but all addresses are global.

View solution in original post

0 Kudos
2 Replies
519 Views
kef
Specialist I

Codewarrior S19 file contains banked S2 records (addresses are page number + 16bits CPU address like FE8000, here FE is PPAGE and 0x8000 - CPU address, bottom of PPAGE window) and S1 records (only 16bits CPU addresses). So if your downloader expects global addresses, then you should convert S records according to S12SX memory map. 0xC000 is topmost PPAGE=0xFF, global address 0x7FC000.

In project bin folder you should find *.glo file. This file also contins S records, but all addresses are global.

0 Kudos
518 Views
simonqian
Contributor I

Thank you. I know how to fix it.

0 Kudos