Skip to content
simple examples for the STM32 using IoT sensors
Makefile C++ Python C Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
01_pio_mbed_BlinkLed
02_pio_arduino_BlinkLed
03_pio_mbed_Pwm
04_pio_mbed_uart
06_mbed_cli_Hello_BluePill
07_mbed_cli_os_Hello_BluePill
08_mbed_cli_os_BluePill_Target
09_mbed_cli_nRF
10_hello_servomotor
11_servo_uart_control
12_Hello_Ultrasound
13_Hello_STM32Libs_nRF
14_RFIO
16_Hello_APDS9960
17_Hello_BLDC_Motor
18_Hello_IMU
19_Hello_TimeOfFlight
20_Hello_LightDimmer
21_Hello_OLED
22_Hello_WS2812B
.gitignore
README.md

README.md

Used environements

How to use these samples with mbed cli

First clone this repo

cd 08_mbed_cli_os_BluePill_Target
mbed deploy
mbed compile

you might notice that the example 08 fills the flash almost completely, that's why in project 09 I used the nano.specs flags in json config file, to make the compilation easier I added batch scripts

cd 09_mbed_cli_nRF
mbed deploy
compile.bat
flash.bat

After an edit cycle to directly compile and run

deploy.bat

Samples description

  • 03_pio_mbed_Pwm : pwm signal on pin PB_4 with 20 ms period
  • 04_pio_mbed_uart : 2 UARTS Serial3 for log and Serial2 with uart callback echo character
  • 05_pio_mbed_nRF : Empty Project where I faced troubles including mbed libraries from pio, so switched to mbed cli for a better integration with the mbed libraries management, also after the lib_nano fitting in the blue pill, mbed is taken as the focus solution
  • 06_mbed_cli_Hello_BluePill : mbed 2 simple examples
  • 07_mbed_cli_os_Hello_BluePill : mbed 5 aka mbed-os simple example
  • 08_mbed_cli_os_BluePill_Target : from this onwards I patched the mbed-os to support the Blue pill directly so no need anymore to use a different board Nucleo with a different device.
  • 09_mbed_cli_nRF : nRF24L01p is configured with receiving parameters of the Home Smart Mesh Network and displayout hex data on the serial port

mBed online Samples

  • mbed_usb_serial

    Tested on the STM32 Blue pill, working fine, some troubles with usb through resets.

More Info

start a new mbed project with PlatformIO

pio init --board bluepill_f103c8 --project-option="framework=mbed"
pio run -v > build.log
pio init --board bluepill_f103c8 --project-option="framework=arduino"
platformio run --target upload -v
pio run -v | Out-File build.log
You can’t perform that action at this time.