UM-WI-056
DA16xxx FreeRTOS Getting Started Guide
User Manual
Revision 1.0
27-Oct-2021
CFR0012
41 of 80
© 2021 Dialog Semiconductor
Open the
GDB SEGGER J-Link Debugging
entry in the list and select one of the three debugging
modes (reboot, attach, attach with RTOS info) and then select
Debug
.
Figure 30. Select Debug Mode
There are three debug methods supported by J-Link: "reboot", "attach" and "attach with RTOS info"
which are defined as follows:
●
DA16x_Main_Debug (Reboot) / Linux_DA16x_Main_Debug(reboot)
In this mode, t
he “debugger” is executed after rebooting the image stored in SFLASH.
In this mode, “watchdog” is turned off and “wdt_kicking thread” is not executed.
●
DA16x_Main_Debug (Attach) / Linux_DA16x_Main_Debug(attach)
This mode executes the “debugger” in attach mode without rebooting the image currently
stored in SFLASH.
NOTE
Before using
“Attach” mode, first turn off the “watchdog” using the “sys.wdog off” command as follows:
[/DA16200] # sys.wdog off
WATCHDOG off
●
DA16x_Main_Debug (attach_with_rtos_info) /
Linux_DA16x_Main_Debug(attach_with_rtos_info)
Same as attach mode but displays “thread” information when in the debugger suspend
state.
NOTE
The current FreeRTOS SDK does not support automatic downloading of the firmware image into flash
through the Eclipse debug interface therefore the firmware must be loaded into SFLASH before starting to
debug the application.