To enable SMP (Symmetric Multi-Processing) debugging in OpenOCD, the hwthread pseudo-RTOS must be enabled. This feature allows OpenOCD to represent multiple cores as individual threads, making them accessible for debugging.
To enable hwthread, it must be passed as the rtos parameter when creating the target configuration:
$_TARGETNAME configure -rtos hwthread
For further details, consult the following sections of the OpenOCD User’s Guide:
With these modifications, the TRACE32 GDB frontend can be used to debug a target via OpenOCD in SMP mode. All cores within the target will be visible and manageable through the GDB interface.
Add a comment