diff options
Diffstat (limited to 'examples/stm32h755cm4')
| -rw-r--r-- | examples/stm32h755cm4/memory.x | 1 | ||||
| -rw-r--r-- | examples/stm32h755cm4/src/bin/blinky.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32h755cm4/memory.x b/examples/stm32h755cm4/memory.x index 538bac586..7d60354e3 100644 --- a/examples/stm32h755cm4/memory.x +++ b/examples/stm32h755cm4/memory.x | |||
| @@ -9,6 +9,7 @@ SECTIONS | |||
| 9 | { | 9 | { |
| 10 | .ram_d3 : | 10 | .ram_d3 : |
| 11 | { | 11 | { |
| 12 | *(.ram_d3.shared_data) | ||
| 12 | *(.ram_d3) | 13 | *(.ram_d3) |
| 13 | } > RAM_D3 | 14 | } > RAM_D3 |
| 14 | } \ No newline at end of file | 15 | } \ No newline at end of file |
diff --git a/examples/stm32h755cm4/src/bin/blinky.rs b/examples/stm32h755cm4/src/bin/blinky.rs index f750c5db6..b5c547839 100644 --- a/examples/stm32h755cm4/src/bin/blinky.rs +++ b/examples/stm32h755cm4/src/bin/blinky.rs | |||
| @@ -10,7 +10,7 @@ use embassy_stm32::SharedData; | |||
| 10 | use embassy_time::Timer; | 10 | use embassy_time::Timer; |
| 11 | use {defmt_rtt as _, panic_probe as _}; | 11 | use {defmt_rtt as _, panic_probe as _}; |
| 12 | 12 | ||
| 13 | #[link_section = ".ram_d3"] | 13 | #[link_section = ".ram_d3.shared_data"] |
| 14 | static SHARED_DATA: MaybeUninit<SharedData> = MaybeUninit::uninit(); | 14 | static SHARED_DATA: MaybeUninit<SharedData> = MaybeUninit::uninit(); |
| 15 | 15 | ||
| 16 | #[embassy_executor::main] | 16 | #[embassy_executor::main] |
