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.
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.)
I have replaced a fork on my GitHub account from dinguluer/Renesas to dinguluer/Renesas_FreeRTOS. I will read your code and may ask you some questions about the code. (But I’m sorry that questions will come from my personal interest, not from my ‘JOB’.)
By the way, the following your old post is flaged and temporarily hidden. Do you know the reason? (If it is caused by my wrong/bad replay regarding GitHub search issue, I’m very sorry.)
Does your GHS environment compile and run tasks properly? I consulted GHS technical support, They say GHS does not support FREE RTOS. Can you share your porting methods and practices below?