Skip to content

Commit 5398ef4

Browse files
Vincenzo Frascinogalak
Vincenzo Frascino
authored andcommitted
samples: mpu_test: Add Allow Flash Write config
This patch adds a configuration file that tests Flash writes with MPU enabled. [david.brown: Put options in prj.conf with comments as per review feedback] Signed-off-by: Vincenzo Frascino <[email protected]> Signed-off-by: David Brown <[email protected]>
1 parent de81c16 commit 5398ef4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

samples/mpu/mpu_test/README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ single thread: :file:`prj_single.conf`:
4646
4747
$ make BOARD=v2m_beetle CONF_FILE=prj_single.conf run
4848
49+
To build a version that allows writes to the flash device, edit
50+
``prj.conf``, and follow the directions in the comments to enable the
51+
proper configs.
52+
4953
Sample Output
5054
=============
5155

samples/mpu/mpu_test/prj.conf

+13
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
CONFIG_CONSOLE_SHELL=y
2+
3+
### In order to allow the flash device to be written to, this line will
4+
### need to be uncommented. Note that on some devices (MCUX/NXP), this
5+
### needs to be enabled to even enable CONFIG_FLASH, as the probe needs
6+
### to write to flash. Also, on NXP, enabling flash write also requires
7+
### that execute from RAM be enabled, as this is needed to operate the
8+
### flash device.
9+
# CONFIG_MPU_ALLOW_FLASH_WRITE=y
10+
# CONFIG_FLASH=y
11+
12+
### These can be uncommented to enable the flash device on the
13+
### STM32F4X devices.
14+
# CONFIG_SOC_FLASH_STM32=y

0 commit comments

Comments
 (0)