From 1b857110ce16374b54db866a5f5c5a66b7e97477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 30 Mar 2021 17:36:19 +0200 Subject: [PATCH] Rakefile: add target address when flashing using stm32flash --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index ace4f64..e7f62f2 100644 --- a/Rakefile +++ b/Rakefile @@ -247,7 +247,7 @@ task :flash_application => APPLICATION+".hex" do |t| when "BMP" sh "#{GDB} --eval-command='target extended-remote #{BMP_PORT}' --eval-command='set confirm off' --eval-command='monitor swdp_scan' --eval-command='attach 1' --eval-command='load' --eval-command='kill' --eval-command='quit' #{t.source}" when "UART" - sh "stm32flash -w #{t.source} -v /dev/ttyUSB0" + sh "stm32flash -S 0x08002000 -w #{t.source} -v /dev/ttyUSB0" end end