Page 1 of 1

Arduino IDE + STLink, COM port not found

Posted: Tue Dec 29, 2020 5:51 pm
by BT99
Hi Guys.
** What STM32 settings compatible with STM32F0XX and using ST-Link will GRAY out the "PORT" setting?
** Or, is there a way to compile a binary and upload using ST32CubeProgrammer?

I have a closed-loop Nema17 stepper module BigTreeTech S42B.
This uses micro STM32F030C8T6, however does not have a USB port and requires the ST-Link to program.
The ST-Link driver is installed and shows up as a valid USB Device, however does NOT show up as a COM port.
I installed ST32CubeProgrammer, and can connect to the device and read the memory locations, so the ST-Link is working.
I have the standard STM32 and stm32duino package installed in Arduino IDE.
I have tried all of the various boards/upload options, but they all fail because the com port is not detected.

Thanks!!! - BillT

Re: Arduino IDE + STLink, COM port not found

Posted: Tue Dec 29, 2020 7:03 pm
by fpiSTM
The STlink do not provide a COM port. On the Nucleo it is provided thanks a dedicated fw. To have a VCP COM port you have to enable the USB support and connect to USB port of the board if any. Don't know if the bigtree have one. Else connect a FTDI to USART Rx and Tx pin and configure the Hardware Serial to use those pins.

Re: Arduino IDE + STLink, COM port not found

Posted: Tue Dec 29, 2020 10:43 pm
by BT99
RX/TX pins are available. Thank you for the suggestion.
I have a Silicon Labs CP210x USB to UART Bridge (COM12) to connect.
Do I need a different bootloader, or is it just the upload selection in Arduino IDE that I need to configure?
Thanks! - BillT