1Title: Test to verify code execution from SRAM for XIP images (only on supported architectures with CONFIG_ARCH_HAS_RAMFUNC_SUPPORT=y) 2 3Description: 4 5This test verifies that we can define functions in SRAM (and 6successfully execute them from SRAM) in XIP images. It 7also verifies that the .ramfunc section is accessible by 8user space code when building with support for user mode 9(CONFIG_TEST_USERSPACE=y). 10 11--------------------------------------------------------------------------- 12 13Building and Running Project: 14 15This project outputs to the console. It can be built and executed on QEMU as 16follows: 17 18 ninja/make run 19 20--------------------------------------------------------------------------- 21 22Troubleshooting: 23 24Problems caused by out-dated project information can be addressed by 25issuing one of the following commands then rebuilding the project: 26 27 ninja/make clean # discard results of previous builds 28 # but keep existing configuration info 29or 30 ninja/make pristine # discard results of previous builds 31 # and restore pre-defined configuration info 32 33--------------------------------------------------------------------------- 34 35Sample Output: 36 37*** Booting Zephyr OS build zephyr-v3.4.0-4114-gadfd4017979f *** 38Running TESTSUITE ramfunc 39=================================================================== 40START - test_ramfunc 41 PASS - test_ramfunc in 0.229 seconds 42=================================================================== 43TESTSUITE ramfunc succeeded 44 45------ TESTSUITE SUMMARY START ------ 46 47SUITE PASS - 100.00% [ramfunc]: pass = 1, fail = 0, skip = 0, total = 1 duration = 0.229 seconds 48 - PASS - [ramfunc.test_ramfunc] duration = 0.229 seconds 49 50------ TESTSUITE SUMMARY END ------ 51 52=================================================================== 53PROJECT EXECUTION SUCCESSFUL 54