texane/stlink — Issue #23: can't write to flash
Author: rgrover
Created: 2011-11-11 01:35:05+00:00
State: open

Hello,

I built from e714623a3086268a483cdddcccab424c053f2682.

:)~/sandbox/embedded/stlink/flash$ sudo ./flash write ../example/blink_flash/blink.bin 0x8000000
stlink current mode: debug (jtag or swd)
stlink current mode: debug (jtag or swd)
st vid = 0x0483 (expect 0x0483)
stlink pid = 0x3748
stlink version = 0x2
jtag version = 0xe
swim version = 0x3
stlink current mode: debug (jtag or swd)
stlink current mode: debug (jtag or swd)
core status: halted
(2) ***
r_idx ( 2) = 0x00000020
write error, count == 32
run_flash_loader(0x8000000) == -1
stlink_fwrite_flash() == -1

The error message is printed from src/stlink-common.c:1237