Do Neculeo-64 boards work under osx catalina on vscode/platformio?

Hello - I can’t seem to get openocd to come up properly after a successful build.
Anyone else have any luck getting vscode/platformio working for hte Nucleo-64 (NUCLEO-F446RE)
on OSX Catalina?

Thanks much.

I’m using the following platformio.ini:
[env:nucleo_f446re]

platform = ststm32

board = nucleo_f446re

framework = arduino

build_type = release

upload_protocol = stlink

----- 0 -----
Result of an upload attempt on simple test program that successfully builds is :

xPack OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev (2019-07-17-15:21)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
debug_level: 1

srst_only separate srst_nogate srst_open_drain connect_deassert_srst

----- 0 -----

The following is I believe the failing part of the result of a command line run of openocd -d4
<…>.platformio/packages/tool-openocd/bin/openocd -d4 -s <…>.platformio/packages/tool-openocd/scripts -f board/st_nucleo_f4.cfg -c “program {.pio/build/nucleo_f446re/firmware.elf} verify reset; shutdown;”

xPack OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev (2019-07-17-15:21)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
User : 13 1 options.c:60 configuration_output_handler(): debug_level: 4
User : 14 1 options.c:60 configuration_output_handler():

Info : 247 18 core.c:1381 adapter_init(): clock speed 2000 kHz
Debug: 248 18 openocd.c:158 handle_init_command(): Debug Adapter init complete
Debug: 249 18 command.c:143 script_debug(): command - transport transport init
Debug: 251 18 transport.c:239 handle_transport_init(): handle_transport_init
Debug: 252 18 hla_transport.c:152 hl_transport_init(): hl_transport_init
Debug: 253 19 hla_transport.c:169 hl_transport_init(): current transport hla_swd
Debug: 254 19 hla_interface.c:42 hl_interface_open(): hl_interface_open
Debug: 255 19 hla_layout.c:40 hl_layout_open(): hl_layout_open
Debug: 256 19 stlink_usb.c:2705 stlink_usb_open(): stlink_usb_open
Debug: 257 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3744 serial:
Debug: 258 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748 serial:
Debug: 259 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374b serial:
Debug: 260 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374d serial:
Debug: 261 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374e serial:
Debug: 262 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374f serial:
Debug: 263 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3752 serial:
Debug: 264 19 stlink_usb.c:2719 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3753 serial:
Error: 265 27 stlink_usb.c:2733 stlink_usb_open(): open failed
Debug: 266 27 hla_layout.c:47 hl_layout_open(): failed
Debug: 267 27 command.c:630 run_command(): Command ‘transport init’ failed with error code -4
User : 268 27 command.c:695 command_run_line(): in procedure ‘program’
Debug: 269 27 command.c:630 run_command(): Command ‘init’ failed with error code -4
Debug: 270 27 command.c:143 script_debug(): command - echo echo ** OpenOCD init failed **
User : 272 27 command.c:770 jim_echo(): ** OpenOCD init failed **
Debug: 273 27 command.c:143 script_debug(): command - shutdown shutdown error
User : 275 27 server.c:742 handle_shutdown_command(): shutdown command invoked
Debug: 276 27 command.c:630 run_command(): Command ‘shutdown’ failed with error code -4

Seems like there are some errors opening the STLink adapter. Can you verify in your Mac system settings that the STLink USB device is found? Which PID and VID does it have?

Also, there could be problems regarding libusb or permissions (the latter I’m not really sure on how that could be using mac). You might want to try and install brew and do a brew install libusb afterwards.

Hey,

brew install libusb fixed everything.

I don’t know if I had it prior or not as I did a sloppy job of looking about prior to the
new brew install.

Thanks ever so much!

Regards,
j

Here is the stlink fragment from lsusb -v in the unlikely event that’s useful to someone.

Product ID: 0x374b
Vendor ID: 0x0483 (STMicroelectronics)
Version: 1.00
Serial Number: 0668FF303435554157104149
Speed: Up to 12 Mb/s
Manufacturer: STMicroelectronics
Location ID: 0x14100000 / 22
Current Available (mA): 500
Current Required (mA): 300
Extra Operating Current (mA): 0
Media:
microcontroller:
Capacity: 561 KB (561,152 bytes)
Removable Media: Yes
BSD Name: disk7
Logical Unit: 0
Partition Map Type: Unknown
S.M.A.R.T. status: Verified
USB Interface: 1