# Unable to port FreeRTOS on ZEDboard

**URL:** <https://forums.freertos.org/t/unable-to-port-freertos-on-zedboard/7907>\
**Category:** Kernel\
**Created:** [June 9, 2019, 12:22pm UTC](https://forums.freertos.org/t/unable-to-port-freertos-on-zedboard/7907 "2019-06-09T12:22:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 9, 2019, 12:22pm UTC](https://forums.freertos.org/t/unable-to-port-freertos-on-zedboard/7907/1 "2019-06-09T12:22:26Z")

</div>

**[ziaulhak](https://sourceforge.net/u/ziaulhak/)** wrote on [Sunday, June 09, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/76717c6cdd/#bbfe):

Hi

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](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](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.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 9, 2019, 4:00pm UTC](https://forums.freertos.org/t/unable-to-port-freertos-on-zedboard/7907/2 "2019-06-09T16:00:43Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, June 09, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/76717c6cdd/#bbfe/e7b2):

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.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [June 9, 2019, 7:19pm UTC](https://forums.freertos.org/t/unable-to-port-freertos-on-zedboard/7907/3 "2019-06-09T19:19:12Z")

</div>

**[ziaulhak](https://sourceforge.net/u/ziaulhak/)** wrote on [Sunday, June 09, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/76717c6cdd/#bbfe/e7b2/a322):

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.

Regards

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [June 9, 2019, 11:42pm UTC](https://forums.freertos.org/t/unable-to-port-freertos-on-zedboard/7907/4 "2019-06-09T23:42:56Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, June 09, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/76717c6cdd/#bbfe/e7b2/a322/01cf):

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.
