aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32l4/.cargo/config.toml3
-rw-r--r--examples/stm32l4/memory.x8
-rw-r--r--examples/stm32l4/src/bin/dac_dma.rs2
3 files changed, 7 insertions, 6 deletions
diff --git a/examples/stm32l4/.cargo/config.toml b/examples/stm32l4/.cargo/config.toml
index abf55eb2e..4ccdf121e 100644
--- a/examples/stm32l4/.cargo/config.toml
+++ b/examples/stm32l4/.cargo/config.toml
@@ -2,7 +2,8 @@
2# replace STM32F429ZITx with your chip as listed in `probe-rs-cli chip list` 2# replace STM32F429ZITx with your chip as listed in `probe-rs-cli chip list`
3#runner = "probe-rs-cli run --chip STM32L475VGT6" 3#runner = "probe-rs-cli run --chip STM32L475VGT6"
4#runner = "probe-rs-cli run --chip STM32L475VG" 4#runner = "probe-rs-cli run --chip STM32L475VG"
5runner = "probe-rs-cli run --chip STM32L4S5VI" 5#runner = "probe-rs-cli run --chip STM32L4S5VI"
6runner = "probe-run --chip STM32L432KCUx"
6 7
7[build] 8[build]
8target = "thumbv7em-none-eabi" 9target = "thumbv7em-none-eabi"
diff --git a/examples/stm32l4/memory.x b/examples/stm32l4/memory.x
index eb87d1b54..0cef526ae 100644
--- a/examples/stm32l4/memory.x
+++ b/examples/stm32l4/memory.x
@@ -1,7 +1,7 @@
1MEMORY 1MEMORY
2{ 2{
3 /* NOTE 1 K = 1 KiBi = 1024 bytes */ 3 /* NOTE K = KiBi = 1024 bytes */
4 /* These values correspond to the STM32L4S5 */ 4 /* TODO Adjust these memory regions to match your device memory layout */
5 FLASH : ORIGIN = 0x08000000, LENGTH = 1024K 5 FLASH : ORIGIN = 0x8000000, LENGTH = 256K
6 RAM : ORIGIN = 0x20000000, LENGTH = 128K 6 RAM : ORIGIN = 0x20000000, LENGTH = 64K
7} 7}
diff --git a/examples/stm32l4/src/bin/dac_dma.rs b/examples/stm32l4/src/bin/dac_dma.rs
index aefc8412f..7c0df835b 100644
--- a/examples/stm32l4/src/bin/dac_dma.rs
+++ b/examples/stm32l4/src/bin/dac_dma.rs
@@ -93,7 +93,7 @@ async fn dac_task1(dac: &'static mut Dac1Type<'static>) {
93#[embassy_executor::task] 93#[embassy_executor::task]
94async fn dac_task2(dac: &'static mut Dac2Type<'static>) { 94async fn dac_task2(dac: &'static mut Dac2Type<'static>) {
95 let data: &[u8; 256] = &calculate_array::<256>(); 95 let data: &[u8; 256] = &calculate_array::<256>();
96 96
97 info!("TIM7 frequency is {}", TIM7::frequency()); 97 info!("TIM7 frequency is {}", TIM7::frequency());
98 98
99 const FREQUENCY: Hertz = Hertz::hz(600); 99 const FREQUENCY: Hertz = Hertz::hz(600);