ARMM5 Xil_DataAbortHandler

faceless900 wrote on Friday, December 28, 2018:

Hi guys , I am working on a freeRTOS project based on ZYNQMP ARMR5 processor. Unfortunately my code always got stuck in Xil_DataAbortHandler function while debugging,at first I thought it was my code functionality error. However, I built another simple test project in which I built 2 tasks. Taks1 continuously printf “repeate 111111” 100 times and then Task2 continuously printf “repeate 222222” 100 times, but it did not finished its simple job as well and went into same xilinx exception again after I start the schedule. Here is my code and serial terminal sceenshot ,and my platform is xilinx SDK, can anyone give me some advice ?Thanks a lot!

rtel wrote on Friday, December 28, 2018:

You cannot allow your tasks to exit their implementing functions.
Either have the tasks in an infinite loop (which is normal) or have the
tasks delete themselves at the end of their implementing function by
calling vTaskDelete( NULL );

I recommend reading the free to download pdf book
https://www.freertos.org/Documentation/RTOS_book.html - or as a minimum

faceless900 wrote on Friday, December 28, 2018:

Thank you very much,I just changed my code as you said and it succeed, thanks again.