Linker file in MCUXpresso

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

Linker file in MCUXpresso

1,022 Views
john71
Senior Contributor I

The bootloader linker file is

/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__      = 0x00000410;
define symbol __ICFEDIT_region_ROM_end__        = 0x00000AFF;
define symbol __ICFEDIT_region_RAM_start__      = 0x1fffff00;
define symbol __ICFEDIT_region_RAM_end__        = 0x1fffffff;
define symbol __ICFEDIT_region_RAM1_start__     = 0x20000000;
define symbol __ICFEDIT_region_RAM1_end__       = 0x200001ff;
define symbol IntVectTable_start__              = 0x00000000;
define symbol IntVectTable_end__                = 0x0000003f;
define symbol FlashConfig_start__               = 0x00000400;
define symbol FlashConfig_end__                 = 0x0000040f;

I program it with J-Link into the chip (MK10DN512).

The main program created in MCUXpresso. And I should program it with the bootloader.

How do I configure the linker file in MCUXpresso?

2 Replies

739 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Evgeny,

You should modify you application PROGRAM_FLASH location address so that it does not overlap with the bootloader, you can do this in the Memory Configuration Editor from MCUXpresso IDE:

pastedImage_1.png


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

739 Views
john71
Senior Contributor I

Thank you. The problem was the main program Flash start address.  Should be 0x4000 - to skip the protected section - JumpToUserApplication(*((unsigned long*)RELOCATED_VECTORS), *((unsigned long*)(RELOCATED_VECTORS+4)));  where RELOCATED_VECTORS = 0x4000.