Unable to port FreeRTOS on ZEDboard

ziaulhak wrote on Sunday, June 09, 2019:


I am trying to port FreeRTOS on zedboard but facing problems.

Uptill now I have tried the following but could’nt get blinking LED demo or other demo to debug/run.

  1. I have downloaded FreeRTOS v10.2.1. Followed the https://www.freertos.org/RTOS-Xilinx-Zynq.html . Import the project in SDK 2017.4. But when I start Debug, Assembling language file appears, but no breakpoint in C file appears. SELECTED_APPLICATION is set to 0 in main() for bliniking demo but no LED is bliniking on ZEDboard.
  2. I changed the BSP to Zedboard bsp but again no blinking LED on Zedboard.
  3. I followed https://www.freertos.org/RTOS-Xilinx-SDK-BSP.html but again cant see any LED blinking on the board.
  4. I made a Vivado (2017.4) Design with AXI Timer and AXI GPIO for LEDs and Switches, make the bitstream, export the hardware to SDK 2017.4. Used my designed Hw_plateform for BSP. Import project RTOSDemo from downloaed zip file and used CORTEX_A9_Zynq_ZC702 (just as I did in para 1) but again unable to run blinking demo.

All the settings in Debug configuration are correct (Init_ps7.tcl or Resetting entire system or .Elf selection).

Kindly if anyone can help me to correctly port FreeRTOS in ZEDboard, I’ll be thankful.

rtel wrote on Sunday, June 09, 2019:

I’m not sure about the LED mappings on the Zedboard. Did you gte the
Zedboard hardware design from the FreeRTOS download? I think there was
one in the FreeTOS+TCP demo.

Other than the LED not working, is the code actually running?

Are you running from the debugger? If so ensure the psu_init() script
(probably got that name wrong but you will see it in the debug options)
is run when the debugger starts. If you are running without the
debugger the you will need to call the function from the startup code,
which is just a matter of setting a #define in the Xilinx provided code.

ziaulhak wrote on Sunday, June 09, 2019:

Dear Richard

  1. Thanks for your reply. I have configuured the LED MIO mapping in the particular C file. But no results.
  2. I am not sure which Zedboard hardware you are referring in FreeRTOS+TCP demo as the only BSP they have in their complere ZIP Download is for ZC702 and its bascially for Xilinx Evaluation Kit, not for Avent Zedboard.
  3. There is a question mark if code is running or not as I cant see any activity in the terminal configurered for 11500kbps. But i am not getting an compilation errors.


rtel wrote on Sunday, June 09, 2019:

Sounds like you need to get the debugger working, or as a minimum verify the led works in a simple main() function before using it as an indicator for a task to be running.

Maybe the other hardware design was in the labs download.