I need some help creating a 64-bit aligned srecord. Everything is fine except for two records created from ewl, __init_array_start and __init_array_end. They create two back-to-back 32-bit records. Unfortunately FTFE will not allow me to write these records independently. Is there a way to make it create one record or put them on 64-bit boundaries?
S30D00070AF00000000000000000F1
S30D00070AF85CACFF7F0100000062
S30900070B001D5901006D
S30900070B04F95801008E
S31500070B0800FC02209D2E02007D5701007D5701003B
Solved! Go to Solution.
Hi Michael,
this article hopefully helps:
Aligning S19 Records to 64-bit Boundaries | MCU on Eclipse
Erich
Hi Michael,
this article hopefully helps:
Aligning S19 Records to 64-bit Boundaries | MCU on Eclipse
Erich
Hi Erich,
Do you know where I can put srec_cat.exe to that I don't have to specify a path? I'm using CW10.6 and GCC on Windows 7.
Thanks,
-Mike
Hi Mike,
for KDS, the 'current directory' is the output folder (e.g. DEBUG or FLASH). For CW I'm not sure: try to use the output folder where the ELF/binary file is as base, or the project root folder.
Erich
Hi Michael,
I recommend that you use the SRecord utility (see CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse ) which has several options, e.g. −Output_Block_Alignment.
I hope this helps,
Erich
Thinking more about the request about aligning S19 file records: I have received a lot of questions/requests around that topic recently. So maybe better I write up a quick article how I have solved that on my side?
Erich