Hi,
Via ld script I created an axf which loads from internal FLASH (0x1a000000) but executes from RAM. If I try to download this axf via "Program Flash" button then some garbage is written to the FLASH and the MCU does not boot. If I download the same axf via "Debug" button in the quickstart panel, FLASH content is correct and the image works. If I download the .bin created from the very same axf via "Program Flash" button (and specifying 0x1a000000 as base address) then it works as well.
Looks like the "Program Flash" feature does not decode and translate this kind of axf correctly. Any comments or tips?
LPCXpresso v8.2.2
LPC-Link 2
LPC4357
Udo
How is your image being copied to RAM? Are you following one of the methods described in https://community.nxp.com/message/630746 or handcrafting everything yourself?
Anyway, I would suspect an issue with the address information being generated by your linker script. Can you post an example project, or at least your AXF, your linker script, your linker map file and the log file generated by the GUI flash programmer?
Regards,
LPCXpresso Support
I'm using a handcrafted linker script. I don't use cr_section_macros.h, and don't use section decorations in the code for portability reasons.
I can provide an axf, map etc. but would not like to post it here. Can I email it?
Udo