Working on an STM32L072 system where the watchdog is enabled.
If execution breaks or is halted manually, the WD will restart the system.
The STM32L072 has a DBG_APB1_FZ register to "freeze" the WD (among other things) when the core is halted.
This should be accessible to the J-Link - so how do I do it.
I see the JLINK_MEM_WriteU32() command in the J-Link script files wiki:
wiki.segger.com/J-Link_script_files#JLINK_MEM_WriteU32.28.29
and there's Exec.Command() in the Ozone manual.
So is it just a case of putting Exec.Command( "JLINK_MEM_WriteU32( 0x4001 5808, 0x1800)" ) at an appropriate place in the Ozone project?
And where would be an "appropriate place" ?
If execution breaks or is halted manually, the WD will restart the system.
The STM32L072 has a DBG_APB1_FZ register to "freeze" the WD (among other things) when the core is halted.
This should be accessible to the J-Link - so how do I do it.
I see the JLINK_MEM_WriteU32() command in the J-Link script files wiki:
wiki.segger.com/J-Link_script_files#JLINK_MEM_WriteU32.28.29
and there's Exec.Command() in the Ozone manual.
So is it just a case of putting Exec.Command( "JLINK_MEM_WriteU32( 0x4001 5808, 0x1800)" ) at an appropriate place in the Ozone project?
And where would be an "appropriate place" ?