cancel
Showing results for 
Search instead for 
Did you mean: 

Problem flashing the code onto STM32F4 DISCO board

BMark
Associate

Hello!

I have installed Keil uVision and STM32 Cube on Ubuntu 18 LTE and when I try to flash the code onto my DISCO board it says that there is no board detected. I have a feel like if ST-Link2 isn't properly installed or maybe there are additional drivers for Linux that are needed in order to flash the code. I'm also running uVision via Wine. When I type usb-device on my Ubuntu terminal, the kernel sees the STM device attached to the machine via usb port.

Thank you!

1 REPLY 1
Ozone
Lead

Does the ST-Link device show up with the lsusb command ?

And, you need to grant your user access to the USB device, you might need to do this manually, i.e. add e file in /etc/udev/rules.d/.

Like here, for instance:

https://superuser.com/questions/1085991/give-application-user-access-to-usb-device

The method differs between disto families, though.

As a quick hack, you can try to run the IDE as root user. If debug access works, it is an access right issue.