本篇主要聚焦于与开发过程中相关的一些其他的软件项目
from: https://docs.embassy.dev/embassy-executor/git/cortex-m/index.html
When the nightly
Cargo feature is not enabled, embassy-executor
allocates tasks out of an arena (a very simple bump allocator).
If the task arena gets full, the program will panic at runtime. To guarantee this doesn’t happen, you must set the size to the sum of sizes of all tasks.
The arena size can be configured in two ways:
task-arena-size-8192
. Only a selection of values is available, see Task Area Sizes for reference.EMBASSY_EXECUTOR_TASK_ARENA_SIZE
. For example EMBASSY_EXECUTOR_TASK_ARENA_SIZE=4321 cargo build
. You can also set them in the [env]
section of .cargo/config.toml
. Any value can be set, unlike with Cargo features.Environment variables take precedence over Cargo features. If two Cargo features are enabled for the same setting with different values, compilation fails.
from: https://docs.embassy.dev/embassy-executor/git/cortex-m/index.html#executor
executor-thread
— Enable the thread-mode executor (using WFE/SEV in Cortex-M, WFI in other embedded archs)executor-interrupt
— Enable the interrupt-mode executor (available in Cortex-M only)from: https://docs.embassy.dev/embassy-executor/git/cortex-m/index.html#attributes