Datasheet
This should give you the following project structure:
Create a New Application
Now that you have a project skeleton, you can start adding applications to it.
A Mynewt app requires at least a main() function, a pkg.yml file, and a most of the time a syscfg.yml file, as well as a
new 'app' folder where the files should be stored.
To get started, create a new app folder as follows:
Newt create the core apps/first/pkg.yml file with the following text (for example via $ nano apps/first/pkg.yml , or
using your favorite text editor):
$ newt install -v
[apache-mynewt-core]:
Downloading repository description
Download successful!
Downloading repository mynewt-core (branch: master; commit: mynewt_1_1_0_tag) at https://github.com/apache/mynewt-core.git
Cloning into '/var/folders/86/hb2vp14n5_5_yvdz_z8w9x_c0000gn/T/newt-repo021712424'...
remote: Counting objects: 65349, done.
remote: Compressing objects: 100% (151/151), done.
remote: Total 65349 (delta 130), reused 162 (delta 95), pack-reused 65099
Receiving objects: 100% (65349/65349), 80.03 MiB | 1.94 MiB/s, done.
Resolving deltas: 100% (39656/39656), done.
Will create new branch mynewt_1_1_0_tag from tag tags/mynewt_1_1_0_tag
apache-mynewt-core successfully installed version 1.1.0-none
.
├── LICENSE
├── NOTICE
├── README.md
├── apps
│ └── blinky
│ ├── pkg.yml
│ └── src
├── project.state
├── project.yml
├── repos
│ └── apache-mynewt-core
└── targets
├── my_blinky_sim
│ ├── pkg.yml
│ └── target.yml
└── unittest
├── pkg.yml
└── target.yml
$ mkdir apps/first
We'll call this application 'first', but you can use any name you find appropriate
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 48 of 87










