Arduino for programming STM32f103c8t6 board

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
armleo
Posts: 10
Joined: Wed Dec 02, 2015 4:37 pm

Arduino for programming STM32f103c8t6 board

Postby armleo » Wed Dec 02, 2015 4:39 pm


User avatar
mrmonteith
Posts: 103
Joined: Wed Aug 26, 2015 3:11 pm
Location: Greenville, North Carolina
Contact:

Re: Arduino for programming STM32f103c8t6 board

Postby mrmonteith » Wed Dec 02, 2015 7:42 pm

Well since you haven't had a response I thought I'd give a wild guess at it. I used this video to help setup and talk to my STM32 board. Of course mine was exactly like the video.
https://www.youtube.com/watch?v=Ze6q6NidS5w

I just used a USB to TTL adapter and ran gnd, vcc, tx an rx lines to the board. The tx to PA10 and rx go to PA9. What I'm not sure is on the board you have where the jumpers should be.

But follow the video for the board selection etc. My biggest gotcha was forgetting to reset the board before telling the IDE to program it.

If not maybe someone else with chime in with some answers. At least it might get you started.

Michael

User avatar
zoomx
Posts: 380
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Arduino for programming STM32f103c8t6 board

Postby zoomx » Thu Dec 03, 2015 9:17 am

mrmonteith wrote: I just used a USB to TTL adapter and ran gnd, vcc, tx an rx lines to the board. The tx to PA10 and rx go to PA9. What I'm not sure is on the board you have where the jumpers should be.
l

There are no jumpers, usually. You have to use pin 0 and 1 on Arduino board but I don't know if the Atmel micro can interfere with communication. Maybe you have to remove it if you can.

armleo
Posts: 10
Joined: Wed Dec 02, 2015 4:37 pm

Re: Arduino for programming STM32f103c8t6 board

Postby armleo » Thu Dec 03, 2015 12:13 pm

1.I found that i can use ARDUINO UNO as USB to TTL by connecting RESET and 5V without removing ATMEL AVR CORE
2. we must connect RX to RX TX to TX not OVRWISE!

zmemw16
Posts: 1099
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Arduino for programming STM32f103c8t6 board

Postby zmemw16 » Thu Dec 03, 2015 2:18 pm

the boot0/boot1 jumpers are clearly indicated to the left of the silk screen showing their use.
set them for flash.

whilst they may well be 5v tolerant, if possible i'd set the voltage on your serial interface to 3v3
only connect tx/rx and ground, take the main power via a usb cable.

the serial interface is tx => stm32f rx and serial rx => stm32f tx.
if the serial interface led's twinkle and nothing works, double check them and/or swap them.
the tx or rx is what 'that' particular interface pin on 'that' device is doing,

this is where the worlds divide, some info that would make this much, much easier is what your OS is? linux or windows
i tend to dip my toes in u$ water rather minimally, actually not knowing is a bit of reply stopper.

it's either install windows drivers and check in device manager versus lsusb and adding udev rules.

stephen

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

Re: Arduino for programming STM32f103c8t6 board

Postby RogerClark » Thu Dec 03, 2015 8:44 pm

armleo wrote:1.I found that i can use ARDUINO UNO as USB to TTL by connecting RESET and 5V without removing ATMEL AVR CORE
2. we must connect RX to RX TX to TX not OVRWISE!


very interesting..

thankyou. i will try this sometime

armleo
Posts: 10
Joined: Wed Dec 02, 2015 4:37 pm

Re: Arduino for programming STM32f103c8t6 board

Postby armleo » Fri Dec 04, 2015 12:25 pm

My os is Win7x64

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

Re: Arduino for programming STM32f103c8t6 board

Postby RogerClark » Fri Dec 04, 2015 7:54 pm

Everything does work on W7x64, many people are using that OS with these boards

User avatar
mrburnette
Posts: 1779
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Arduino for programming STM32f103c8t6 board

Postby mrburnette » Sat Dec 05, 2015 1:50 am

RogerClark wrote:Everything does work on W7x64, many people are using that OS with these boards

... as does 64-bit 8.1

bianchifan
Posts: 77
Joined: Sun Oct 18, 2015 1:27 pm
Location: W'tal, Germany

Re: Arduino for programming STM32f103c8t6 board

Postby bianchifan » Sun Dec 06, 2015 11:31 am

armleo wrote:1.I found that i can use ARDUINO UNO as USB to TTL by connecting RESET..

Every Arduino with an USB-TTL converter on board can be used as "converter only" when connecting RESET to GND permanently.
But you should have an eye on VCC..and perhaps level shifters.


Return to “Generic STM32F103”

Who is online

Users browsing this forum: No registered users and 2 guests