MQX K65 Linker File

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

MQX K65 Linker File

483 Views
Mike_d
Contributor IV

Hello,

I was looking at the K65 linker file that MQX 4.2 uses and was wondering if the rom entry and cfmprotrom have the correct parameters.  Should it be like this instead?

cfmprotrom (R): ORIGIN = 0x00000400, LENGTH = 0x00000010
rom (RX): ORIGIN = 0x00000410, LENGTH = 0x001FFBF0 /* Code + Const data */

The part on the board is a MK65FN2M0VMI18.

C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\twrk65f180m\gcc_cw\intflash.ld
pastedImage_2.png

K65P169M180SF5RMV2.pdf

pastedImage_3.png

Regards,

-Mike

0 Kudos
3 Replies

318 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Mike

I think 'cfmprotrom (R): ORIGIN = 0x00000400, LENGTH = 0x00000010' is also OK, it is enough to hold the 16-byte flash configuration field . You can edit this file according to your requirement.

Regards

Daniel

0 Kudos

318 Views
Mike_d
Contributor IV

Hi Daniel,

What about the rom size?  Seems to be short by 1MB.

-Mike

0 Kudos

318 Views
danielchen
NXP TechSupport
NXP TechSupport

Yes, you are right, the rom size can be set to 0x001FFBF0.

Regards

Daniel