Skip to content

This is a repo to share the bug reproduce project on e2studio of IDE

License

Notifications You must be signed in to change notification settings

KeitaKashima/kernel_issue_740

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

About this repo

This is a repo to share the project reproduce the Kernel issue for FreeRTOS for RL78 MCU. FreeRTOS/FreeRTOS-Kernel#740

Test environment

  • Kit : FPB-RL78/G23
  • Compiler : CC-RL v1.12.01
  • IDE : e2 studio v2024-04 (eclipse base IDE)

Test project configuration

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()

image

about Workround code

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

image

Run result

You can see the log output on the Terminal window just running the project and check whether the issue is happening or not.

When the issue reproduced(Set `TEST_DO_CORRECT_KERNEL_CODE=0(don’t fixed))

It stopped the log output. image

When the fixing code adapted(Set `TEST_DO_CORRECT_KERNEL_CODE=1'(fixed))

It shows the log output image

About

This is a repo to share the bug reproduce project on e2studio of IDE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages