Skip to content

A basic sample that reads an Analog Input from one of the ports in the nrf52dk_nrf52832; all of this from the RTOS Zephyr. The code is only a modification from https://devzone.nordicsemi.com/f/nordic-q-a/67419/not-able-to-read-adc-on-nrf5340.

Notifications You must be signed in to change notification settings

kannan-sosaley/adc_nrf52dk_zephyr

 
 

Repository files navigation

nRF5340: Empty firmware for application core

This sample can be used to run an application on the network core of the nRF5340 when there is no need for the working application core.

Overview

The sample has minimal Zephyr configuration: no multithreading, no clock, no MPU, no device drivers. It does the following things:

  • During system initialization:
    • It allows the network core to access GPIO pins for LEDs and buttons. If more pins are required, you can add them to the :cpp:func:`network_gpio_allow()` function.
    • It starts the network core. This is not done directly in the source code of the sample, but internally by Zephyr.
  • In the :cpp:func:`main()` function of the sample:
    • The application RAM is powered off to reduce power consumption.
    • The application core is suspended indefinitely.

Requirements

The following development board:

Building and running

Testing

  1. Program this sample to the application core.
  2. Program the Zephyr's :ref:`zephyr:blinky-sample` to the network core.
  3. Observe the LEDs on the board.

Dependencies

This sample uses the following `nrfx`_ dependencies:

  • nrfx/nrf.h
  • nrfx/nrfx.h

In addition, it uses the following Zephyr libraries:

About

A basic sample that reads an Analog Input from one of the ports in the nrf52dk_nrf52832; all of this from the RTOS Zephyr. The code is only a modification from https://devzone.nordicsemi.com/f/nordic-q-a/67419/not-able-to-read-adc-on-nrf5340.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 47.8%
  • Makefile 41.1%
  • CMake 7.5%
  • C++ 2.2%
  • Batchfile 1.4%