diff options
| author | Hiroaki Yutani <[email protected]> | 2025-05-06 09:09:22 +0900 |
|---|---|---|
| committer | Hiroaki Yutani <[email protected]> | 2025-05-06 09:09:22 +0900 |
| commit | 0460a924ac06a7dd33b4e50396948ba9bcb5374e (patch) | |
| tree | 8d9dc305d058709557e61674bf28e7ae3637b142 /docs/pages | |
| parent | 93ff90db04f06316f0992b65a0319ebdf74ce5c4 (diff) | |
chore: Wrap link_section attribute with unsafe
Diffstat (limited to 'docs/pages')
| -rw-r--r-- | docs/pages/faq.adoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pages/faq.adoc b/docs/pages/faq.adoc index a535e89f8..b21be9a30 100644 --- a/docs/pages/faq.adoc +++ b/docs/pages/faq.adoc | |||
| @@ -268,7 +268,7 @@ General steps: | |||
| 268 | 1. Find out which memory region BDMA has access to. You can get this information from the bus matrix and the memory mapping table in the STM32 datasheet. | 268 | 1. Find out which memory region BDMA has access to. You can get this information from the bus matrix and the memory mapping table in the STM32 datasheet. |
| 269 | 2. Add the memory region to `memory.x`, you can modify the generated one from https://github.com/embassy-rs/stm32-data-generated/tree/main/data/chips. | 269 | 2. Add the memory region to `memory.x`, you can modify the generated one from https://github.com/embassy-rs/stm32-data-generated/tree/main/data/chips. |
| 270 | 3. You might need to modify `build.rs` to make cargo pick up the modified `memory.x`. | 270 | 3. You might need to modify `build.rs` to make cargo pick up the modified `memory.x`. |
| 271 | 4. In your code, access the defined memory region using `#[link_section = ".xxx"]` | 271 | 4. In your code, access the defined memory region using `#[unsafe(link_section = ".xxx")]` |
| 272 | 5. Copy data to that region before using BDMA. | 272 | 5. Copy data to that region before using BDMA. |
| 273 | 273 | ||
| 274 | See link:https://github.com/embassy-rs/embassy/blob/main/examples/stm32h7/src/bin/spi_bdma.rs[SMT32H7 SPI BDMA example] for more details. | 274 | See link:https://github.com/embassy-rs/embassy/blob/main/examples/stm32h7/src/bin/spi_bdma.rs[SMT32H7 SPI BDMA example] for more details. |
