# Installing FreeRTOS on an 8051 microcontroller chip

**URL:** <https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165>\
**Category:** Kernel\
**Created:** [April 27, 2015, 5:06pm UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165 "2015-04-27T17:06:52Z")\
**Posts on this page:** 9\
**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:** [April 27, 2015, 5:06pm UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/1 "2015-04-27T17:06:52Z")

</div>

**[bhavukdheer](https://sourceforge.net/u/bhavukdheer/)** wrote on [Monday, April 27, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/61a90080/#2127):

I need to install FreeRTOS on an 8051 microcontroller chip as part of a project. Can anybody tell me how to go about it precisely? I have downloaded SDCC and tried to compile the source C files of FreeRTOS that are available for download at [www.freertos.org](http://www.freertos.org). I read somewhere that once I am able to create hex files from SDCC, I can burn them to an 8051 microcontroller chip. Is this the right way?

---

<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:** [April 27, 2015, 5:10pm UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/2 "2015-04-27T17:10:26Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, April 27, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/61a90080/#634f):

Note the SDCC port has not been changed in a _very_ long time, and is known not to build with the latest SDCC tools: [http://www.freertos.org/a00104.html#knownissues](http://www.freertos.org/a00104.html#knownissues)

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 27, 2015, 5:16pm UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/3 "2015-04-27T17:16:51Z")

</div>

**[bhavukdheer](https://sourceforge.net/u/bhavukdheer/)** wrote on [Monday, April 27, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/61a90080/#26cc):

So what alternatives could I use that would help me compile the source files (in C) of FreeRTOS?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 27, 2015, 6:28pm UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/4 "2015-04-27T18:28:53Z")

</div>

**[edwards3](https://sourceforge.net/u/edwards3/)** wrote on [Monday, April 27, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/61a90080/#7f64):

You can update the makefile that already exists to make it work with the new compiler version, then post the update to the interactive site.

---

<div class="post-metadata">

**Author:** ![myupctoys](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/myupctoys/32/3737_2.png) [@myupctoys](https://forums.freertos.org/u/myupctoys)\
**Post date:** [July 25, 2023, 8:57pm UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/5 "2023-07-25T20:57:51Z")

</div>

As with others, all I wanted is a starting point. Hopefully this helps someone else out.

The 8051 port described on FreeRTOS site and available in the Cygnal Demo folder, I have been able to confirm FreeRTOS V2.4.1 compiles with SDCC 2.5.0 May 8 2005 without error, zero modifications to the source and the Makefile as is. End up with an Intel hex file.

Just need the path added for your Make and SDCC binary. For completeness, GNU Make version used was 64 bit 4.3 on W10 64 bit.

Don’t know if the binary works, just that it compiles. At least a starting point. Assuming you can find the two versions commented on.

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [July 26, 2023, 5:36am UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/6 "2023-07-26T05:36:51Z")

</div>

Thank you for sharing.

---

<div class="post-metadata">

**Author:** ![myupctoys](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/myupctoys/32/3737_2.png) [@myupctoys](https://forums.freertos.org/u/myupctoys)\
**Post date:** [July 26, 2023, 8:56pm UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/7 "2023-07-26T20:56:26Z")

</div>

Tested and added the relevant files to my GitHub account. README tells you all you need to know to get going. SDCC and FreeRTOS versions zipped, and the enclosed project is stripped back to only the Cygnal port. All the original ports are still in the Zip.  
Do Not expect support from FreeRTOS or SDCC development teams given this is 18 years old as of todays date. Intended only as a starting point.

> **[GitHub - myupctoys/RTOS: 8051 Port of FreeRTOS 2\_4\_1 with matched SDCC compiler](https://github.com/myupctoys/RTOS)**
>
> 8051 Port of FreeRTOS 2\_4\_1 with matched SDCC compiler - GitHub - myupctoys/RTOS: 8051 Port of FreeRTOS 2\_4\_1 with matched SDCC compiler

In case I change the project name, can be found here.

> **[myupctoys - Overview](https://github.com/myupctoys)**
>
> Never stop learning.... myupctoys has 4 repositories available. Follow their code on GitHub.

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [July 27, 2023, 5:03am UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/8 "2023-07-27T05:03:58Z")

</div>

Thank you for sharing!

---

<div class="post-metadata">

**Author:** ![myupctoys](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/myupctoys/32/3737_2.png) [@myupctoys](https://forums.freertos.org/u/myupctoys)\
**Post date:** [July 28, 2023, 5:47am UTC](https://forums.freertos.org/t/installing-freertos-on-an-8051-microcontroller-chip/2165/9 "2023-07-28T05:47:18Z")

</div>

Should have known better, simple “RTOS” name caused confusion locally. So I’ve deleted the original and reposted with a more relevant name. Same content.

> **[GitHub - myupctoys/FreeRTOS\_8051\_Port: FreeRTOS 2.4.1 8051 port verified with...](https://github.com/myupctoys/FreeRTOS_8051_Port)**
>
> FreeRTOS 2.4.1 8051 port verified with SDCC 2.5.0 Both Zipped - GitHub - myupctoys/FreeRTOS\_8051\_Port: FreeRTOS 2.4.1 8051 port verified with SDCC 2.5.0 Both Zipped
