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
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
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