-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Describe the bug
I posted issue No.740 before but I could not share the reproduced code before.
Now I can create it and provide it in this new issue ticket.
-- Detail of the previous posting.
Issue: xEventGroupBitsFromISR API is not working properly on RL78.
The correct procedure is "BRK execution -> stack save -> context switch -> stack load", but due to an implementation error, it seems that only the context switch is done.
Therefore, it cannot return to the original and cannot move.
FreeRTOS-Kernel/portable/GCC/RL78/portmacro.h
Line 109 in a5bf4d9
#define portYIELD_FROM_ISR( xHigherPriorityTaskWoken ) do { if( xHigherPriorityTaskWoken ) vTaskSwitchContext(); } while( 0 )
Fault (current description)
#define portYIELD_FROM_ISR( xHigherPriorityTaskWoken ) if( xHigherPriorityTaskWoken ) vTaskSwitchContext()
Countermeasures (Fixed)
The following changes will fix the problem.
#define portYIELD_FROM_ISR( x ) if( x ! = pdFALSE ) portYIELD()
--
Target
- Development board: FPB-RL78/G23 https://www.renesas.com/products/microcontrollers-microprocessors/rl78-low-power-8-16-bit-mcus/rtk7rlg230csn000bj-rl78g23-128p-fast-prototyping-board-rl78g23-128p-fpb
- Instruction Set Architecture: RL78
- IDE and version: e2 studio v2024-04
- Toolchain and version: CC-RL v1.12.01
Line 109 in a5bf4d9
Host
- Host OS: Win10
To Reproduce
Please use the below Project and see the readme.
https://github.com/KeitaKashima/kernel_issue_740
Expected behavior
xEventGroupBitsFromISR API is not working properly on RL78.
It seems that portYIELD_FROM_ISR() does not work correctly.
Screenshots
Additional context
Hi team,
I am sorry that I could not share the project the issue happened in [Issue 740] (#740).
I created the project to reproduce the issue on RL78 MCU.
You can get the project of e2studio(eclipse base IDE) as below repo.
https://github.com/KeitaKashima/kernel_issue_740/tree/main
I use the CC-RL of Compiler and below env.
Test environment
- Kit : FPB-RL78/G23
- Compiler : CC-RL v1.12.01
- IDE : e2 studio v2024-04 (eclipse base IDE)
Could you check the behavior and ReadMe of URLs?