Devzone posts

From Wiki at Neela Nurseries
Revision as of 22:44, 24 October 2022 by Ted (talk | contribs) (^ SPI and I2C: - post related to DT_ANY_INST_ON_BUS_STATUS_OKAY issue)
Jump to: navigation, search

Keywords: Nordic Segger python script :: create_nordic_project.py :: create Nordic project dot py :: index.asp

 
 

--- Overview ---

This page a starting point for references (links) to Nordic Devzone posts and additional notes on their respective issues. This page also contains posts from Jared Wolff Community forum, an excellent technical resource for design matters IoT related, and also Zephyr RTOS related.

On this page indentation of URLs highlights when one post refers or links to another.

Worth noting, Nordic Semi web site is organized into three domains:

 

primary Nordic Semi website     ::     Nordic Devzone     ::     Nordic Semi Documentation

 

Searching for articles, tutorials and other materials in one domain does not in general appear to find or capture search results in the other two Nordic Semi site domains. An on-line power profiling tool can be found indirectly at Nordic Devzone by entering search pattern "online power profiler". The link to the profiler for nRF91xx family parts is:

Some related links to Nordic on-line power profiler:

A local wiki page is in progress as well relating to LTE modem commands, both universal ones and some of Nordic Semi's custom AT commands:


A helpful summary of all firmware development tools offered by Nordic Semi:

Nordic link to Segger and Segger Embedded Studio downloads:


^ Nordic Semi Guides



^ ncs Changes in Newer than 1.6.1 Release



^ - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -  

^ Low Current Related

2022



^ DTS

2022


^ To Configure Pins

2022


^ To Configure Pins as Analog Inputs

0331


^ Debugging

2022


^ RTT Real Time Terminal Related

2022


^ nRF LTE Modem and PSM Modes

Posts to Nordic Devzone relating to LTE modem Power Savings Mode:

0516 About three years ago Norway developers discover iBasis SIM cards force Active Time period to zero, effectively disabling PSM:


How to interpret bit wise encodings of PSM parameters periodic-TAU, active time, periodic-TAU extended:

Others' posts:

2022

2021


^ nRF9160 Modem Libraries

2022



^ AT commands

0408


^ MQTT Related

2022
0509

2021-12-31 FRI

2021-12-22 WED

2021-12-17 FRI

https://devzone.nordicsemi.com/f/nordic-q-a/69077/nrf9160-aws_iot-sample-mqtt-topic-add-does-not-work/288602#288602

