Error while uploading to stm32f103vet6 with hid bootloader

Bootloader for STM32F103 and STM32F4xx micro-controllers
No special driver is required. Support for Windows, Linux and Mac Operating System
Post Reply
hannescam
Posts: 5
Joined: Tue Sep 07, 2021 5:05 am

Error while uploading to stm32f103vet6 with hid bootloader

Post by hannescam »

in arduino ide the error is:

Code: Select all

Arduino: 1.8.13 (Linux), Board: "Generic STM32F1 series, Generic F103VETx, HID Bootloader 2.2, Enabled (generic 'Serial'), CDC (generic 'Serial' supersede U(S)ART), Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"

Der Sketch verwendet 22156 Bytes (4%) des Programmspeicherplatzes. Das Maximum sind 524288 Bytes.
Globale Variablen verwenden 3564 Bytes (5%) des dynamischen Speichers, 61972 Bytes für lokale Variablen verbleiben. Das Maximum sind 65536 Bytes.

+-----------------------------------------------------------------------+
|         HID-Flash v2.2.1 - STM32 HID Bootloader Flash Tool            |
|     (c)      2018 - Bruno Freitas       http://www.brunofreitas.com   |
|     (c) 2018-2019 - Vassilis Serasidis  https://www.serasidis.gr      |
|   Customized for STM32duino ecosystem   https://www.stm32duino.com    |
+-----------------------------------------------------------------------+

> Trying to open the [ttyUSB0]...
> Unable to open the [ttyUSB0]
error, counldn't open [/dev/ttyUSB0]
> Searching for [1209:BEBA] device...
#
> [1209:BEBA] device is found !
> Sending <reset pages> command...
Der ausgewählte serielle Port > Sending <reset pages> command...
 ist nicht vorhanden oder das Board ist nicht angeschlossen


Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
i use arch linux
Captian_Nemo
Posts: 1
Joined: Wed Dec 08, 2021 1:16 am

Re: Error while uploading to stm32f103vet6 with hid bootloader

Post by Captian_Nemo »

From the HID bootloader github:
Linux udev setup:
To use the HID bootloader without root permissions the following udev rule needs to be installed to the /etc/udev/rules.d/99-stm32_hid_bl.rules

# STM32_HID_bootloader
ATTRS{idProduct}=="beba", ATTRS{idVendor}=="1209", MODE:="666"
You might need to reboot or run udevadm control --reload-rules and replug your device to use it as a normal user after installing.
Post Reply

Return to “STM32 HID bootloader”