cancel
Showing results for 
Search instead for 
Did you mean: 

STM32_Programmer_CLI not working over USB under Ubuntu

TonyThi
Visitor

Updating the flash software of a STM32F070CB microcontroller did not work:

The STM32 is in BOOTLOADER mode and accessed from a Linux/Ubuntu PC using USB.

STM32_Programmer_CLI (V2.20.0) does not work if the STM32 is connected directly to the USB port of the Linux-PC, but it does work if a simple USB2-hub is inserted between the PC's USB port and the STM32 USB port.

In the non-working case the STM32_Programmer_CLI outputs this:


-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------

 

USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : FFFFFFFEFFFF
DFU protocol: 1.1
Board : --
Device ID : unknown
Warning: Device is under Read Out Protection or Target is held under reset
Error: a read Operation failed, please check if any memory protection mechanism is active.

 

This is not a udev problem, the problem persists even if STM32_Programmer_CLI is executed with root rights.

Using STM32_Programmer_CLI always works under Windows, even if the STM32 is directly connected to a USB port of the Windows PC.

Is there a way to get the STM32_Programmer_CLI to work under Linux/Ubuntu without the USB-hub?

 

0 REPLIES 0