Hello Ramon,
Sorry for confusing you! The linker file in Kinetis devices must be changed: Have a look at sections 7.4 throung 7.9 of the Application note AN2295.
For MQX based applications, the advices are:
The following two things must be updated in the MQX project:
1. Linker File: In the linker file of MQX the situation is similar to bare metal user application. The
MQX application has to be moved above the AN2295 bootloader code. The MQX Linker file is
using as standard linker definition as own some. For example the updated lines from Linker file for
K60N512 and IAR6.4 tool:
• define symbol __ICFEDIT_intvec_start__ = 0x00004000;
• define symbol __ICFEDIT_region_ROM_start__ = 0x00004000;
• define exported symbol __INTERNAL_FLASH_BASE = 0x00004000;
• define exported symbol __VECTOR_TABLE_ROM_START = 0x00004000;
2. Flash configuration registers: The setting of the flash configuration registers is simpler in MQX
application than in general bare metal application. It is enough to define one MQX macro:
• #define BSPCFG_ENABLE_CFMPROTECT 0