Hi Gomer,
Here is my simple example of getting a variable from the linker script into a FSLMQX application.
In linker script I added:
___DECAF = 0xBAD;
In FSLMQX application "C" file I added the following at top:
extern uchar __DECAF[];
#define LINKER_DB ((uint_32)__DECAF)
added printf down in the code:
printf("Linker File ___DECAF = 0x%08x\n", LINKER_DB);
If you recompile the FSLMQX application the output on terminal should be:
Linker File ___DECAF = 0x00000bad
Please note the linker script declaration has three underscore for DECAF and two in the "C" file.
Looking at your code it appears as though it should work but my only concern is the BSP_FLASHX_SIZE name is used elsewhere in FSLMQX so maybe you should try a different name.
When I tried your code I got a redfined error but when I renamed it all worked fine.
Regards,
David