Arduino for programming STM32f103c8t6 board

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
alfstm32
Posts: 7
Joined: Sun Jan 31, 2016 3:01 am

Re: Arduino for programming STM32f103c8t6 board

Postby alfstm32 » Tue Feb 02, 2016 10:52 am

If you have put the serial port at pa9 and pa10 like the same for f103C8 and f103rbct6 (maple mini one) and
put the good setting for boot0 boot1 pin you just have to reset start stm32flash and you must have the chip good detect....

jra
Posts: 7
Joined: Thu Jan 28, 2016 7:28 pm

Re: Arduino for programming STM32f103c8t6 board

Postby jra » Tue Feb 02, 2016 10:47 pm

FYI one minor glitch I ran into starting from bare metal with Linux Mint 17.3 and a blue pill was as follows.

Install Arduino-1.6.5, Arduino_STM32, STM32duino-bootloader
Run latest tools/linux/install.sh to setup udev, groups, etc.
Use stm32flash to burn bootloader to blue pill via serial
Connect blue pill via usb
/dev/maple shows up pointing to bus/usb/NNN/MMM because there is no serial sketch yet
dfu-util -l RUN AS ROOT shows board
Loading a sketch from IDE using bootloader via USB AS NOT ROOT USER fails

This is because /dev/bus/usb/NNN/MMM is in the plugdev group as specified by 45-maple.rules but the install.sh script only adds $USER to the dialout group, not the plugdev group. Running dfu-util -l as $USER does not show the device because of a permission problem. When I added $USER to the plugdev group, running dfu-util -l as $USER now works. Loading the sketch from IDE using bootloader now works, powercycle blue pill and /dev/maple now points to /dev/ACMnn which is in group dialout. Bottom line is check permissions and make sure $USER can access all of the necessary devices.

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

Re: Arduino for programming STM32f103c8t6 board

Postby mrburnette » Wed Feb 03, 2016 12:10 am

jra wrote: Bottom line is check permissions and make sure $USER can access all of the necessary devices.


Yep. I installed the Arduino package 1.0.5 first. Then 1.7.8 from .org and lastly 1.6.7 from .cc for ESP8266 and finallynthe STM32duino core. Imentioned "permissions" but the specifics will depend onthe order of installs.

Ray

creature
Posts: 1
Joined: Sat Feb 25, 2017 5:34 pm

Re: Arduino for programming STM32f103c8t6 board

Postby creature » Sat Feb 25, 2017 5:48 pm

Hi, after reading the post, I still cannot figure out using UNO to upload to a stm32.

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!


There are 2 RESET, one from UNO and one from stm32, I tried to connect both RESET together and also 5V, with ATMEL AVR CORE on UNO. But it cannot init.

armleo wrote:I programmed my stm32 using my friend's USB to Serial.
Now i see that my arduino can't be used as USB to TTL (becuase of desoldered/not soldered PULL-HIGH resistor)!
Madis my Level shifter works on freq up to 18MHZ but i have only 4 of them. (if anybody needs i can give link to AliExpress)


It seems it does not need the core on the UNO board. Isn't there pull high resistors on the RESET pins (both on UNO and stm32)? I am confused if using a UNO board could upload to stm32. Might I know the connections for programming :?:

acronis
Posts: 9
Joined: Thu Mar 02, 2017 12:32 pm

Re: Arduino for programming STM32f103c8t6 board

Postby acronis » Fri Mar 03, 2017 6:46 am

Hello. Tell me how to connect the SD CARD module (CATALEX MicroSD Adapter (v1.0) ) to the STM32f103c8t6 board. And where can I download the library and example ?
https://www.monocilindro.com/wp-content ... G_1303.jpg


acronis
Posts: 9
Joined: Thu Mar 02, 2017 12:32 pm

Re: Arduino for programming STM32f103c8t6 board

Postby acronis » Tue Mar 07, 2017 2:43 pm

Thank you ! Everything works fine!


Return to “Generic STM32F103”

Who is online

Users browsing this forum: No registered users and 2 guests