Unable to reallocate Application at other than base address
I aim to load my application at 0x08002000 instead of 0x08000000(base address) and secure the first two sections which will be used to store CRC and other firmware update information.
I use a post-build script to calculate the CRC using srecord utility on application firmware and embed it into the executable at the base address.
I also change the vector table offset to #define VECT_TAB_OFFSET 0x00002000U.
but don't know why it was not working, following is my observation:
1)When I just build & load the application firmware at the address of 0x08002000 without embedding CRC it was working.
2)But when I embed CRC into the executable it was not working, I also verify flash contained and that it was loaded properly. (After loading cube-programmer gives a warning: The core is locked up)
Am I missing any steps? Please help me here to resolve my issue.
