Hero background image

PMIC Software & tools

From prototype to production, faster

主な特長

  • Unified software environment
  • Extensive out-of-the-box functionality
  • Streamlined development process

Nordic's PMIC software and tools are designed to simplify power management development across Nordic and non-Nordic MCUs. With ready-to-use drivers for Zephyr and bare-metal environments, a production-proven fuel gauge algorithm, and powerful evaluation tools like nPM PowerUP, developers can evaluate, configure, and integrate PMICs quickly, moving fast from first prototype to final product.

Why Nordic's PMIC software and tools accelerate your product development

  • Unified software environment: use the same software development environment as Nordic SoCs and SiPs
  • Extensive out-of-the-box functionality: production-ready fuel gauge algorithm including battery health, software drivers and examples
  • Streamlined development process: nPM PowerUP enables easy evaluation and application integration, including automated battery profiling

Developer options

Interaction with Nordic PMICs is handled through a combination of pin configuration and TWI communication. Nordic provides software drivers and examples for all PMICs, making configuration and integration straightforward in any application. Nordic offers two driver options: Zephyr and bare metal.

  • Bare metal drivers are written in generic C and have no dependency on a specific SDK, RTOS, or SoC. Developers implement the required TWI communication and GPIO signaling for their target platform, with each PMIC or PMIC family supported by its own dedicated driver.
  • Zephyr drivers follow the standard Zephyr driver APIs and are available for applications using Zephyr directly or via the nRF Connect SDK.

Platform support

Drivers

The native Zephyr drivers can be used by any MCU or platform based on Zephyr RTOS, such as nRF Connect SDK. Bare metal drivers are provided as open source, without any limitation in terms of SDK, MCU architecture, or compiler.

Fuel gauge

The Fuel Gauge algorithm is provided as a compiled library as part of nRF Connect SDK. For use outside of nRF Connect SDK it must be manually copied from the repository. The library is compiled for the following platforms:

  • Cortex-M33
  • Cortex-M4
  • Cortex-M3
  • Cortex-M0
  • Cortex-M0+
  • Cortex-M55
  • Xtensa-ESP32

Zephyr developer

This section covers developing Nordic PMIC-based applications using the Zephyr RTOS, including PMIC support in nRF Connect SDK and Zephyr, how the drivers are structured and integrated, and links to samples and guides.

nRF Connect SDK and Zephyr integration

Architecture of a PMIC-based application in nRF Connect SDK and Zephyr

Nordic PMICs are supported in nRF Connect SDK by means of native Zephyr drivers. An application based on nRF Connect SDK can utilize functionality from both nRF Connect SDK and the Zephyr RTOS.

In the architecture diagram, the application is using a Nordic PMIC driver and the Fuel Gauge algorithm. The application holds the battery model file, while the algorithm itself resides in nRF Connect SDK. Although the PMIC drivers are part of Zephyr RTOS, the application uses them transparently as it would any other device driver following the Zephyr driver model. The application never needs to explicitly call low-level hardware functions to configure and interact with the PMIC, as this is handled by the driver.

The application developer decides which PMIC parameters to use, for example regulator voltage or charging current, at compile time by setting devicetree properties for the application.

An application based on Zephyr RTOS directly can utilize the PMIC drivers, but in order to use the Fuel Gauge library it needs to be manually copied from nRF Connect SDK into the Zephyr application.

Zephyr drivers

Nordic PMICs are considered multi-function devices (MFD), with functionality that spans several different driver classes in Zephyr. As such, there is no central location in nRF Connect SDK or Zephyr where all the PMIC driver source code files are located.

Each PMIC device is supported by a group of Zephyr native drivers. For example, the BOOST regulator of the nPM2100 is accessed via the Zephyr Regulator API, while the nPM2100 watchdog is accessed via the Zephyr Watchdog API. These are two different driver categories used to access functionality on the same PMIC. The PMIC can still be fully accessed via the Zephyr I2C API if you need to read or write registers directly.

