1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/cpu/cortexm_address_check
2023-05-12 10:39:28 +02:00
..
main.c tests: move cpu related applications to tests/cpu 2023-05-12 10:39:28 +02:00
Makefile tests: move cpu related applications to tests/cpu 2023-05-12 10:39:28 +02:00
Makefile.ci tests: move cpu related applications to tests/cpu 2023-05-12 10:39:28 +02:00
README.md tests: move cpu related applications to tests/cpu 2023-05-12 10:39:28 +02:00

Cortex-M check for memory address validity

Introduction

Cortex-M3/M4/M7-based MCUs allow to check memory address validity by temporarily blocking BusFault handler.

Validity check can be used to determine RAM/flash/EEPROM sizes, peripherals availability, etc., to create firmware that runs effectively on different MCUs without recompiling.

NB: Cortex-M0 and Cortex-M0+ don't have BusFault events, all bus errors escalate to HardFault immediately.