I am writing one boot loader code and application code for SAMD21G17D controller. I want to run my application code separately for debugging (not dependent on boot loader). I have only changed starting location of application code in linker script.
#ifndef ROM_ORIGIN
# define ROM_ORIGIN 0x2000
#endif
#ifndef ROM_LENGTH
# define ROM_LENGTH 0x10000
After updating the linker script, i have checked the generated map file for vector table relocation, and starting flash memory address (0x2000) in the generated hex file (MPLAB X ide), both are fine.
But when i am debuggging my application control is not hitting into Reset Handler function. If the ROM origin is 0x0 (starting from bootloader) then it is fine. I do not to jump from boot loader to application code. Is there any solution that i can directly jump to my application code (Any linker or compiler flags or any other options). IDE and compiler i am using is listed below:
IDE - MPLAB V5.30 Controller: SAMD21G18 Compiler: XC32 Debugger: EDBG (On Chip)