08-11-2020 11:04 PM
Is there a way to debug the FreeRTOS kernel from Vitis? The debugger should be thread aware.
Thank you and best regards
I saw this post as well, but from that post it appears to be impossible: https://forums.xilinx.com/t5/Embedded-Development-Tools/How-to-debug-FreeRTOS/m-p/833812
02-15-2021 07:16 AM
Just want to add another potential solution to this post because it was never pointed out. Vitis (as well as the older SDK) include support for tracing with STM:
So although single-stepping will not be task aware, using STM to trace a FreeRTOS application will provide events relevant to tasks and queues. An example of what you can expect from such tracing can be seen in this post: Xilinx FreeRTOS Analysis Task Names and Timeline
Note, however, that STM is only available for newer SoCs (e.g. ZynqUS+ & Versal). For other architectures, such as Zynq-7000 & MicroBlaze, a commercial solution like Tracealyzer could work.