Platformio

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
pirimmsr
Posts: 1
Joined: Sat Dec 03, 2016 12:03 am

Re: Platformio

Postby pirimmsr » Sat Dec 03, 2016 12:24 am

I got the blink.ino example working on the BluePill board under Win8 with the following platformio.ini settings:

Code: Select all

[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
upload_port = COM10
upload_protocol = serial


Needed to change the LED from PB1 to PC13 as follows

Code: Select all

#define BOARD_LED PC13

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin PB1 as an output.
  pinMode(BOARD_LED, OUTPUT);
}


Kenjutsu helped me get going with his statement about 57600 baud. I had to change line 11 in C:\Users\{user}\.platformio\packages\tool-stm32duino\serial_upload.bat FROM:

Code: Select all

stm32flash -g 0x8000000 -b 230400 -w %str% %1


TO:

Code: Select all

stm32flash -g 0x8000000 -b 57600 -w %str% %1

michael_l
Posts: 208
Joined: Mon Aug 24, 2015 6:11 pm

Re: Platformio

Postby michael_l » Tue Dec 06, 2016 1:17 pm

If you want to use SPI, you'll have to add

Code: Select all

lib_deps=SPI

for platformio to find SPI libs.

Code: Select all

[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
[color=#BF0000]lib_deps = SPI[/color]

[platformio]
src_dir=.



Return to “IDE's”

Who is online

Users browsing this forum: No registered users and 3 guests