diff options
| author | James Munns <[email protected]> | 2024-12-30 19:46:55 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-12-30 19:46:55 +0000 |
| commit | 0733bee926ef117ad99e54194b009d7345051414 (patch) | |
| tree | fe1fefc5ff1aa2c2d11a445440881db7bc1dd7e1 | |
| parent | 9e34058c2b657ed0499ca16966c2326bbc77079c (diff) | |
| parent | 8639692ce38bd0e33e87a42b9d51780ccc66952c (diff) | |
Merge pull request #3699 from bugadani/faq
Update faq
| -rw-r--r-- | docs/pages/faq.adoc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/docs/pages/faq.adoc b/docs/pages/faq.adoc index ed88515d0..9c4d277f9 100644 --- a/docs/pages/faq.adoc +++ b/docs/pages/faq.adoc | |||
| @@ -92,17 +92,9 @@ If you see linker error like this: | |||
| 92 | >>> referenced by driver.rs:127 (src/driver.rs:127) | 92 | >>> referenced by driver.rs:127 (src/driver.rs:127) |
| 93 | >>> embassy_time-846f66f1620ad42c.embassy_time.4f6a638abb75dd4c-cgu.0.rcgu.o:(embassy_time::driver::now::hefb1f99d6e069842) in archive Devel/Embedded/pogodyna/target/thumbv7em-none-eabihf/debug/deps/libembassy_time-846f66f1620ad42c.rlib | 93 | >>> embassy_time-846f66f1620ad42c.embassy_time.4f6a638abb75dd4c-cgu.0.rcgu.o:(embassy_time::driver::now::hefb1f99d6e069842) in archive Devel/Embedded/pogodyna/target/thumbv7em-none-eabihf/debug/deps/libembassy_time-846f66f1620ad42c.rlib |
| 94 | 94 | ||
| 95 | rust-lld: error: undefined symbol: _embassy_time_allocate_alarm | 95 | rust-lld: error: undefined symbol: _embassy_time_schedule_wake |
| 96 | >>> referenced by driver.rs:134 (src/driver.rs:134) | ||
| 97 | >>> embassy_time-846f66f1620ad42c.embassy_time.4f6a638abb75dd4c-cgu.0.rcgu.o:(embassy_time::driver::allocate_alarm::hf5145b6bd46706b2) in archive Devel/Embedded/pogodyna/target/thumbv7em-none-eabihf/debug/deps/libembassy_time-846f66f1620ad42c.rlib | ||
| 98 | |||
| 99 | rust-lld: error: undefined symbol: _embassy_time_set_alarm_callback | ||
| 100 | >>> referenced by driver.rs:139 (src/driver.rs:139) | ||
| 101 | >>> embassy_time-846f66f1620ad42c.embassy_time.4f6a638abb75dd4c-cgu.0.rcgu.o:(embassy_time::driver::set_alarm_callback::h24f92388d96eafd2) in archive Devel/Embedded/pogodyna/target/thumbv7em-none-eabihf/debug/deps/libembassy_time-846f66f1620ad42c.rlib | ||
| 102 | |||
| 103 | rust-lld: error: undefined symbol: _embassy_time_set_alarm | ||
| 104 | >>> referenced by driver.rs:144 (src/driver.rs:144) | 96 | >>> referenced by driver.rs:144 (src/driver.rs:144) |
| 105 | >>> embassy_time-846f66f1620ad42c.embassy_time.4f6a638abb75dd4c-cgu.0.rcgu.o:(embassy_time::driver::set_alarm::h530a5b1f444a6d5b) in archive Devel/Embedded/pogodyna/target/thumbv7em-none-eabihf/debug/deps/libembassy_time-846f66f1620ad42c.rlib | 97 | >>> embassy_time-846f66f1620ad42c.embassy_time.4f6a638abb75dd4c-cgu.0.rcgu.o:(embassy_time::driver::schedule_wake::h530a5b1f444a6d5b) in archive Devel/Embedded/pogodyna/target/thumbv7em-none-eabihf/debug/deps/libembassy_time-846f66f1620ad42c.rlib |
| 106 | ---- | 98 | ---- |
| 107 | 99 | ||
| 108 | You probably need to enable a time driver for your HAL (not in `embassy-time`!). For example with `embassy-stm32`, you might need to enable `time-driver-any`: | 100 | You probably need to enable a time driver for your HAL (not in `embassy-time`!). For example with `embassy-stm32`, you might need to enable `time-driver-any`: |
| @@ -158,10 +150,9 @@ Note that the git revision should match any other embassy patches or git depende | |||
| 158 | * Set the following keys in the `[unstable]` section of your `.cargo/config.toml` | 150 | * Set the following keys in the `[unstable]` section of your `.cargo/config.toml` |
| 159 | ** `build-std = ["core"]` | 151 | ** `build-std = ["core"]` |
| 160 | ** `build-std-features = ["panic_immediate_abort"]` | 152 | ** `build-std-features = ["panic_immediate_abort"]` |
| 161 | * Enable feature `embassy-time/generic-queue`, disable feature `embassy-executor/integrated-timers` | ||
| 162 | * When using `InterruptExecutor`: | 153 | * When using `InterruptExecutor`: |
| 163 | ** disable `executor-thread` | 154 | ** disable `executor-thread` |
| 164 | ** make `main`` spawn everything, then enable link:https://docs.rs/cortex-m/latest/cortex_m/peripheral/struct.SCB.html#method.set_sleeponexit[SCB.SLEEPONEXIT] and `loop { cortex_m::asm::wfi() }` | 155 | ** make `main` spawn everything, then enable link:https://docs.rs/cortex-m/latest/cortex_m/peripheral/struct.SCB.html#method.set_sleeponexit[SCB.SLEEPONEXIT] and `loop { cortex_m::asm::wfi() }` |
| 165 | ** *Note:* If you need 2 priority levels, using 2 interrupt executors is better than 1 thread executor + 1 interrupt executor. | 156 | ** *Note:* If you need 2 priority levels, using 2 interrupt executors is better than 1 thread executor + 1 interrupt executor. |
| 166 | 157 | ||
| 167 | == How do I set up the task arenas on stable? | 158 | == How do I set up the task arenas on stable? |
