STM32 and Arduino Uno like USB to UART

Post Reply
7erduk
Posts: 2
Joined: Sat Nov 04, 2017 5:21 pm

STM32 and Arduino Uno like USB to UART

Post by 7erduk » Sat Nov 04, 2017 6:03 pm

I want flashing my STM32F103. I don't have converter USB to UART, but have Arduino UNO. It cans be work like converter.
My system is maxOs SIerra.
I used software:
1. git clone https://github.com/rogerclarkmelbourne/ ... loader.git
2. git clone https://github.com/rogerclarkmelbourne/ ... _STM32.git

a. Arduino uno reset pin to ground.
b. Arduino uno 3.3V to STM 3.3V , groung to ground
c. Arduino uno 0 (RX) and 1 (TX) to STM32 A9 and A10 (i try change pins between each other)
d. STM32 boot0 is power, boot1 is ground
and i try flashing like that

./stm32flash -w ../../../../STM32duino-bootloader/binaries/generic_boot20_pa9.bin /dev/tty.usbmodem1431

results is

Code: Select all

 Using Parser : Raw BINARY
Error probing interface "serial_posix"
Cannot handle device "/dev/tty.usbmodem1431"
Failed to open port: /dev/tty.usbmodem1431
i tried used another device /dev/cu.usbmodem1431, error is same.

also i checked my arduino uno usb to uart, i used bluetooth and send AT command, it's work with same configuration.

Maybe somebody had solved this problem? Thank you.

User avatar
RogerClark
Posts: 7481
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: STM32 and Arduino Uno like USB to UART

Post by RogerClark » Sat Nov 04, 2017 8:29 pm

There are a few new members who seem to be having problems with thus sort of thing.

Look in the active topics and see if their problems are the same as yours.

BTW. The sources for stm32flash are in the repo, so you could add some debug and recompile, to try to track down why its having a problem with that usb serial driver

ag123
Posts: 806
Joined: Thu Jul 21, 2016 4:24 pm

Re: STM32 and Arduino Uno like USB to UART

Post by ag123 » Sat Dec 16, 2017 10:52 am

if you have a maple mini (or clone, e.g. Baite MM) with a pre-installed boot loader
you may like to try out this code i've posted under code snippets section, i'm not too sure if those codes would after all work on other arduinos
viewtopic.php?f=18&t=2752
one of those things that's needed by the stm32's built-in serial(uart) boot loader is that it needs an 8 (bits word size) E (even parity) 1 (stop bits) to communicate.

Post Reply