2022-03-09 12:04 AM
Hi,
I tried to run OpenOCD on a virtual machine with Windows Server 2016. We using the version 1.3.0 of the STM32CubeIDE.
When I launch the OpenOCD the program crahses with the error message:
OpenOCD is launched via this command:
CALL %PATH_STLink-OPENOCD%\openocd.exe -f %CD%\ReactionWheelTestFramework_Develop_Master.cfg -s %PATH_SUPPORTFILES% -d4
The debug log prints no error and ends like this
Info : 282 1797 core.c:1394 adapter_init(): clock speed 8000 kHz
Debug: 283 1797 openocd.c:142 handle_init_command(): Debug Adapter init complete
Debug: 284 1797 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 285 1813 command.c:143 script_debug(): command - ocd_transport ocd_transport init
Debug: 288 1813 transport.c:239 handle_transport_init(): handle_transport_init
Debug: 289 1813 hla_transport.c:152 hl_transport_init(): hl_transport_init
Debug: 290 1813 hla_transport.c:169 hl_transport_init(): current transport hla_swd
Debug: 291 1828 hla_interface.c:42 hl_interface_open(): hl_interface_open
Debug: 292 1828 hla_layout.c:40 hl_layout_open(): hl_layout_open
Debug: 293 1828 stlink_usb.c:2674 stlink_usb_open(): stlink_usb_open
Debug: 294 1828 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3744 serial:
Debug: 295 1844 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748 serial:
Debug: 296 1844 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374b serial:
Debug: 297 1844 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374d serial:
Debug: 298 1860 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374e serial:
Debug: 299 1860 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374f serial:
Debug: 300 1860 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3752 serial:
Debug: 301 1875 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3753 serial:
Can someone help me? :)
Kind regards
Bastian
Solved! Go to Solution.
2022-03-10 01:45 AM
Hi there,
thank you for your support.
I have solved this issure by updating the UTN-Server. Now i runs fine :)
Best regards
2022-03-09 12:22 AM
Hello,
STM32CubeIde v1.3.0 is quite old.
v1.9.0 is out, update and tell us if you still have the issue.
Maybe linked to the STLink USB drivers ?
Did you install them ?
You have admin rights ?
Can the STLink debug works in STM32CubeIde (using Openocd debug server) ?
Rgds,
Laurent
2022-03-09 12:34 AM
It looks like this known problem of OpenOCD with the new libusb 1.0.25
https://sourceforge.net/p/openocd/tickets/308/
https://sourceforge.net/p/openocd/tickets/336/
It has been fixed in upstream OpenOCD
http://review.openocd.org/6331/
but there is still no official OpenOCD release that includes it.
2022-03-09 12:36 AM
Hello,
thank you for your help. :)
I have tried with version 1.8.0, there i have the same problem.
Yes, the STLink USB drivers are installed. I also have admin rights. The Nucleo board is connected via an UTN-Server (SEH myUTN 250).
It works fineOn my local PC :\
I also tried to launch the Openocd debug server via the STM32CubeIDE with version 1.3.0 and 1.8.0.
2022-03-09 01:08 AM
I insert the libusb 1.0.25. Now I didn't get the error message of "openoced.exe has stopped working".
But the debug output gives me now an error:
Info : 282 1765 core.c:1394 adapter_init(): clock speed 8000 kHz
Debug: 283 1765 openocd.c:142 handle_init_command(): Debug Adapter init complete
Debug: 284 1781 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 285 1781 command.c:143 script_debug(): command - ocd_transport ocd_transport init
Debug: 288 1781 transport.c:239 handle_transport_init(): handle_transport_init
Debug: 289 1797 hla_transport.c:152 hl_transport_init(): hl_transport_init
Debug: 290 1797 hla_transport.c:169 hl_transport_init(): current transport hla_swd
Debug: 291 1797 hla_interface.c:42 hl_interface_open(): hl_interface_open
Debug: 292 1797 hla_layout.c:40 hl_layout_open(): hl_layout_open
Debug: 293 1812 stlink_usb.c:2674 stlink_usb_open(): stlink_usb_open
Debug: 294 1812 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3744 serial:
Debug: 295 1812 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748 serial:
Debug: 296 1812 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374b serial:
Debug: 297 1828 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374d serial:
Debug: 298 1828 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374e serial:
Debug: 299 1828 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374f serial:
Debug: 300 1843 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3752 serial:
Debug: 301 1843 stlink_usb.c:2688 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3753 serial:
Error: 302 1859 stlink_usb.c:2702 stlink_usb_open(): open failed
Debug: 303 1859 hla_layout.c:47 hl_layout_open(): failed
Debug: 304 1859 command.c:642 run_command(): Command failed with error code -4
User : 305 1875 command.c:705 command_run_line():
Debug: 306 1875 command.c:642 run_command(): Command failed with error code -4
User : 307 1875 command.c:705 command_run_line():
Debug: 308 1875 target.c:2048 target_free_all_working_areas_restore(): freeing all working areas
Debug: 309 1890 hla_interface.c:117 hl_interface_quit(): hl_interface_quit
2022-03-10 01:45 AM
Hi there,
thank you for your support.
I have solved this issure by updating the UTN-Server. Now i runs fine :)
Best regards