Giter Site home page Giter Site logo

dalexis / stm32-usb-bootloader Goto Github PK

View Code? Open in Web Editor NEW
44.0 7.0 20.0 708 KB

This repository contains bootloader for stm32f1xx microcontrollers. It works for stm32f103ret6, but you can simply adopt it to any MCU supporting STM32 HAL library with USB and SD-card

License: BSD 2-Clause "Simplified" License

C 99.75% Assembly 0.17% Shell 0.02% CMake 0.06%
bootloader stm32 embedded usb sd-card

stm32-usb-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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

stm32-usb-bootloader's Issues

build project as-sis create 510KiB .bin

Hi

Archlinux
arm-none-eabi 9.2.0
cmake 3.15.5

when build the project (with little fix for build with folders with contains spaces) get a .bin file with 510KiB of size

Screenshot_20191116_094136

and the generated CMakeCache.txt show a strange findings

Screenshot_20191116_201242

uses the normal (PC) GCC/foo

how to fix it?

greetings

Update to STM32CubeF1 1.8.0 or more

seems don't like any SDs, like a SD 128MiB or 8GiB

[417887.507276] usb 2-5: new full-speed USB device number 122 using xhci_hcd
[417887.648330] usb 2-5: New USB device found, idVendor=0483, idProduct=572a, bcdDevice= 2.00
[417887.648333] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[417887.648335] usb 2-5: Product: Caustic bootloader
[417887.648336] usb 2-5: Manufacturer: Caustic LTS
[417887.648338] usb 2-5: SerialNumber: 00000000001A
[417887.649087] usb-storage 2-5:1.0: USB Mass Storage device detected
[417887.649209] scsi host14: usb-storage 2-5:1.0
[417888.674385] scsi 14:0:0:0: Direct-Access     STM      Product          0.01 PQ: 0 ANSI: 2
[417888.674740] sd 14:0:0:0: Attached scsi generic sg8 type 0
[417888.674952] sd 14:0:0:0: [sdf] Very big device. Trying to use READ CAPACITY(16).
[417888.675347] sd 14:0:0:0: [sdf] Using 0xffffffff as device size
[417888.675353] sd 14:0:0:0: [sdf] 4294967296 512-byte logical blocks: (2.20 TB/2.00 TiB)
[417888.675497] sd 14:0:0:0: [sdf] Write Protect is off
[417888.675500] sd 14:0:0:0: [sdf] Mode Sense: 00 00 00 00
[417888.675660] sd 14:0:0:0: [sdf] Asking for cache data failed
[417888.675664] sd 14:0:0:0: [sdf] Assuming drive cache: write through
[417888.676271] sd 14:0:0:0: [sdf] Very big device. Trying to use READ CAPACITY(16).
[417888.676704] sd 14:0:0:0: [sdf] Using 0xffffffff as device size
[417888.677477] sd 14:0:0:0: [sdf] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[417888.677480] sd 14:0:0:0: [sdf] tag#0 Sense Key : Illegal Request [current] 
[417888.677483] sd 14:0:0:0: [sdf] tag#0 Add. Sense: Invalid command operation code
[417888.677485] sd 14:0:0:0: [sdf] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[417888.677489] blk_update_request: critical target error, dev sdf, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[417888.677494] Buffer I/O error on dev sdf, logical block 0, async page read
[417888.677870] sd 14:0:0:0: [sdf] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[417888.677873] sd 14:0:0:0: [sdf] tag#0 Sense Key : Illegal Request [current] 
[417888.677875] sd 14:0:0:0: [sdf] tag#0 Add. Sense: Invalid command operation code
[417888.677877] sd 14:0:0:0: [sdf] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[417888.677879] blk_update_request: critical target error, dev sdf, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[417888.677883] Buffer I/O error on dev sdf, logical block 0, async page read
[417888.677893] ldm_validate_partition_table(): Disk read failed.
[417888.678269] sd 14:0:0:0: [sdf] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[417888.678271] sd 14:0:0:0: [sdf] tag#0 Sense Key : Illegal Request [current] 
[417888.678274] sd 14:0:0:0: [sdf] tag#0 Add. Sense: Invalid command operation code
[417888.678276] sd 14:0:0:0: [sdf] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[417888.678279] blk_update_request: critical target error, dev sdf, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[417888.678281] Buffer I/O error on dev sdf, logical block 0, async page read
[417888.678675] sd 14:0:0:0: [sdf] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[417888.678677] sd 14:0:0:0: [sdf] tag#0 Sense Key : Illegal Request [current] 
[417888.678680] sd 14:0:0:0: [sdf] tag#0 Add. Sense: Invalid command operation code
[417888.678681] sd 14:0:0:0: [sdf] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[417888.678684] blk_update_request: critical target error, dev sdf, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[417888.678686] Buffer I/O error on dev sdf, logical block 0, async page read
[417888.679048] sd 14:0:0:0: [sdf] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[417888.679053] sd 14:0:0:0: [sdf] tag#0 Sense Key : Illegal Request [current] 
[417888.679056] sd 14:0:0:0: [sdf] tag#0 Add. Sense: Invalid command operation code
[417888.679060] sd 14:0:0:0: [sdf] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[417888.679067] blk_update_request: critical target error, dev sdf, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[417888.679072] Buffer I/O error on dev sdf, logical block 0, async page read
[417888.679080]  sdf: unable to read partition table

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.