Giter Site home page Giter Site logo

bootsector / stm32-hid-bootloader Goto Github PK

View Code? Open in Web Editor NEW
158.0 19.0 47.0 1.28 MB

Driverless USB HID bootloader and flashing tool for STM32F10X devices

License: GNU General Public License v3.0

C 75.46% HTML 2.27% Assembly 18.36% Makefile 0.10% Rich Text Format 3.80%

stm32-hid-bootloader's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stm32-hid-bootloader's Issues

Flashing works, but getting lots of device descriptor error -145's

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

Error opening firmware file: (null)

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]

Using HID Bootloader with STM32 Core

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?

Firmware update app

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.