Refer to the tutorial...
Connect STM32 Blue Pill to NB-IoT with Quectel BC95-G and Apache Mynewt
Sample logs for Windows and Ubuntu Linux may be found in the logs folder
This repository contains...
src
: Rust Application
Cargo.toml
: Rust Build Settings
.cargo
: Rust Target Settings
my_sensor_app
: Mynewt Application Stub
boot_stub
: Mynewt Bootloader Stub
adc_stm32f1
: Mynewt Driver for ADC on STM32F1
custom_sensor
: Custom Sensor Definitions
esp8266
: Mynewt Driver for ESP8266
hmac_prng
: HMAC pseudorandom number generator with entropy based on internal temperature sensor
nrf24l01
: Mynewt Driver for nRF24L01
remote_sensor
: Mynewt Driver for Remote Sensor
semihosting_console
: Mynewt Console for Arm Semihosting
sensor_coap
: Sensor CoAP Library
sensor_network
: Sensor Network Library
temp_stm32
: Mynewt Driver for Internal Temperature Sensor on STM32
scripts
: Install, build and deploy scripts
.vscode
: Visual Studio Code macros for install, build and deploy
newt\newt.exe
based on https://github.com/lupyuen/mynewt-newt
Based on
https://mynewt.apache.org/latest/tutorials/sensors/sensor_thingy_lis2dh12_onb.html
https://mynewt.apache.org/latest/tutorials/sensors/sensor_nrf52_bno055.html
cd /mnt/c
newt new stm32bluepill-mynewt-sensor
cd stm32bluepill-mynewt-sensor
cat project.yml
newt install
newt pkg new -t app apps/my_sensor_app
newt pkg new -t lib libs/semihosting_console
newt target create bluepill_boot
newt target set bluepill_boot bsp=@apache-mynewt-core/hw/bsp/bluepill
newt target set bluepill_boot app=@apache-mynewt-core/apps/boot
newt target set bluepill_boot build_profile=optimized
newt target create bluepill_my_sensor
newt target set bluepill_my_sensor bsp=@apache-mynewt-core/hw/bsp/bluepill
newt target set bluepill_my_sensor app=apps/my_sensor_app
newt target set bluepill_my_sensor build_profile=debug
project.yml
should contain
project.name: "my_project"
project.repositories:
- apache-mynewt-core
repository.apache-mynewt-core:
type: github
vers: 1.6.0
user: apache
repo: mynewt-core