zephyr-based/nrf$ grep -nr CONFIG_MQTT_CLEAN_SESSION ./*
./applications/asset_tracker_v2/prj.conf:106:CONFIG_MQTT_CLEAN_SESSION=y
./applications/asset_tracker/prj.conf:54:CONFIG_MQTT_CLEAN_SESSION=n
./applications/asset_tracker/src/main.c:1638:#if !IS_ENABLED(CONFIG_MQTT_CLEAN_SESSION)
./applications/asset_tracker/prj_qemu_x86.conf:28:CONFIG_MQTT_CLEAN_SESSION=n
./applications/asset_tracker/prj_thingy91_nrf9160ns.conf:58:CONFIG_MQTT_CLEAN_SESSION=n
./doc/nrf/releases/release-notes-1.4.0.rst:181:    * Replaced ``CONFIG_CLOUD_PERSISTENT_SESSIONS`` usage with Zephyr's :option:`CONFIG_MQTT_CLEAN_SESSION`.
./samples/nrf9160/mqtt_simple/prj.conf:28:CONFIG_MQTT_CLEAN_SESSION=y
./subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c:577:#if !defined(CONFIG_MQTT_CLEAN_SESSION)
./subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c:591:#if !defined(CONFIG_MQTT_CLEAN_SESSION)
./subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c:604:#if !defined(CONFIG_MQTT_CLEAN_SESSION) || defined(CONFIG_NRF_CLOUD_FOTA)
./subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c:610:#if !defined(CONFIG_MQTT_CLEAN_SESSION)
./subsys/net/lib/aws_iot/src/aws_iot.c:684:                                !IS_ENABLED(CONFIG_MQTT_CLEAN_SESSION) &&
./subsys/net/lib/aws_iot/src/aws_iot.c:690:                 IS_ENABLED(CONFIG_MQTT_CLEAN_SESSION)) {


^ Zephyr and External Flash


^ Zephyr kernel issues


^ Battery Related Questions

2022


UICR and related issues:

2022


^ Zephyr DMA and EasyDMA

Zephyr DMA and EasyDMA . . .


^ DPPI Distributed Programmable Peripheral Interrupts

A reference to DPPI driver code:


^ - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -  

^ Code Test Coverage and Coverage Reports


^ - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -  

^ Toolchain Related

^ To Set cmake Options In SES

As of 2021-09-24, using Segger version xxx Nordic's version, this Segger IDE offers an extra menu item to open, build, flash and debug nRF SDK sample apps. The initial dialog box which appears for this option is titled "nRF Connect Options". Just left of the title there is a Nordic colored icon showing two links of chain, white on blue.

There are five input boxes, a mix of text inputs and drop down menus, and two sets of radio buttons. The free form text input box titled "Extra CMake Build Options" is a key place to express custom configuration settings to `cmake`. To use, for example, Zephyr's latest stable arm cross compiling toolchain in place of Nordic's close but not quite as recent chosen release of GNU ARM cross compiler toolchain, the following `cmake` option needs be entered here:

-DZEPHYR_TOOLCHAIN_VARIANT=zephyr

The default value for 'ZEPHYR_TOOLCHAIN_VARIANT' with Nordic's SDK v1.6.1 is 'gnuarmemb'. It is not sufficient to set a variable by this name in the shell environment of Linux systems, nor is it sufficient to set a Segger global or project macro by this name equal to the string "zephyr". This change in toolchain name or branding must be passed to `cmake` on its command line. In Segger, we build with a button press, so the command line option is only accessible to us from certain limited place or places. This text input box is our place to express needed custom command line options to `cmake` when working within SES.


^ create_nordic_project.py

ted@localhost:~/projects/zephyr-based/z4-sandbox-kionix-work/nrf/samples/nrf9160/at_client$ python3 /opt/ses-nordic/arm_segger_embedded_studio_v560_linux_x64_nordic/html/create_nordic_project.py
Usage: create_nordic_project.py [-h] [--cmake-executable cmakeExecutable] [--cmake-option cmakeOption]
                                [--python-executable pythonExecutable] [--ninja-executable ninjaExecutable]
                                [--dtc-executable dtcExecutable]
                                zephyrBaseDir toolchainDir studioDir buildDir boardDir boardName sourceDir

Arguments:
  zephyrBaseDir      Zephyr base directory
  toolchainDir       GCC toolchain directory
  studioDir          Embedded Studio directory
  buildDir           Build directory
  boardDir           Board directory
  boardName          Board name
  sourceDir          Source directory

Optional arguments:
  --help                                  Show this help message and exit
  --ncs-toolchain-version versionNCS Toolchain version to use
  --cmake-executable cmakeExecutable      CMake executable to use
  --cmake-option cmakeOption              Add additional CMake option
  --python-executable pythonExecutable    Python executable to use
  --ninja-executable ninjaExecutable      Ninja executable to use
  --dtc-executable dtcExecutable          DTC executable to use
  --cmake-rerunRerun CMake in build folder
ted@localhost:~/projects/zephyr-based/z4-sandbox-kionix-work/nrf/samples/nrf9160/at_client$


^ How to flash how to program


= ^ Zephyr and Docker

2022 0629


^ - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -   - - - - -  

^ Posts To Follow - not yet sorted

As a note here which will also be mentioned near the beginning of this NN wiki page, it is as of 2022-05-09 Monday possible to access any Nordic Devzone post by its number, by entering a URL of the form https://devzone.nordicsemi.com/f/nordic-q-a/nnnnn/index.asp. This works for posts all the way down to Nordic Devzone's first post, post number 1, which was posted cerca 2013.

The following posts cover interesting and in many cases likely useful topics relating to low power, edge sensing devices. These posts however are not yet sorted by NN wiki users. They are here for further review, possibly on a rainy day, but in either case to fulfill future technical needs:


2022


0509

0329

0315


2021-12-13 Monday ( OPEN )


2021-11-30 ( OPEN )

2021-11-22

2021-11-19

2021-11-18

2021-11-11

Something of an answer to the first and newer post, explanation of nRF ring buffer and queue libraries:

2021-11-09


2021-11-04

Excerpt `./modules/hal/cmsis/CMSIS/DSP/Include/arm_math.h:3330:arm_status arm_rfft_fast_init_f32 (`


2021-11-03


How to import non-Segger projects into Segger:

TO DO : follow steps outlined in this post:

Post by Erez, bringing in existing nRF SDK project to Segger:


Two I2C, SPI and ADC APIs available in nRF9160 based projects:


Recent post regarding how to add driver to a minimal Zephyr project (not yet answered as of 2021-09-26):


Posts which mentions 'offsets.c.obj does not exist' error:

Board overlay file base names must match board called out in `west build ...` invocation:

Electrical and hardware related:


Sprintf C formatting:


How to integrate Zephyr drivers into custom Zephyr app:


^ Posts to Follow - Offered help

2022 . . .


^ Posts Underway

2022-03-02 Wed

Hello CircuitDojo Community,

In a [recent post](https://community.jaredwolff.com/d/222-nrf9160-sleep-and-low-power-control-areas/2) I inquired about low power configurations for the nRF9160 and boards based on this SiP. Jared Wolff shared code which dynamically turns off a given UART of the SiP's application processor. In his code there's a call to a routine named `uart_rx_disable().` I'd initially overlooked this. Today as I try to build my application I'm blocked on a link time error "undefined reference to `'".

Per Jared's code excerpt I have added `CONFIG_PM_DEVICE=y` to my prj.conf. My project is based on Nordic's aws_iot sample app. I am using the ncs SDK version 1.6.1. Nordic's fork of Zephyr in this SDK is Zephyr release 2.6.0.

Where should `uart_rx_disable()` be defined? Am I using a too old version of ncs or Zephyr RTOS?


^ Posts To Close

Must request Nordic Devzone engineers to close following tickets, issues answered: