Rakefile: add target address when flashing using stm32flash
This commit is contained in:
parent
19447081fe
commit
1b857110ce
2
Rakefile
2
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue