We are using MCUXpresso and the SDK with the FRDM_K66 board and would like to install a custom bootloader at address 0x0 in Program Flash. To do this we have to move program flash and that means we have to deal with the application vector table being in a new location. This was discussed in another thread concerning relocating the vector table and I also wonder why the vector table is not found by default in relation to the base of Program Flash. But more important for us right now is that we are unable to get the debugger to execute our application.
We have done the following:
1. Change program flash to start at 0x1000 and changed length to 0x1ff000
2. Add a statement at beginning of main() function SCB->VTOR = 0x1000;
The compile works fine, but execution ends with 'No source available for "__sys_appexit() at 0x69e0"'
Have we attempted something obviously wrong here or is more information needed?