This is a repo to share the project reproduce the Kernel issue for FreeRTOS for RL78 MCU. FreeRTOS/FreeRTOS-Kernel#740
- Kit : FPB-RL78/G23
- Compiler : CC-RL v1.12.01
- IDE : e2 studio v2024-04 (eclipse base IDE)
You can select the project behavior by setting TEST_DO_CORRECT_KERNEL_CODE
macro on IDE.
Please open the setting window of IDE and select C/C++ General
-> Paths and Symbols
.
Please change the value of TEST_DO_CORRECT_KERNEL_CODE
as you want to check.
Build it and Run.
Macro name: TEST_DO_CORRECT_KERNEL_CODE
0
: Don’t fixed portYIELD_FROM_ISR() : Default setting
1
: Fixed portYIELD_FROM_ISR()
It is fixed when change the below code in portmacro.h
.
From #define portYIELD_FROM_ISR( xHigherPriorityTaskWoken ) if( xHigherPriorityTaskWoken ) vTaskSwitchContext()
to #define portYIELD_FROM_ISR( x ) if( x != pdFALSE ) portYIELD()
- portmacro.h
You can see the log output on the Terminal window just running the project and check whether the issue is happening or not.