8000 GitHub - srcnert/rak-zephyr-app: Example projects for Zephyr RTOS on RAK3172/RAK4631/RAK11720
[go: up one dir, main page]

Skip to content

srcnert/rak-zephyr-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAKwireless Zephyr Applications

This project is prepared to use RAKwireless LoRa modules with Zephyr project. This repo is prepared to use RAK3172, RAK4631 and RAK11720 stamp modules. All sample projects are tested on RAK19007 Wisblock base board. The main idea of the repo is inspired by https://github.com/zephyrproject-rtos/example-application.

Initialization

Before starting initialization, please install VsCODE, GIT, J-LINK and NRFUTIL programs for your operating system.

After that, you must install toolchain via:

# Install tools for managing and using toolchains:
nrfutil install device
nrfutil install toolchain-manager
# Install a specific version toolchain:
nrfutil toolchain-manager install --ncs-version v2.9.0
# List your currently installed toolchain and learn its path:
nrfutil toolchain-manager list
# Launch toolchain commands in the environment directly:
nrfutil toolchain-manager launch --terminal
# Go to setup path:
cd <go to destination you wanna setup rak-zephyr-workspace>
# Initialize rak-zephyr-workspace:
west init -m https://github.com/srcnert/rak-zephyr-app rak-zephyr-workspace
# Update zephyr modules:
cd rak-zephyr-workspace
west update

This is the easier way to set up a toolchain for Zephyr RTOS or nRF Connect SDK for RAK4631(nRF52840 + SX1262) or any other boards.

Second way is to follow up Zephyr RTOS guide: https://docs.zephyrproject.org/latest/develop/getting_started/index.html

Patch

To patch addressed issues, run the following command:

cd rak-zephyr-app
west patch

Building and running

To build an application, open '../rak-zephyr-workspace/rak-zephyr-app' directory on your Visual Studio Code app. After that, please open '../.vscode/settings.json' file and set following parameters:

"ZEPHYR_WORKSPACE": "/your/path/to/rak-zephyr-workspace",

"TOOLCHAIN_BASE":   "/your/path/to/toolchains/0123456789",
"JLINK_PATH":       "/your/path/to/JLink_V123",
"MCUMGR_PATH":      "/your/path/to/go/bin"

*** McuMgr is necessary to use mcumgr commands. Please check dfu application for details.

Please run 'west patch' command to fix following problems:

You can build your project via 'VsCode --> Terminal --> Run Build Task' option. For example, if you wanna build 'app/adc' example for rak3172, please select following options:

  • Select the board: rak3172
  • Select the build type: --no-sysbuild
  • Select the ble overlay: no_overlay.conf
  • Select the mcuboot overlay: no_overlay.conf
  • Select the sleep overlay: no_overlay.conf
  • Select the project: app/adc

For example, if you wanna build 'app/lorawan_otaa' example for rak11720, please select following options:

  • Select the board: rak11720
  • Select the build type: --sysbuild
  • Select the ble overlay: overlay_ble.conf
  • Select the mcuboot overlay: overlay_mcuboot.conf
  • Select the sleep overlay: overlay_sleep_rak11720.conf
  • Select the project: app/lorawan_otaa

The overlay files can be selected according to your request. Whole sample examples are tested on Rak19007 base board. J-Link is used to program stamp modules.

To program your board, please use 'VsCode --> Terminal --> Run Task --> flash' option.

About

Example projects for Zephyr RTOS on RAK3172/RAK4631/RAK11720

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0