A53 processor in Zynq Ultrascale+ running freeRTOS stucks after some time. How can i debug it?

Hi all,

I have a Xilinx board (Zynq Ultrascale+) and I have an application that runs on one A53 processor and two R5f processors. A53 processor and one of the R5f processors have FreeRTOS while the last R5f is standalone. While the application runs normally for some time, suddenly the A53 hangs. What can i do in order to debug this situation, to catch the error condition?

Thanks in advance

The first thing to do is determine what it is doing when it hangs. It will be processing something - maybe in an assert(), exception handler, uncleared interrupt, or other erroneous condition. What is executing if you pause the processor in a debugger?

Unfortunately I do not have a debuggee because Release 02 optimization is used

Even with high optimisation you will be able to see roughly what the code is doing when it stops - especially if its in an exception handler. If it is just stuck in a loop somewhere then looking at the assembly code, or the address of the instruction being executed compared to the symbol table, will tell you a lot.

It will also tell you a lot if reducing the optimization level fixes the issue.

Also, have you read through the following documentation?
https://www.freertos.org/RTOS-Xilinx-UltraScale_MPSoC_64-bit.html#ConfigAndUsage
https://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html (still applicable even though it says Cortex-A9)

Could you help me to find what happens? Thanks in advance

Στις Παρ 24 Νοε 2023 στις 6:20 μ.μ., ο/η Richard Barry via FreeRTOS Community Forums <freertos@discoursemail.com> έγραψε: