I use DFU. All ok. But I need to store my settings after update. As I was advised, I located my data from address 0x72400
volatile PASSKEY_CONTEXT pass __attribute__((section(".ARM.__at_0x72500"))) = { .passkey_length = 6, .passkey = "123456", };
But Keil added after this struc some code
:102500000631323334353600000000000000000090 :10251000011022011A4002B11BFFFF1401619461F6 :102520008A028B893D0C012E0C10181818122901F3 :10253000014E1220027540C490D00314E1360223EC :0425400003FF000095 :040000050001F20103 :00000001FF
When I make to many changes (compile on an another optimisation level), this part of code changes to. Therefore if try to update by DFU, most of code will updated but this part of code will not be updated. And project will fall.
How to correct locate my struct with my non updatable data?
How to except generation of this additional code?