new Arduino Project with PlatformIO command line

A project log for STM32 BluePill Frameworks Evaluation

The STM32F103 BluePill, what's under the hoods of mbed, platformIO, Arduino,...

wassimWassim 04/14/2017 at 08:150 Comments

Content of the platformio.ini

platform = ststm32
board = bluepill_f103c8
framework = arduino
The main.cpp
#include <Arduino.h>

void setup()
  pinMode(PC13, OUTPUT);
void loop()
  digitalWrite(PC13, HIGH);
  digitalWrite(PC13, LOW);
The compiler is the same "arm-none-eabi-g++" and the result is
arm-none-eabi-size -B -d .pioenvs\bluepill_f103c8\firmware.elf
text	   data	    bss	    dec	    hex	filename
6284	   1920	    312	   8516	   2144	.pioenvs\bluepill_f103c8\firmware.elf
So the Flashed code size is : 8 KB