Segger Embedded Studio V5.20a / SDK13 (file structure from a legacy project) / BLE / ANT+ s332 4.0.5
I am in the process of moving from command line build (armgcc make) to debugging in SES with all the ide features.
I am able to debug as expected so far but need to be able to setup the project to work with jlink monitor mode - as I don't want hard faults.
I hope I can do this with SDK13 and ANT+ s332 soft device!
I have also been looking at the demo for the j-link monitor mode using a pca10040 and SDK16
The legacy app I am working on uses the app scheduler - can you give me any advice what I should be doing with the monitor functions to keep the softdevice happy?
the device normally goes to sleep mode if it has nothing to do.
void JLINK_MONITOR_OnExit(void) {
app_timer_resume();
}
void JLINK_MONITOR_OnEnter(void) {
app_timer_pause();
}
void JLINK_MONITOR_OnPoll(void) {
MAIN_MonCnt++;
if(NRF_WDT->RUNSTATUS)
{
NRF_WDT->RR[1] = 0x6E524635UL;
}
}
void app_timer_pause(void)
{
NRF_RTC1->TASKS_STOP = 1;
NRF_RTC1->
}
void app_timer_resume(void)
{
NRF_RTC1->TASKS_START = 1;
}