Hi,
I am working on custom bootloader based on the single application file that means both bootloader and application are part of the same code.
For this I have made little changes in the linker file, like I just defined the boot code area using -Z(CODE)BSTRP=4000-4FFF.
| Application (10000 - 43FFF) |
||
| Interrupts (FF80 - FFFF) |
||
| Application (5000 - FF7F) |
||
| Boot Area (4000 - 4FFF) |
||
By default system is running in application area only and there is a provision to switch into boot mode (over UART), at the time of switching I am re-allocating the UART and Reset vectors and it is working and doing vice versa in bootloader mode.
The problem is when I am running in boot mode and giving power cycle then system is not coming up and I also read the memory which is pointing that reset vector is being updated.
Please help me out, bye the way I am using writing the FRAM like a RAM.
Thanks & Regards
Piyush