Ubuntu VirtualBox with Source Code and Build Tools
Complete source code and tools for building Mynewt for STM32 Blue Pill, packaged as Ubuntu 19.04 (64-bit) VirtualBox. The code is described in the third article of the series...
Build Your IoT Sensor Network — STM32 Blue Pill + nRF24L01 + ESP8266 + Apache Mynewt + thethings.io
-
Download the 4-part (3.4 GB) 7zip archive:
*7z.001
,*7z.002
, ... -
Run
7zip
orKeka
to expand the archive into an 8.57 GB VirtualBox -
SSH is enabled for hostname
ubuntu1904.local
...
User:user
Password:password
For example:ssh user@ubuntu1904.local
-
Source code is located in
/opt/mynewt
, based on Mynewt 1.6.0 -
Includes Visual Studio Code for Ubuntu. Enter
code
to launch Visual Studio Code, open the folder/opt/mynewt
-
You may also use Visual Studio Code for Windows or Mac and connect to the VirtualBox with the Remote SSH Extension:
-
On Windows or Mac, launch Visual Studio Code and install the Remote SSH Extension
-
Click
View → Command Palette → Remote SSH: Connect To Host
-
Enter
user@ubuntu1904.local
. Password ispassword
-
Select the folder
/opt/mynewt
Remote build works OK, but remote debugging not yet tested. Watch the video: https://youtu.be/CI2VSZkZYaI
-
-
Excludes Rust support
-
Script used to generate this image:
sudo mkdir /opt/mynewt
sudo chown user:user /opt/mynewt
git clone https://github.com/lupyuen/stm32bluepill-mynewt-sensor /opt/mynewt
cd /opt/mynewt
./scripts/install-linux
Apply fixes from
https://gist.github.com/lupyuen/bbc2dae52a8fdac1e70a60757fed1467
newt build -v bluepill_boot
newt build -v bluepill_my_sensor
newt size -v bluepill_my_sensor