Other Parts Discussed in Thread: SEGGER, , CC2630
I'd like to use a J-Link with Segger Ozone to debug Contiki-NG code on a CC2650 launchpad and I haven't been able to step through code. I'm wondering if there are any special settings I need to set in Ozone or elsewhere to make this happen. I've built Contiki with debug symbols and can load the .elf file into Ozone without any problems. I can also download the code into the CC2650, but it does not halt at main and Ozone reports "CPU running". However, the code I loaded is not actually running because I don't get any output on the serial console until I manually reset the CC2650 with hardware button. If I halt the debugger after downloading the code, it is at address 0x1000 3DE2, which doesn't seem to be valid memory.
I've set the CCXXWARE_CONF_JTAG_INTERFACE_ENABLE flag to 1 in Contiki, so all the debug interfaces should be enabled, the CCFG flags should be set as follows:
#define SET_CCFG_CCFG_TI_OPTIONS_TI_FA_ENABLE 0xC5
#define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE 0xC5
#define SET_CCFG_CCFG_TAP_DAP_0_PRCM_TAP_ENABLE 0xC5
#define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE 0xC5
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST2_TAP_ENABLE 0xC5
#define SET_CCFG_CCFG_TAP_DAP_1_PBIST1_TAP_ENABLE 0xC5
#define SET_CCFG_CCFG_TAP_DAP_1_WUC_TAP_ENABLE 0xC5
Any ideas on what I can do/check to figure out why debugging isn't working and fix it? I've also tried with a CC2630 on a custom board and have had similar results where the code doesn't run until I manually reset the chip.
Thanks,
Theo