Bug in Program Flash feature: invalid FLASH content if load and run address differs in .axf

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bug in Program Flash feature: invalid FLASH content if load and run address differs in .axf

1,100件の閲覧回数
udoeb
Contributor II

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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

788件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

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

0 件の賞賛
返信

788件の閲覧回数
udoeb
Contributor II

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

0 件の賞賛
返信