Issues with STM32L476RG Nucleo Board Not Detected in CubeIDE on Ubuntu

Some time ago, I developed basic firmware for STM32 using CubeIDE on Windows. However, I have since switched to Ubuntu and recently downloaded version 21.04 of the operating system. Upon purchasing a new STM32L476RG Nucleo board, I proceeded to install CubeIDE version 1.6.1 onto my Ubuntu operating system platform. Following the creation of an uncomplicated LED blink program using said software application, I attempted to debug its execution by pressing F11 but was met with an error message: "No ST-Link found." This occurs because at that point in time there was no physical connection between the aforementioned STM32 Nucleo board and my USB port present. Subsequently after remedying this issue through their union and initiating debugging once more; while each preceding programming step completed successfully during compilation as well build phases respectively - finalization instead failed due in part to resultant errors received containing verbiage identical or similar-to=the following:  No device found by the target. There is an error when trying to initialize the ST-LINK device. Cause: Target device not detected. Afterward, a message box indicating an error also popped up. Despite searching online for solutions, I couldn't come across any that addressed my particular predicament. When I worked with CubeIDE on Windows and the STM32F103 Nucleo board, this problem didn't arise. Therefore, I'm uncertain whether it's due to my Ubuntu + CubeIDE setup or connected to my recently acquired STM32L476RG Nucleo board. Any help on this would be very much appreciated guys 🙏
attachment 0
Solution:
Hey @Sterling check the USB Permissions first , you need to ensure that your user has permission to access USB devices, so add your user to the dialout group Run this command in the terminal ``` sudo usermod -aG dialout $USER...
Jump to solution
2 Replies
Solution
Marvee Amasi
Marvee Amasi4mo ago
Hey @Sterling check the USB Permissions first , you need to ensure that your user has permission to access USB devices, so add your user to the dialout group Run this command in the terminal
sudo usermod -aG dialout $USER
sudo usermod -aG dialout $USER
After this, log out and log back in to apply the change
Joseph Ogbonna
Joseph Ogbonna4mo ago
If your Ubuntu system has a device manager I suggest you go to it and update the stlink firmware again so your system can recognize the board.
Want results from more Discord servers?
Add your server