I have chosen a Flash-based Bootloader on a kinetis KV46F256
my bootloader is postionned from 0x0000_0000 to 0x0000 _A000 and I use uart1
The bootloader works well.
the is_boot_pin_asserted() works well
the downloading works well
and the jump to the bootloaded application works well.
When the application downloaded goes in interrupt it goes well also (Timer / I2C etc...)
the VTOR is well positionned.
But when I come bak from interrupt, The program doesn't test the right variable value.
It looks like the instruction are not testing the right variable : The program is coming back on the good address but the variable are not the right tested.
Pb of linker ?
Any Idea ?
Hello Merigot,
I don't think the change of the value is due to the bootloader since the routine to enter the application looks good, for example, if you're debugging the application the variable that you're changing in the interruption has the same memory allocation?
Let me know your findings.
Best Regards,
Alexis Andalon