MPU doesn't work on cortex-m0+ #14822
Labels
Area: cpu
Area: CPU/MCU ports
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
MPU doesn't work on cortex-m0+.
Initially it was enabled for stm32g0 and was resulting in the following problems:
Context switching is broken in master on stm32g0 CPUs (cortex-m0+). Every switch to the idle thread triggers an hard fault:
examples/hello_world
examples/default
tests/thread_flags
All these applications were working when the support was introduced in #14163.
Bisecting shows that the commit introducing the regression is 43d6c41 from #14355. So it seems that it's rather an issue with MPU although the STM32G0 family provides that feature.
@bergzand @kaspar030, any idea what could be the problem ?
Steps to reproduce the issue
Just build and flash
examples/hello-world
and you'll get the following output:Expected results
Applications work
Actual results
All applications trigger an hard fault
Versions
make print-versions
The text was updated successfully, but these errors were encountered: