bootsector / stm32-hid-bootloader Goto Github PK
View Code? Open in Web Editor NEWDriverless USB HID bootloader and flashing tool for STM32F10X devices
License: GNU General Public License v3.0
Driverless USB HID bootloader and flashing tool for STM32F10X devices
License: GNU General Public License v3.0
HI!
This is great, is there an app available for MAC and PC that end users can use to easily send the firmware to the blue pill?
Thanks!
when I invoke the command line with:
./hid-flash Blink.ino.bin
it returns:
HID-Flash v1.3 - STM32 HID Bootloader Flash Tool
(c) 04/2018 - Bruno Freitas - http://www.brunofreitas.com/
Error opening firmware file: (null)
seems like argv[2] references should be argv[1]
I tried to used your bootloader with STM32 core instead of the STM32druino.
I did basically the same thing as your patch does but in the STM32 1.2.0 folder.
I'm able to compile and flash now in Arduino using the new menu added in STM32 Generic STM32F103 Series but the program never execute after I remove the boot1 jumber and reset the board like it does with the STM32Druino with HID Upload.
I guess the problem is something linked with the linker script.
I changed the flash memory address to 0x08001000. I'm not sure what else should I try.
Any suggestion?
Whilst I seem to be able to flash images using this bootloader, during bootloader USB enumeration it is throwing lots of device descriptor errors. Is this by design or is there a way to prevent them? For reference, lsusb still sees the device as "babe InterBiometrics" and I can flash a file through the bootloader fine. Would just be nice if I could getting enumerating 100%. I'm using the 32F103C6T6 instead of the 32F103C8T6, but I've changed the linker file's _estack, RAM, and Flash sizes to compensate. I've also had USB working flawlessly with ST's USB stack, so I don't believe it to be a hardware issue
DMESG:
[ 29.474096] usb 1-1.7: device descriptor read/64, error -145
[ 29.734093] usb 1-1.7: new high-speed USB device number 9 using ehci-platform
[ 34.914051] usb 1-1.7: device descriptor read/64, error -145
[ 50.274120] usb 1-1.7: device descriptor read/64, error -145
[ 50.394747] usb 1-1-port7: attempt power cycle
[ 51.084056] usb 1-1.7: new high-speed USB device number 10 using ehci-platform
[ 56.177211] usb 1-1.7: device descriptor read/8, error -145
[ 61.391676] usb 1-1.7: device descriptor read/8, error -145
[ 61.659925] usb 1-1.7: new high-speed USB device number 11 using ehci-platform
[ 66.817586] usb 1-1.7: device descriptor read/8, error -145
[ 72.024207] usb 1-1.7: device descriptor read/8, error -145
[ 72.144502] usb 1-1-port7: unable to enumerate USB device
lsusb:
Bus 001 Device 004: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 006: ID 2c7c:0125
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 005: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 007: ID 1209:babe InterBiometrics
Bus 001 Device 002: ID 0424:2517 Standard Microsystems Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.