http://stm32flash.googlecode.com/
Using Parser : Raw BINARY
Interface serial_w32: 57600 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (Medium-density)
- RAM : 20KiB (512b reserved by bootloader)
- Flash : 128KiB (sector size: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory
Got NACK from device on command 0x43
Can't initiate chip erase!
Failed to erase memory
Chip erase is rarely used/needed.
Flashing a new program will erase the occupied sector(s).
ST-Link also has a menu choice to erase selected sectors.
Try downloading STM’s “Flash loader demonstrator” (its not really a demonstrator its the flash uploader via serial)
http://www.st.com/web/en/catalog/tools/PF257525
It has a lot of options, including unprotecting and fully erasing the chip
Sound about right?
However, it still does not show up as a DFU device (actually, I am not sure where I would find this, but it does show up as (Device Descriptor Request Failed), so I still must upload via Serial, which, I suppose is fine for testing/development, but I would like to be able to use less wires to program… Alas…
However, it still does not show up as a DFU device (actually, I am not sure where I would find this, but it does show up as (Device Descriptor Request Failed), so I still must upload via Serial, which, I suppose is fine for testing/development, but I would like to be able to use less wires to program… Alas…
I would recommend you flash the boot loader using STMs tool and see if the board initially appears as a dfu device, and then upload using the boot loader method, it’s far easier than using serial all the time, as you don’t need to keep boot0 high and don’t need to press the reset button before each upload
<…>
Welcome aboard

Found this thread and went looking for a flash uploader for Linux.
Ended up using stm32flash and this command.
sudo stm32flash -k /dev/ttyUSB0

