2025-07-21 6:40 AM
Hi,
I tried adding APPKEY on the flash to read from bootloader to find if valid application there or not. I added as below in scatter file :
EXCLUDE app_key.o
APPKEY 0x08043FF8 FIXED { ; 0x08013FF0 = last 16 bytes of 64KB app
app_key.o (.app_key)
}
and in app_key.c, below lines are added:
__attribute__((used))
__attribute__((section(".app_key")))
const unsigned int APPKEY = 0xFEFFFEFF;
But once code is built, changes done in scatter file are disappearing and also when I check in map file, app_key is not getting allocated in specified location of flash