Dear forum:
I want to fix some code to specific section for software update control.
When software update is finished, set the code to "complete".
So I have to fixe the code to specific section.
I do the following try.
1. In fsp.scat, I add the following code.
LOAD_REGION_BOOT_JUDGE1 0x0000FF08 0x00000008{ BOOT_JUDGE1 +0 FIXED { *(.boot_judge1*) }}
2. in my soft, I add the following code.
#pragma section="boot_judge1"const unsigned char boot_judge1[8] = "Complete";
3. I confirm the map file by compiled.
Load Region LOAD_REGION_BOOT_JUDGE1 (Base: 0x0000ff08, Size: 0x00000000, Max: 0x00000008, ABSOLUTE)
Execution Region BOOT_JUDGE1 (Exec base: 0x0000ff08, Load base: 0x0000ff08, Size: 0x00000000, Max: 0xffffffff, ABSOLUTE, FIXED)
**** No section assigned to this execution region ****
Question:
why the boot_judge1 is not assigned to section: LOAD_REGION_BOOT_JUDGE1
I want to fix the boot_judge1 to section:LOAD_REGION_BOOT_JUDGE1 , how to do it.
Is there some sample code for reference ?
Many Thanks.
Hi,
Thanks for posting your question on Renesas Engineering Community.
Could you add: --keep=''main.o(BOOT_JUDGE1)'' in Options>Linker>Misc controls section ?
Let us know if it helps.
AZ
Dear AZ_Renesas
I add the code
in bootjump.c
so in Options>Linker>Misc controls section,
I add: --keep=''bootjump.o(BOOT_JUDGE1)''
but it dosen't work.
and the #pragma section="boot_judge1",
there is a compile warning:
src/bootjump.c(10): warning: unknown pragma ignored [-Wunknown-pragmas] #pragma section=".boot_judge1"
can you continue to help to confirm,
thank you very much.
You could also ask in Arm Community for Arm Linker questions.
Hi There,
This is the RA MCU forum and we provide support for RA MCU products. So, can you please indicate which RA MCU product and which FSP version you are using? It appears that the issue is related to Keil IDE rather than the RA MCUs, so you could ask the Keil COmmunity for further support.
Best regards,
PM_renesas