EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

SRecord Merge

Started by montserret_maxime February 7, 2006
Hi everyBody,

I'm working on MC9S12DG256B device. I've developed an application and
a bootloader with different S-Record files. I'd like to know if it's
possible to merge the 2 files in order to make a single file
containing the 2 programs.
If yes, why ???
And which value must I put in header line and control line ???
Many thanks in advance.
Remove S9 from your app.s19, remove S0 lines from both, then

copy app.s19 + boot.s19 appwithboot.s19

Make sure app.s19 has newline at the end after S9 removal since multiple
records in one line SxxxSxxx may not work with all programmers/
bootloaders.

Edward
I'm trying to merge manually.
I introduce some lines between other lines (that introduces a
discontinuity) like that :
S107D48074650000CB
S123DF8CCDAECDA4CD9ACD90CD86CD7CCD72CD68CD5ECD54CD4ACD40CD36CD2CC6A6C6F5FE

The loading failed.
I'm using True-Time Simulator to download code on the target.

It means that loader application doesn't support discontinuity , or
some think like that.

Have you got any ideas ???
Many thaks in advance.
"montserret_maxime" wrote:

> I'm trying to merge manually.
> I introduce some lines between other lines (that introduces a
> discontinuity) like that :
> S107D48074650000CB
> S123DF8CCDAECDA4CD9ACD90CD86CD7CCD72CD68CD5ECD54CD4ACD40CD36CD2CC6A6C6F5FE

Discontinuity of address isn't a problem, second line has bad checksum.
Probably you did a mistake in the s19 file?

You can as well use the burner.exe (in the prog folder) to merge s19 files.
Here briefly how to do it:

Create file e.g. Named burner.cmd with following (default) content:
OPENFILE "output.s19"
format=motorola
busWidth=1
origin=0
len=0x10000
destination=0
SRECORD=Sx
SENDBYTE 1 "my_file_1.s19"
SENDBYTE 1 "my_file_2.s19"
CLOSE

Then call the file e.g. With
Burner.exe -f burner.cmd

Erich
Thanks a lot , now it's working

The 2024 Embedded Online Conference