SREC Output Missing a Line

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

SREC Output Missing a Line

Jump to solution
926 Views
pk2
Contributor III

I am using CW 10.4 but this problem seems to be common to previous versions I have tried too.

 

When producing a .srec output file there is a section of the output with a line missing.  For example:

 

S2140003F09D0500009D0500009D0500009D05000070

S214000400FFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFF8

S21400042001DF704701DFFFF7FEBFD148006872B6F4

S214000430018B39B9416AC269D369994200F00280DA

 

Careful examination of the above shows that the line that should begin with S214000410... is missing.

Generating a binary out produces this:

 

0003F0:  9D 05 00 00 9D 05 00 00 9D 05 00 00 9D 05 00 00

000400:  FF FF FF FF FF FF FF FF FF FF FF FF FE FF FF FF

000410:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

000420:  01 DF 70 47 01 DF FF F7 FE BF D1 48 00 68 72 B6


Note that the missing line should be all zeros.


Why is this missing in the .srec output file?  I have to edit the srec file to add the missing line so when using the KwikStik - EZ port programmer described in AN4406 the part programs correctly.


Is there a way to make CW produce the correct output file?




Labels (1)
0 Kudos
1 Solution
667 Views
BlackNight
NXP Employee
NXP Employee

about the extension: this is problem of some GNU tool integration (including the one used in CodeWarrior).

See http://mcuoneclipse.com/2014/04/11/gnu-additional-tools-create-flash-image-print-size-and-extended-l...

The GNU ARM Eclipse plugins in KDS or the ones which you can use with stock Eclipse (e.g. Kepler) do not have this issue.

See http://mcuoneclipse.com/2014/04/20/binary-files-for-the-mbed-bootloader-with-eclipse-and-gnu-arm-ecl...

I hope this helps,

Erich

View solution in original post

0 Kudos
3 Replies
667 Views
TICS_Fiona
NXP Employee
NXP Employee

The latest version is v10.6, could you please check whether the same problem also exists on v10.6? CW 10.6 can be downloaded from:

http://tinyurl.com/6jo5tge

If the problem also exists on CW10.6, please attach a simple project to help us reproduce the problem, thanks!

0 Kudos
667 Views
pk2
Contributor III

I tried ti install CW10.6 but my virus software reported a problem with it.  Can you try it in CW10.6?  The "Hello" example for a tower can be used to see the problem.

Also... when selecting output file formats.. wy are all the extenisons .hex rather than what the file actually is.  I.E.  when I select a binary file out I would expect a .bin extension. 

0 Kudos
668 Views
BlackNight
NXP Employee
NXP Employee

about the extension: this is problem of some GNU tool integration (including the one used in CodeWarrior).

See http://mcuoneclipse.com/2014/04/11/gnu-additional-tools-create-flash-image-print-size-and-extended-l...

The GNU ARM Eclipse plugins in KDS or the ones which you can use with stock Eclipse (e.g. Kepler) do not have this issue.

See http://mcuoneclipse.com/2014/04/20/binary-files-for-the-mbed-bootloader-with-eclipse-and-gnu-arm-ecl...

I hope this helps,

Erich

0 Kudos