Just started tonight with the STM32 on a generic "blue pill" board for building up a STEM school project for my wife's school.
Most things are working brilliantly. Much appreciated the effort put into this.
Using Arduino 1.6.5r5 64-bit on Ubuntu 14.04LTS on my laptop.
USB to blue pill works nicely.
"./stm32flash -w ~/src/repos/STM32duino-bootloader/STM32F1/binaries/generic_boot20_pc13.bin /dev/ttyUSB0"
Then after attaching usb-micro cable; disconnecting usb/serial foo; and, reprogramming a sketch (a pc13 blinker) when restarted, no problem, but further reprogramming is not possible. It hangs at this point:
Code: Select all
Failed to open serial device. dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! dfu-util: Cannot set alternate interface dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2014 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to firstname.lastname@example.org Opening DFU capable USB device... ID 1eaf:0003 Run-time device DFU version 0110 Claiming USB DFU Interface... Setting Alternate Setting #2 ...
Code: Select all
Opening DFU capable USB device... ID 1eaf:0003 Run-time device DFU version 0110 Claiming USB DFU Interface... Setting Alternate Setting #2 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 0110 Device returned transfer size 1024 Copying data from PC to DFU device Download [=========================] 100% 14268 bytes Download done. state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present Done! Resetting USB to switch back to runtime mode
Does anything have to be in the sketch to ensure it can handle the next upload, or is there something else I'm missing. Hmmm, I think I'm using head from the repo which may be an issue perhaps?
Any suggestions would be most welcome to this STM32 newbie.
Thanks again and kind regards,
matthurd (at) acm.org