Skip to content
systemcoding.dev
Embedded

nRF52832 vs nRF52840 vs nRF5340 for New Bluetooth Designs

Compare the nRF52832, nRF52840 and nRF5340 for a new Bluetooth design: memory, radio modes, USB, crypto and cores, with a decision table and board targets.

6 min read
Summarize in AI
Flat illustration of two options weighed side by side, with the Bluetooth, Arm and Nordic Semiconductor logos.

Three Nordic chips cover most new Bluetooth Low Energy products, and they are not interchangeable. The nRF52832 is the old low-cost workhorse, the nRF52840 is the generous middle, and the nRF5340 splits the work across two Cortex-M33 cores. Picking the wrong one costs either money on every unit or a board redesign when the firmware outgrows RAM. This post compares them on the properties that decide a design, from Nordic's product specifications, and ends with a decision table you can apply to your own requirements. The software side assumes the nRF Connect SDK v2.9, whose board targets are listed at the end. The sibling post on a complete nRF52 and nRF53 firmware path puts the chosen chip to work.

The numbers that matter

Start with the hard limits, because they cannot be changed in firmware.

PropertynRF52832nRF52840nRF5340
CPUCortex-M4F, 64 MHzCortex-M4F, 64 MHzApplication: Cortex-M33, 128 MHz; network: Cortex-M33, 64 MHz
Flash512 KB1 MB1 MB application, 256 KB network
RAM64 KB256 KB512 KB application, 64 KB network
Bluetooth5 with 2M PHY5 with 2M PHY and Coded PHY5 with 2M PHY and Coded PHY
802.15.4 (Thread, Zigbee)NoYesYes
USBNoFull speedFull speed
Hardware cryptoAES-ECB, AES-CCMCryptoCell-310 plus AES-ECB, AES-CCMCryptoCell-312 on the application core
Security extrasAPPROTECTAPPROTECTTrustZone, secure boot support
InterconnectPPIPPIDPPI

Variants exist inside each family: the nRF52832 also comes in a smaller flash and RAM option, and the nRF52833 sits between the nRF52832 and the nRF52840 with 512 KB of flash and 128 KB of RAM. Check the exact part number's product specification before committing.

What each chip is good at

The nRF52832 fits a device whose firmware is one Bluetooth peripheral with a few sensors. With 64 KB of RAM, the Bluetooth stack and an RTOS take a large share, so a design on Zephyr leaves a few tens of kilobytes for the application. It has no USB and no Coded PHY, so long-range mode is out. Its strength is cost and a mature ecosystem of modules.

The nRF52840 removes limits. 256 KB of RAM leaves room for buffers, a file system, a larger Bluetooth configuration with several connections and an application written without counting bytes. USB lets the device be a keyboard, a serial adapter or a bootloader that updates from a PC, and the 802.15.4 radio adds Thread and Zigbee. CryptoCell-310 accelerates AES, SHA and elliptic curves, which matters for secure boot and for TLS-style workloads. It is the chip to pick when you do not know the final feature list.

The nRF5340 splits the system. The application core runs your code at 128 MHz with 1 MB of flash and 512 KB of RAM. The network core runs the Bluetooth controller and nothing else, so a long flash erase or a heavy computation on the application core cannot delay a radio event. The price is complexity: two images, an inter-core protocol and a more involved build. It also adds TrustZone, so keys and secure services can live in a partition the main application cannot read.

Choosing by requirement

Walk down this table with your requirements and take the first row that applies.

If your design needsChooseWhy
Lowest unit cost and a small Bluetooth peripheralnRF52832Smallest memory and price, adequate for one connection and a few sensors
USB device or host-side PC connectionnRF52840 or nRF5340The nRF52832 has no USB
Long-range Bluetooth with the Coded PHYnRF52840 or nRF5340The nRF52832 lacks the Coded PHY
Thread, Zigbee or Matter over ThreadnRF52840 or nRF5340These need the 802.15.4 radio
A large application, filesystem or several connectionsnRF52840Memory without the dual-core build
A heavy application running beside a strict-timing radionRF5340The radio runs on its own core
TrustZone, secure services, hardware-isolated keysnRF5340Arm TrustZone is only on this chip
Audio over LE AudionRF5340The CPU headroom and the dedicated network core are designed for it
The simplest firmware and the quickest startnRF52840Single core, ample memory

If you need a proprietary 2.4 GHz protocol alongside Bluetooth, all three can do it, with the SoftDevice Controller's timeslot API sharing the radio, as a later post in this cluster shows.

One project, three targets

Because Zephyr describes hardware in the devicetree, one application source can often build for all three. The board targets for the development kits in the nRF Connect SDK v2.9 are:

Shell
west build -b nrf52dk/nrf52832          -d build_52832
west build -b nrf52840dk/nrf52840       -d build_52840
west build -b nrf5340dk/nrf5340/cpuapp  -d build_5340

Each command writes to its own build directory, which keeps the three outputs side by side. The nRF5340 target names the application core, cpuapp, after the SoC, and the network core image is built for you through sysbuild. At the end of each build, Zephyr prints how much of the flash and RAM the image uses, so you can compare your own firmware's footprint on the actual candidates:

Text
Memory region         Used Size  Region Size  %age Used
           FLASH:      121340 B       512 KB     23.17%
             RAM:       18620 B        64 KB     28.41%

These figures are an example for one image on one chip. Run the build for your own application, because the Bluetooth configuration alone can move RAM by tens of kilobytes. If the RAM figure on the nRF52832 build is already past about two thirds of the region, treat that as a warning. The stack for each thread, the Bluetooth buffers and your own data all grow, and a design that fits today by a few bytes will not survive its next feature.

The cost of getting it wrong

Memory is the usual regret. A design started on the nRF52832 that later needs a bigger log buffer, an on-device filesystem or a second Bluetooth connection hits the 64 KB wall, and the fix is a new board, because the footprint of the package and the supply circuit differ. Starting on the nRF52840 development kit and moving down to the nRF52832 once the firmware is stable is much cheaper than the reverse. The two share most peripherals and the same Zephyr drivers, so the software change is mostly Kconfig and the devicetree.

The nRF5340 carries a different regret. Teams pick it for the extra RAM and then discover that two images, the signing and update flow for both cores and the IPC layer add weeks. If the reason is memory alone, the nRF52840 is faster to ship. Choose the nRF5340 when the architecture, not the size, calls for isolation of the radio or TrustZone.

Development kits and modules

Nordic sells a development kit for each chip: the nRF52 DK for the nRF52832, the nRF52840 DK and the nRF5340 DK. The nRF52840 Dongle is a USB stick without a debugger, useful as a sniffer and a cheap target, and the next posts program it. For a product you rarely place the bare chip on the first board. A precertified module, such as those from u-blox, Raytac, Fanstel, Laird or Insight SiP, carries the chip, the crystals and the antenna, and lets you skip radio certification work for a first product. Each module's datasheet lists the exact chip it uses.

When none of these is right

If the product needs Wi-Fi, a general Linux-class processor, or a radio other than 2.4 GHz, other chips fit better. Nordic's nRF54L15 and related nRF54 parts are the newer generation and may suit a design started now, with a different peripheral set and board targets, so check the current lineup against the product page before locking in the nRF52 family. For a one-off hobby project where cost is irrelevant, the nRF52840 board from a hobby vendor is the least regrettable pick.

Share

Keep reading

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.