Closed kzmochi closed 3 weeks ago
I investigated Nucleo-F446RE hardware user's manual and found that is not installed ST-LINK driver. Users manual for Nucleo-F446RE. STM32 Nucleo-64 development board However, ST-LINK driver has only been officially released in Windows. ST-LINK driver for windows os. ST-LINK, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 USB driver signed for Windows7, Windows8, Windows10
Install the open source stlink-tools in your Linux environment.
Download
$ git clone https://github.com/stlink-org/stlink
Build
Change to the stlink directory and run it.
$ cd stlink
$ make
Install
Change to the Release directory and run it.
$ cd build/Release
$ sudo make install
Setting udev
Set the rule to udev to create ST-Link devices when the STM32 board is connected to USB.
$ cd config/udev/rules.d/
$ sudo cp 49-stlink* /etc/udev/rules.d/
$ sudo udevadm control --reload-rules
Confirming udev
If dev has stlink2_1 OK.
$ ls /dev/
Setting Vartual Box Select USB 3.0 (xHCI) Controller. Add USB Device Filter for STM32 STLink. Get USB Serial No Confirm communication statsu. You need to trun on capture from busy.
Setting CubeIDE Open run configraton, select debug tab, you insert USB Serial No.
I cannot debug and flash the source code to use ST-LINK V2
message: No ST-LINK detected! Please connect ST-LINK and restart the debug session.