Debugging firmware with a bootloader at the top of memory
I am attempting to debug my firmware for a STM32L452xx chip, which is programmed in at the memory address 0x08010000. The bootloader will be placed at 0x08000000, but at the moment the memory is empty. Is it possible to trick the debugger so it always starts at main for the firmware in the debugger i.e. somewhere after 0x08010000 memory address? I changed the IROM1 address, as well as the FLASH_BASE address in the HAL so the vector table is configured correctly. I am just struggling with the debugger aspect of running to main on the entrance to the debugger. I "think" I need to set the MSP pointer when i enter the debugger to a specific memory address, but I am unsure. Also am unsure if I need to do something else.
I've already written a couple other bootloaders for different stm32 chips, but I've never gotten over the hump to be able to debug the firmware from a non-top memory address. I usually need to change the address settings before trying to debug. Hoping someone will tell me I am not doing something obvious?
Thanks!
