ARMM5 Xil_DataAbortHandler

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!

ARMM5 Xil_DataAbortHandler

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 – the page that describes the structure of a task on the website https://www.freertos.org/implementing-a-FreeRTOS-task.html

ARMM5 Xil_DataAbortHandler

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