RIOT-OS / RIOT

RIOT - The friendly OS for IoT
https://riot-os.org
GNU Lesser General Public License v2.1
4.97k stars 1.99k forks source link

tests/mpu_noexec_ram: fails on i-nucleo-lrwan1 #14572

Closed fjmolinas closed 3 years ago

fjmolinas commented 4 years ago

Description

openmote-b (cc2538) and i-nucleo-lrwan1 (STM32L052T8Y6) have an MPU but mpu_noexec_ram fails on both.

Haven't done much debugging yet.

Steps to reproduce the issue

On any of the above platforms:

BUILD_IN_DOCKER=1 BOARD=i-nucleo-lrwan1 make -C tests/mpu_noexec_ram/ flash test

Expected results

Test succeeds

Actual results

2020-07-21 17:28:10,970 # main(): This is RIOT! (Version: 2020.10-devel-278-g393d4fb-pr_fix_test_pthread_flood)
2020-07-21 17:28:10,973 # Attempting to jump to stack buffer ...
2020-07-21 17:28:10,974 # 
2020-07-21 17:28:10,974 # 
2020-07-21 17:28:10,976 # Context before hardfault:
2020-07-21 17:28:10,978 #    r0: 0x0000000a
2020-07-21 17:28:10,979 #    r1: 0x20000220
2020-07-21 17:28:10,981 #    r2: 0x00000000
2020-07-21 17:28:10,983 #    r3: 0x20000a4d
2020-07-21 17:28:10,984 #   r12: 0x00000000
2020-07-21 17:28:10,986 #    lr: 0x0800125f
2020-07-21 17:28:10,988 #    pc: 0x20000a4c
2020-07-21 17:28:10,989 #   psr: 0x01000000
2020-07-21 17:28:10,990 # 
2020-07-21 17:28:10,990 # Misc
2020-07-21 17:28:10,992 # EXC_RET: 0xfffffffd
2020-07-21 17:28:10,996 # Attempting to reconstruct state for debugging...
2020-07-21 17:28:10,997 # In GDB:
2020-07-21 17:28:10,999 #   set $pc=0x20000a4c
2020-07-21 17:28:11,000 #   frame 0
2020-07-21 17:28:11,000 #   bt

Versions

fjmolinas commented 4 years ago

Removed openmote-b since I found the source of the bug.

fjmolinas commented 3 years ago

Although technically not fixed, the test is not ran anymore because the feature is no longer supported https://github.com/RIOT-OS/RIOT/blob/a281499082d82d26ed523016ee1bb95a772731f1/cpu/stm32/Makefile.features#L54-L59