Devicetree bindings per PMIC:

PMIC support in nRF Connect SDK

PMIC support was introduced in nRF Connect SDK as follows:

  • nPM1100: v2.3.0
  • nPM1300: v2.4.0
  • nPM1304: v3.1.0
  • nPM2100: v3.0.0
  • nPM6001: v2.3.0

Fuel gauge library

The Fuel Gauge algorithm is built into nRF Connect SDK. For a Zephyr application that does not use nRF Connect SDK, the library must be manually copied and the relevant library file added to be linked with the application.

Zephyr samples

nRF Connect SDK includes samples and guides for working with Nordic PMICs. See Developing with PMICs in the nRF Connect SDK documentation for the full list of samples and supported hardware.

Zephyr contains the following samples that use Nordic PMICs. All of them require a relevant PMIC evaluation kit: nPM1300/nPM1304 | nPM2100 | nPM6001

Bare metal developer

This section covers using Nordic PMICs with bare metal drivers. It is intended for applications that do not use Zephyr or nRF Connect SDK, and explains how to integrate PMIC functionality directly into a custom software environment using generic and platform-independent drivers.

Software architecture

Architecture of a PMIC-based bare metal application

In a bare metal application, much of the low-level interaction with the PMIC hardware is handled from the application level. The driver is not designed to integrate with any specific SDK or platform, so the application needs to configure the hardware abstractions required by the driver. The application calls the various driver functions to configure PMIC properties, such as charger current or regulator voltages, and make battery measurements as needed.

The MCU can be any Nordic or non-Nordic device with a supported CPU architecture that has sufficient RAM and code space to run the Fuel Gauge algorithm. In this case, both the application-specific battery model and the algorithm reside at the application level.

Bare metal development

Applications that do not use nRF Connect SDK, Zephyr, or even a Nordic SoC can use the bare metal driver for a given PMIC. The drivers do not depend on a specific OS or SDK environment, or any particular SoC. Necessary hardware functions such as TWI and GPIO are exposed via function pointers in the bare metal driver, which must be provided by the application developer.

There is no single bare metal driver collection that supports all Nordic PMICs. Each PMIC has its own specific driver, tailored to fit the hardware features in an efficient and intuitive manner. To integrate a bare metal driver in a project, copy the relevant files from the driver into your project and implement the necessary hardware abstraction functions for TWI communication. Follow the readme and porting guide when available, and use the samples as a reference.

Bare metal drivers

Bare metal samples

The nPM1300/nPM1304 bare metal sample uses the bare metal driver in a Zephyr application. A typical Zephyr or nRF Connect SDK application would normally use the native Zephyr driver instead; the sample is provided as a reference for how to use the bare metal driver functions.

nPM1300 & nPM1304 | nPM2100

Development resources

Tools

nPM PowerUP

The nPM PowerUP desktop application is a key part of the PMIC software & tools offering, enabling developers to quickly evaluate and implement PMICs using the supported evaluation kits. Once connected, the application provides full access to PMIC resources, supports automated battery profiling and battery model generation, and allows complete configuration without writing code or designing prototype hardware.

When the final configuration is selected, nPM PowerUP automatically generates a compilable devicetree overlay, ensuring seamless integration into the application exactly as intended by the hardware design. nPM PowerUP is included in nRF Connect for Desktop.

nRF Connect SDK

nRF Connect SDK is a common software development kit for Bluetooth Low Energy, Wi-Fi, cellular IoT, Bluetooth mesh, Thread, Zigbee and Matter. It supports all Nordic nRF52, nRF53, nRF54L, nRF54H, nRF70, nRF71 and nRF91 Series wireless devices.

If you are planning a project, talk to a Nordic expert.

今すぐ開発を始められます

弊社のチームが迅速な開発をお手伝いします。

お問い合わせ