Closed xintrea closed 1 year ago
Aha, author can't update doc/readme from user issue:
https://github.com/rogerclarkmelbourne/STM32duino-bootloader/issues/90
In this issue says:
If a button pin is high (e.g. button pressed) at startup, the bootloader also waits for an upload indefinitely (even for fastboot). This can be used to force bootloader mode, even when the main application is broken and fastboot is enabled. The «button» pin varies per config (see config.h), but the led-on-PC13 variant that is typically used for the Blue Pill boards ahs the «button» pin configured to PB2, aka BOOT1, which is available on a pin header. The BOOT1 pin is normally used by the hardware to decide between system flash and RAM, but only when BOOT0 is 1. When BOOT0 is 0, it always boots from main flash, ignoring the value of BOOT1, so it can be used by the bootloader.
Summary: for set DFU-bootloader to DFU-ready mode, set boot jumpers to official undocumentet position boot0=0, boot=1.
After this setting, board shows as:
[ 4304.984940] usb 2-2: new full-speed USB device number 35 using xhci_hcd
[ 4305.133726] usb 2-2: New USB device found, idVendor=1eaf, idProduct=0003, bcdDevice= 2.01
[ 4305.133733] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4305.133735] usb 2-2: Product: Maple 003
[ 4305.133738] usb 2-2: Manufacturer: LeafLabs
[ 4305.133739] usb 2-2: SerialNumber: LLM 003
And DFU device list getting is work:
> dfu-util --list
Found DFU: [1eaf:0003] ver=0201, devnum=35, cfg=1, intf=0, path="2-2", alt=2,
name="STM32duino bootloader v1.0 Upload to Flash 0x8002000",
serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=35, cfg=1, intf=0, path="2-2", alt=1,
name="STM32duino bootloader v1.0 Upload to Flash 0x8005000",
serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=35, cfg=1, intf=0, path="2-2", alt=0,
name="STM32duino bootloader v1.0 ERROR. Upload to RAM not supported.",
serial="LLM 003"
Details in the article:
https://webhamster.ru/mytetrashare/index/mtb0/1645994134zdp61ftj33 (RU)
This is not a issue with the code.
Try www.stm32duino.com
Hello!
I am trying write generic_boot20_pc13.bin to my STM32F103C8T6 board by ST-LinkV2:
After push Reset, the board showing in dmesg:
But dfu-util can't see any devices:
I am truing run dfu-util with device id:
But already nothing.
Why this DFU-bootload can not see at dfu-util?