Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download two short videos (registration required) highlighting:

System Workbench for STM32


error while uploading : open ocd child process termination reason:unplugged target or stlink already in use or stlink usbdriver not installed

i am trying to upload the programme on my stm32f3discovery board for the first time but console is giving an error as follows:
Unplugged target or STLink already in use or STLink USB driver not installed
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:33)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 8000 kHz
adapter_nsrst_delay: 100
Info : clock speed 8000 kHz
Error: open failed (no matching adapter found)
in procedure ‘program’
in procedure ‘init’ called at file “embedded:startup.tcl”, line 495
in procedure ‘ocd_bouncer’
** OpenOCD init failed **
shutdown command invoked
i have already installed stlink drivers as they are automatically installed when we make new project . i m a linux user . please help

and one more thing even i have connected the board to the usb port of my computer the device manager is not detecting it at all

Hi,
What do you mean by “i have already installed stlink drivers as they are automatically installed when we make new project”. On Linux, the ST-Link is supported by libusb but you need udev rules.

Check if you have the following files in /etc/udev/rules.d :
- 49-stlinkv2.rules
- 49-stlinkv2-1.rules
- 49-stlinkv3.rules
These files are created automatically if you have installed System Workbench with the Installer (Installing System Workbench for STM32 with installer)
You can also install them manually, please find the link on this page (Installing System Workbench for STM32 from Eclipse, in the section STLink Driver > on Linux)

Hope it helps,
Kevin.
(ac6)

hi,
thankyou for your reply .
“i have already installed stlink drivers as they are automatically installed when we make new project”by this statement i mean that i have tried installing drivers which are available at the st.com also when we make a project in the workbench there is a option in the additional drivers section (in the attached picture ) to install drivers for the evaluatuion board. i have tried both but it dosent work.
i looked up into the /etc/udev/rules.d directory and all the required files are already there also i have installed libusb but nothing works.

Hi Again,

The “Additional drivers” are not drivers to install on your Linux but are the code generated in your project for the board to control USB devices. Anyway, this option is not what causing your problem.

Can you open a terminal then run “killall openocd” to kill every running OpenOCD connected to the ST-Link. Maybe one application is blocking access to the ST-Link.

By the way, do you have the same issue when running a debug session ?

hi,
thankyou for your reply,
i tried “killall openocd” command in the terminal, the terminal says openocd : no process found . yes i am having the same issue when running a debug session , this time console says :


Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:33)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 8000 kHz
adapter_nsrst_delay: 100
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 8000 kHz
Error: open failed (no matching adapter found)
in procedure ‘init’
in procedure ‘ocd_bouncer’

one thing i want to mention is that although my board is powered yet i cant see it in the device manager of linu (ubuntu version : 18.04.2)
. a notification always popup on the screen when we connect something on the usb port but when i connect my board on the usb no notification is showed . i m not the expert but i think it is something related to drivers . i tried connecting it on a windows10 operating system same problem persist. the device manager is not even showing unknown device found under usb peripherals section eventhough i have installed all the drivers properly .


Hi,

Can you verify on the STM32F3-DISCOVERY, if the two jumpers on CN4 (ST-Link) are present ? Have you tried to connect the board on other USB port ?

Regards,
Kevin.

the two jumpers are present . i replaced them with other jumpers and tried again also i tried all my usb ports but nothing works.

Is the USB plug in the “USB ST-LINK” port or “USB USER” port on the STM32F3-DISCOVERY ?
Can you send me your project for me to test on my machine ?


USB is connected to “USB ST-LINK”
i have attached source code file with post . it is a simple blinking of led.


On terminal, when running “lsusb”, do you see :
Bus 002 Device 046: ID 0483:3748 STMicroelectronics ST-LINK/V2

I did just test your code and it worked well.

My OpenOCD output console :
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:33)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 8000 kHz
adapter_nsrst_delay: 100
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 8000 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 2.894991
Info : STM32F303VCTx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
Info : accepting ‘gdb’ connection on tcp/3333

Maybe there is an issue on your board, or maybe you should update the ST-Link firmware (https://www.st.com/en/development-tools/stsw-link007.html).

no i didnt found Bus 002 Device 046: ID 0483:3748 STMicroelectronics ST-LINK/V2. i guess there is a problem in the boardand i cant update the firmware untill and unless my computer detects it anyways thankyou for u help and time . i will be returnng the board and ordering a new one .
once again thankyou soo much for your help.