Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


STM32F4 USB connection unrecognised

Hi,

I am working on Ubuntu 16.04 and cant detect my STM32 discovery board on the system. I installed st-link and when I run st-util with board connected I get:

$ st-util
st-util 1.3.1
2017-05-18T18:51:43 WARN src/usb.c: Couldn’t find any ST-Link/V2 devices

Aslo when I try to detect the board by lsusb, fdisk or $ ls /dev/ | grep sd command, the board is not listed (as I would expect sdb* there). The output before and after running the comand is the same:
sda
sda1
sda2
sda3
sda4
sda5
sda6

I have jumpers on CN3 connectors. Can anyone help please? Does it has anything to do with the reset button - if yes how do you reset via terminal?

Hi Konje,

Did you check that Udev rules are installed ?
FYI The SystemWorkbench installer packages all the required stuff to enable STLink through USB.

Here are the expected rules:

$ ls -1 /etc/udev/rules.d/*stlink*
/etc/udev/rules.d/49-stlinkv1.rules
/etc/udev/rules.d/49-stlinkv2-1.rules
/etc/udev/rules.d/49-stlinkv2.rules

Yes, I have them isntalled. Also I checked the board on another PC that I programmed the STM board before and I also got connection error this time. The power led lights up and programator LED1 blinks red - if thats any indication.

I imagine that udev rules should work on reboot. Alternativelly, I treid restart udev rules command but for some reason that command didnt work, I got: “failed to connect to upstart” (apparetnly upstart was replaced by systemd).

I’m having a very similar issue — plugging my dev board (Nucleo-F091) into the USB isn’t showing up when I run `lsusb`. Also running Ubuntu 16.04.

I copied the udev rules so there’d be one with an `stlink` group permission (and added myself to it) with no visible effect. Any pointers of what else to look at?

/etc/udev/rules.d$ sudo ls -la
total 44
drwxr-xr-x 2 root root 4096 Mar 8 16:14 .
drwxr-xr-x 4 root root 4096 Feb 8 23:08 ..
-rw-r--r-- 1 root root 471 Mar 8 15:45 49-stlinkv1.rules
-rw-r--r-- 1 root root 532 Mar 8 15:45 49-stlinkv2-1.rules
-rw-r--r-- 1 root root 530 Mar 8 15:45 49-stlinkv2.rules
-rw-r--r-- 1 root root 717 Feb 7 22:32 49-stlinkv3.rules
-rw-r--r-- 1 root stlink 471 Mar 8 16:14 50-stlink1.rules
-rw-r--r-- 1 root stlink 532 Mar 8 16:14 50-stlinkv2-1.rules
-rw-r--r-- 1 root stlink 530 Mar 8 16:14 50-stlinkv2.rules
-rw-r--r-- 1 root stlink 717 Mar 8 16:14 50-stlinkv3.rules
-rw-rw-r-- 1 root root 848 Jul 27 2017 ant-usb-sticks.rules


 

Newest Forum Posts

  1. Можно ли установить камин на балконе или лоджии? by Grand3kpdErorb, 03:38
  2. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  3. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  5. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  6. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  7. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  8. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05

Last-Modified Blogs