Skip to main content
SFalc
Associate
November 15, 2021
Solved

Problems creating Virtual COM port on STWINKT1 (STM32L4 MCU)

Hello,

I'm writing a basic program that prints something over and over through VCOM port on USB-OTG, on a STWINKT1 board.

This board uses a STM32L4R9ZIJ6 MCU, so I followed this guide: https://www.youtube.com/watch?v=rLnQ3W8gmjY (and many others).

The problem is that the PC doesn't see the board at all.

The board doesn't show up as COM nor as "unrecognised device".

I can't understand what I'm doing wrong, how can I make it to work?

Thanks and have a nice day,

SF

This topic has been closed for replies.
SFalc
SFalcBest answer
Associate
November 18, 2021

Hello @Imen DAHMEN​ 

Thank you!

In the end I found the problem: STM32CubeIDE enables and initializes by default the MicroSD interface, and if there's no MicroSD card in the slot, the program get stuck in the Error Handler infinite loop.

Disabling the MicroSD or inserting a card in the slot fixes the problem.

Thanks and have a nice day,

SF

3 replies

ST Technical Moderator
November 15, 2021

Hello @SFalc​ ,

Let me first welcome you to the Community :)

I advise you to follow this FAQ: USB device not recognized,

Also an idea to try a different cable and PC, check if the board work correctly.

When your question is answered, please close this topic by choosing Select as Best.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
SFalc
SFalcAuthorBest answer
Associate
November 18, 2021

Hello @Imen DAHMEN​ 

Thank you!

In the end I found the problem: STM32CubeIDE enables and initializes by default the MicroSD interface, and if there's no MicroSD card in the slot, the program get stuck in the Error Handler infinite loop.

Disabling the MicroSD or inserting a card in the slot fixes the problem.

Thanks and have a nice day,

SF

ST Technical Moderator
November 18, 2021

Hi @SFalc​ ,

Glad to know the issue has been solved :).

Please allow me to close this thread and thank you for your contribution.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks