Page 1 of 1

USB port does not appear (linux mint)

Posted: Thu Jun 04, 2020 5:05 pm
by carlo
Today I got the ST32F401 card.
I would like to use it with arduino ide but I cannot load the sketch because the USB0, 1 etc. port does not appear.
Linux mint operating system 19.3.
Some idea?
Thanks.

Re: USB port does not appear (linux mint)

Posted: Thu Jun 04, 2020 7:00 pm
by ag123
to upload the sketch, and assuming that you are using a stm32f401 pill board. the following finger dance applies

you need
http://dfu-util.sourceforge.net/

next
  • press boot0 and reset.
  • hold boot0 release reset
you can release both after another (few) seconds.

Code: Select all

> dfu-util -l
^ check if you can see the stm32 internal DFU bootloader listed

> dfu-util -RD -s 0x8000000 sketch.bin
of course you'd need to build your sketch for 0x8000000 start of flash. there is no need for another usb boot loader on stm32f401
that DFU boot loader is built-in

Re: USB port does not appear (linux mint)

Posted: Thu Jun 04, 2020 9:03 pm
by mrburnette
If Roger's core, a USB-serial adapter also works painlessly:

Image

Image


Good luck,

Ray

Re: USB port does not appear (linux mint)

Posted: Fri Jun 05, 2020 8:09 am
by carlo
Thanks for the replies, I will carry out the advice received.

Re: USB port does not appear (linux mint)

Posted: Mon Jun 08, 2020 3:44 pm
by carlo
STM32F401 blue pill after installing dfu-util I encountered another problem due to the wrong STN32CubeProgrammer
used before to program a NUCLEO L053R8 card.
After loading STM32CubeProgrammer v2.3.0 it works fine.

OK
Thanks