Codewarrior 10.4 for HCS08 micros by default generates an s19 file with 32-bit addresses for each record. Is there a way change the Codewarrior 10 output to .s19 files with 16-bits (2-bytes) addresses?
We have some old roll-your-own tools that are expecting .s19 files in the 16-bit (i.e., 2-byte) address format, from the good ol' days of Codewarrior 6. It's not to difficult to change them with SRecord (a highly recommended tool for your toolkit) but it's an extra step. Something as flexible as Eclipse must have a switch that controls the output format hidden in there somewhere....
I think I saw something about this once upon a time, but of course now that it's of interest Google has let me down and I can't find the comments anywhere.
I had been using SRecord to correct the address width (a highly recommended tool to keep handy). I was not sure whether burner.bbl was actually used by CW10. A brief encounter with Build_Tool_Utilities.pdf seems to be stating that it is a utility to serially output a program file to a device programmer, however it seems it is, in fact, part of generating output. As the "SRECORD=Sx" parameter works as advertised it will suit my needs very well.
Thank you!
doug
You are welcome.
In addition, you can also use separate tool to do the srecord conversion:
S-Record Manipulation with GNU objcopy and Burner Utility | MCU on Eclipse
Or
use the SRecord tool (SRecord 1.64 )
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Doug,
Different Srecords type are for different address length. for example:
Thus, if we need 2-byte address type, we need set srecord type as S1 in burner.bbl file
Does this answer your question?
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------