Rakefile: add target address when flashing using stm32flash

This commit is contained in:
King Kévin 2021-03-30 17:36:19 +02:00
parent 19447081fe
commit 1b857110ce
1 changed files with 1 additions and 1 deletions

View File

@ -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