# FreeRTOS ported to RL78 & RH850 : sample projects on GIT

**URL:** <https://forums.freertos.org/t/freertos-ported-to-rl78-rh850-sample-projects-on-git/12076>\
**Category:** Libraries\
**Created:** [March 24, 2021, 6:16am UTC](https://forums.freertos.org/t/freertos-ported-to-rl78-rh850-sample-projects-on-git/12076 "2021-03-24T06:16:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![NoMaY-jp](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@NoMaY-jp](https://forums.freertos.org/u/NoMaY-jp)\
**Post date:** [March 25, 2021, 5:32am UTC](https://forums.freertos.org/t/freertos-ported-to-rl78-rh850-sample-projects-on-git/12076/3 "2021-03-25T05:32:05Z")

</div>

Hello Dinesh,

First of all, please don’t be angry with me. I’ll post pull requests of RL78 port (CC-RL/ICCRL78/GNURL78) and RL78 FreeRTOS Demo (CS+/EWRL78/e2 studio) during this spring. My repos are here.

A fork of FreeRTOS kernel:

[https://github.com/NoMaY-jp/FreeRTOS-Kernel/tree/master/portable/Renesas/RL78](https://github.com/NoMaY-jp/FreeRTOS-Kernel/tree/master/portable/Renesas/RL78)  
[https://github.com/NoMaY-jp/FreeRTOS-Kernel/tree/master/portable/IAR/RL78](https://github.com/NoMaY-jp/FreeRTOS-Kernel/tree/master/portable/IAR/RL78)  
[https://github.com/NoMaY-jp/FreeRTOS-Kernel/tree/master/portable/GCC/RL78](https://github.com/NoMaY-jp/FreeRTOS-Kernel/tree/master/portable/GCC/RL78)

A fork of FreeRTOS:

[https://github.com/NoMaY-jp/FreeRTOS/tree/master/FreeRTOS/Demo/RL78\_RL78G14\_FPB\_Renesas\_e2studio\_CS+](https://github.com/NoMaY-jp/FreeRTOS/tree/master/FreeRTOS/Demo/RL78_RL78G14_FPB_Renesas_e2studio_CS%2B)  
[https://github.com/NoMaY-jp/FreeRTOS/tree/master/FreeRTOS/Demo/RL78\_RL78G14\_FPB\_IAR\_e2studio\_EWRL78](https://github.com/NoMaY-jp/FreeRTOS/tree/master/FreeRTOS/Demo/RL78_RL78G14_FPB_IAR_e2studio_EWRL78)  
[https://github.com/NoMaY-jp/FreeRTOS/tree/master/FreeRTOS/Demo/RL78\_RL78G14\_FPB\_GCC\_e2studio](https://github.com/NoMaY-jp/FreeRTOS/tree/master/FreeRTOS/Demo/RL78_RL78G14_FPB_GCC_e2studio)

Other repo regarding RL78 FreeRTOS examples (CC-RL/ICCRL78/GNURL78, CS+/EWRL78/e2 studio):

[https://github.com/NoMaY-jp/FreeRTOS\_examples\_for\_Renesas\_R\_CPUs](https://github.com/NoMaY-jp/FreeRTOS_examples_for_Renesas_R_CPUs)

Advantage of this RL78 port than the official RL78 port:

(1) Non FreeRTOS nested interrupts are available. (‘Non FreeRTOS interrupts’ means that its ISRs don’t call any FreeRTOS APIs)  
(2) Interrupt dedicated stack is available. (for both FreeRTOS interrupts and non FreeRTOS interrupts)

These features are intended to solve the following issues which were mentioned in the following thread.

> (1) RL78 port doesn’t permit interrupt nesting. (This might be a big problem for your BLDC motor control application.)  
> (2) RL78 port (to be more accurate, RL78 itself) doesn’t have dedicated interrupt stack. (So every stack must have additional space for ISR.)

Anyone have experience with RL78 port on e2 studio IDE and native compiler instead of IAR?  
[https://forums.freertos.org/t/anyone-have-experience-with-rl78-port-on-e2-studio-ide-and-native-compiler-instead-of-iar/10628](https://forums.freertos.org/t/anyone-have-experience-with-rl78-port-on-e2-studio-ide-and-native-compiler-instead-of-iar/10628)

And one more advantage of this RL78 port than the official RL78 port:

(3) It is easy to use the port with C source code which are generated by the Renesas RL78 code generator.

Best regards,  
NoMaY

---

_[View the full topic](https://forums.freertos.org/t/freertos-ported-to-rl78-rh850-sample-projects-on-git/12076)._
