I am running macOS Sonoma and using PlatformIO within Visual Studio Code.
I have multiple STM32 microcontrollers connected via ST-LINKs to a USB hub¹. My ST-LINK USB devices are correctly listed in 1) the USB Device Tree within the macOS System Information, and 2) via Terminal when using st-info --probe
.
I am also able to utilise these ST-LINKs to upload code to a single microcontroller individually. Even when all are connected I am able to upload code to one of these microcontrollers.
However, this happens semi-randomly. I cannot specify to which of these connected microcontrollers my code is being uploaded.
I am aware that I need a serial device address to define upload_port
in my platformio.ini file. To find this address I am using ls -l /dev/cu.*
in the Terminal. But the only port being returned is /dev/cu.Bluetooth-Incoming-Port
.
Why isn’t ls -l /dev/cu.*
showing the serial addresses of my connected ST-LINK devices? After several days of troubleshooting without any success, I would be very grateful for any insights or suggestions that could help resolve this issue!
1= Anker 4-Port Ultra-Slim USB 3.0 Hub