Skip to content

Commit

Permalink
Fixing Windows flash
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Mar 19, 2019
1 parent d9f05c5 commit 7684107
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .openocd_cmds
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

init
reset halt

flash write_image erase bin/targets/bluepill_boot/app/apps/boot/boot.elf.bin 0x8000000
12 changes: 5 additions & 7 deletions openocd.log
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.222721
Info : Target voltage: 3.225943
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x20036410
Info : flash size = 64kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x21000000 pc: 0x08009d18 psp: 0x20001144
shutdown command invoked


Warn : STM32 flash size failed, probe inaccurate - assuming 128k flash
Info : flash size = 128kbytes
target halted due to debug-request, current mode: Thread
xPSR: 00000000 pc: 0x00000024 msp: 0x96f3b83c
1 change: 1 addition & 0 deletions scripts/flash-app.ocd
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ flash verify_bank 0 bin/targets/bluepill_my_sensor/app/apps/my_sensor
# Restart the device.
echo "Restarting the Blue Pill..."
reset halt
echo "Done"
1 change: 1 addition & 0 deletions scripts/flash-boot.ocd
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ flash verify_bank 0 bin/targets/bluepill_boot/app/apps/boot/boot.elf.
# Restart the device.
echo "Restarting the Blue Pill..."
reset halt
echo "Done"

0 comments on commit 7684107

Please sign in to comment.