It seems like a similar IAR debugging problem has been solved but after a day of trying everything...
BLE application with SDK 6.1 and SD 310 1.0 running IAR 8.1 (and identical issue for IAR 7.20). J-Link 9.3 with 6.30j firmware.
- -drv_vector_table_base=0x0 is in Debugger extra options (is the spacing "- -drv" correct?)
Loading and running without debugger on the board works.
If debugging, the debugger kicks out as soon as the first RTC1 interrupt fires and shows the PC stuck at the 0xfffffffe address.
If I don't enable the RTC interrupt, code debugs generally fine.
.icf is good I think:
/* Softdevice S310 1.0 (51422 rev. DA and E0) */
define symbol __ICFEDIT_intvec_start__ = 0x00020000;
define symbol __ICFEDIT_region_ROM_start__ = 0x00020000;
define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x20002400;
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
I've checked the .map for anything that looks weird and even verified the vector table by inspection in the Disassembly window after flashing.
Thoughts?
Thank you!