samples: synch: Add Thread Stack Guards conf
This patch adds the Thread Stack Guards configuration option to the synchronization sample. This is meant to be an easy way to prove that the MPU can be dynamically programmed on the supported platforms. Change-Id: I77fbe6af3303ff8a2904768abd4cc9797f03c092 Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
parent
86aff09c77
commit
1a1df7cc64
3 changed files with 20 additions and 0 deletions
|
@ -23,6 +23,14 @@ on QEMU as follows:
|
||||||
$ cd samples/synchronization
|
$ cd samples/synchronization
|
||||||
$ make run
|
$ make run
|
||||||
|
|
||||||
|
On the supported ARM MCUs the project can be built with the MPU and the Thread
|
||||||
|
Stack Guard feature enabled:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ cd samples/synchronization
|
||||||
|
$ make BOARD=v2m_beetle CONF_FILE=prj_stack_guard.conf
|
||||||
|
|
||||||
Sample Output
|
Sample Output
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
5
samples/synchronization/prj_stack_guard.conf
Normal file
5
samples/synchronization/prj_stack_guard.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_STDOUT_CONSOLE=y
|
||||||
|
CONFIG_MPU_STACK_GUARD=y
|
||||||
|
CONFIG_SYS_LOG=y
|
||||||
|
CONFIG_SYS_LOG_DEFAULT_LEVEL=4
|
||||||
|
CONFIG_SYS_LOG_OVERRIDE_LEVEL=4
|
|
@ -1,3 +1,10 @@
|
||||||
[test]
|
[test]
|
||||||
build_only = true
|
build_only = true
|
||||||
tags = apps
|
tags = apps
|
||||||
|
|
||||||
|
[test_stack_guard]
|
||||||
|
build_only = true
|
||||||
|
extra_args = CONF_FILE=prj_stack_guard.conf
|
||||||
|
tags = apps
|
||||||
|
arch_whitelist = arm
|
||||||
|
filter = CONFIG_MPU_STACK_GUARD and CONFIG_ARM_MPU
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue