Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Demonstrating a problem with hardware divider and FreeRTOS context switching on Raspberry Pi Pico.

Notifications You must be signed in to change notification settings

carlk3/divider_context_switch

Repository files navigation

divider_context_switch

Demonstrating a problem with context switching on Raspberry Pi Pico.

Install with steps like these:

  • git clone --recurse-submodules git@github.com:carlk3/divider_context_switch.git
  • cd divider_context_switch
  • mkdir build
  • cd build
  • cmake ..
  • make

You can change the behavior by toggling the commented target_sources lines in CMakeLists.txt:

#To see the problem:        
        ${CMAKE_CURRENT_LIST_DIR}/FreeRTOS-Kernel/portable/GCC/ARM_CM0/port.c 
#To see the fix:        
        #${CMAKE_CURRENT_LIST_DIR}/port.c 

and rebuilding.

About

Demonstrating a problem with hardware divider and FreeRTOS context switching on Raspberry Pi Pico.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published