K64 Linker 64-bit Alignment

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

K64 Linker 64-bit Alignment

Jump to solution
1,026 Views
Mike_d
Contributor IV

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

Labels (1)
1 Solution
708 Views
BlackNight
NXP Employee
NXP Employee
5 Replies
709 Views
BlackNight
NXP Employee
NXP Employee

Hi Michael,

this article hopefully helps:

Aligning S19 Records to 64-bit Boundaries | MCU on Eclipse

Erich

708 Views
Mike_d
Contributor IV

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

0 Kudos
708 Views
BlackNight
NXP Employee
NXP Employee

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

0 Kudos
708 Views
BlackNight
NXP Employee
NXP Employee

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

0 Kudos
708 Views
BlackNight
NXP Employee
NXP Employee

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

0 Kudos