Datasheet

Next create a apps/first/syscfg.yml file with the following content (for example $ nano apps/first/syscfg.yml ):
Finally create a apps/first/src/main.c file where the main source code will be stored:
This file lists the external dependencies for your project
pkg.name: apps/first
pkg.type: app
pkg.deps:
- "@apache-mynewt-core/libc/baselibc"
- "@apache-mynewt-core/kernel/os"
- "@apache-mynewt-core/sys/sysinit"
- "@apache-mynewt-core/sys/shell"
- "@apache-mynewt-core/sys/console/full"
- "@apache-mynewt-core/sys/log/full"
- "@apache-mynewt-core/sys/stats/full"
- "@apache-mynewt-core/hw/hal"
- "@apache-mynewt-core/mgmt/imgmgr"
- "@apache-mynewt-core/mgmt/newtmgr"
- "@apache-mynewt-core/mgmt/newtmgr/transport/nmgr_shell"
- "@apache-mynewt-core/boot/split"
- "@apache-mynewt-core/boot/bootutil"
This file contains config settings for your application to control what features and used or enabled during the
build process
syscfg.vals:
# Use INFO log level to reduce code size. DEBUG is too large for nRF51.
LOG_LEVEL: 1
REBOOT_LOG_CONSOLE: 1
# Enable the shell task.
SHELL_TASK: 1
# Include names for statistics.
STATS_NAMES: 1
# Enable shell commands.
STATS_CLI: 1
LOG_CLI: 1
CONFIG_CLI: 1
# Enable newtmgr commands.
STATS_NEWTMGR: 1
LOG_NEWTMGR: 1
CONFIG_NEWTMGR: 1
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 49 of 87