Hello,
I try to use a CMSIS DAP debugger (MCU link) for debugging a CortexM4 (LPC54618). Flashing and stepping through the code works as expected, but it seems I can't use SWO trace to get my printf outputs via SWO in the debug (printf) viewer window. In the debugger setup window the TRACE function seems to be disabled. But according to the MCU link documentation SWO is supported.
- Do I configure somthing wrong,- or does µVision 5.41 not support SWO output for CMSIS DAP, - or is the MCU link not fuilly compatibel to CMSIS-DAP stanard- or any other idea why printf via SWO does not work in thes case?
Thank you.
I'm not familiar with that specific board, but SVO trace is an optional feature of CMSIS-DAP.
https://arm-software.github.io/CMSIS-DAP/latest/dap_firmware.html#dap_usart_swo
I did a quick test of some NXP freedom boards I have at my desk. Some support trace, some do not.
When you go to Options > Debug > CMSIS-DAP > Settings > Trace, is "Trace Enable" available, or is it greyed out?
If greyed out, then it is not available. Perhaps there is a firmware update available that enables this? You should ask NXP directly.
Hello Ronan,
thank you fro your answer.
When the CMSIS-DAP is connected TRACE enable is grayed out. When I use ULINK , ST-Link or J-Trace, Trace is possible.
I will look for a Firmwre Update. The questio is stil: is this a limitation of µVision, or a limitation of teh debug probe (hw or fw)
I'm sure I could add a startup script that enables SWO trace in the CPU, but this doesn't help is µVision is not aware the this is enabled.
UPDATE:
After a firmware update of MCU-link the TRACE function works as expected.Probem solved :-)
Glad to hear it is now working.
As expected, the updated CMSIS-DAP firmware added SWO support.
Hope your debugging goes well!