Stream: wamr

Topic: zephyr mpu stack count


view this post on Zulip Brian Dunlay (Dec 02 2022 at 21:23):

Hi there! I'm running WAMR on zephyr and I hit the MPU stack limit (4) before I hit the installed app limit (3) due to app manager, sensor framework, and two installed apps. Is the number of MPU stacks for zephyr threads arbitrarily set to 4? Is there anything I should be concerned about when increasing this limit? Currently I can override this default of 4 with the pre-processor definition: -DBH_ZEPHYR_MPU_STACK_COUNT=N

view this post on Zulip Brian Dunlay (Dec 02 2022 at 21:59):

This is the code section I am referring to: https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/core/shared/platform/zephyr/zephyr_thread.c#L19-L36

WebAssembly Micro Runtime (WAMR). Contribute to bytecodealliance/wasm-micro-runtime development by creating an account on GitHub.

view this post on Zulip Wenyong Huang (Dec 07 2022 at 01:48):

Hi, it should be OK to increase the thread count, limiting the max stack count to 4 is just to decrease the memory usage, since the mpu stack array must be statically defined and occupies memory.


Last updated: Nov 22 2024 at 17:03 UTC