cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eyke.liegmann
Adventurer
Adventurer
704 Views
Registered: ‎06-19-2018

thread aware debugging of FreeRTOS in Vitis

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

 

0 Kudos
5 Replies
jrhtech
Voyager
Voyager
659 Views
Registered: ‎10-04-2017

Oh what I would give for a nice FreeRTOS aware plugin like the one provided by NXP...

jeff

 

eyke.liegmann
Adventurer
Adventurer
627 Views
Registered: ‎06-19-2018

do you use a commercial debugger instead?

0 Kudos
jrhtech
Voyager
Voyager
607 Views
Registered: ‎10-04-2017

Sadly no, I've just had to figure things out without one;(
0 Kudos
fpda
Contributor
Contributor
496 Views
Registered: ‎08-29-2012

0 Kudos
shaunpur
Xilinx Employee
Xilinx Employee
245 Views
Registered: ‎10-16-2015

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:

https://www.xilinx.com/html_docs/xilinx2020_2/vitis_doc/profileanalyze.html?hl=stm#ariaid-title14 

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.