<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj" -->

---
title: Nerves base system for STM32MP157F-DK2 | daily.dev
description: A developer built and published a custom Nerves system for STMicroelectronics' STM32MP157F-DK2 board (a dual-core Cortex-A7 plus Cortex-M4 chip), enabling...
canonical: https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Nerves base system for STM32MP157F-DK2 | daily.dev
og:description: A developer built and published a custom Nerves system for STMicroelectronics' STM32MP157F-DK2 board (a dual-core Cortex-A7 plus Cortex-M4 chip), enabling...
og:url: https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj
og:image: https://api.daily.dev/og/posts/BM7eVNECJ.png
og:image:alt: Nerves base system for STM32MP157F-DK2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Nerves base system for STM32MP157F-DK2

**[Elixir Forum](https://daily.dev/sources/elixirforum)** · 4 min read · 0 upvotes · 0 comments

## Summary

A developer built and published a custom Nerves system for STMicroelectronics' STM32MP157F-DK2 board (a dual-core Cortex-A7 plus Cortex-M4 chip), enabling Elixir/BEAM to run on the Linux cores while the M4 coprocessor handles real-time tasks via RPMsg shared memory. The board offers Gigabit Ethernet, WiFi, BLE, a touchscreen, USB host, and hardware crypto, making it suited for IoT gateways. The repo includes working Ethernet/SSH/mDNS, A/B OTA updates via fwup, WiFi/BLE drivers, display support, and prebuilt artifacts so users don't need to build from source. Setup involves adding a dependency and running standard Nerves mix commands. The author documents a difficult build process (25+ errors, toolchain issues, device tree problems) and plans a blog series covering the boot chain, device trees, and Buildroot internals. Known limitations include needing Bootlin's GCC 14.3 toolchain instead of the standard Nerves toolchain, and boot-counting auto-revert not fully working (manual revert works). Future plans include secure boot, LTE/TPM support, Rust firmware on the M4, and a full MQTT/NervesHub-based IoT gateway.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://forum.elixirforum.com/t/new-nerves-base-system-for-stm32mp157f-dk2/76635>

## Questions this post answers

### Is there a Nerves system available for the STM32MP157F-DK2 board?

Yes, a custom Nerves system for the STM32MP157F-DK2 dual-core board is available as an open source repository (tomazbracic/nerves_system_stm32mp157f_dk2). It supports Ethernet, SSH, mDNS, A/B OTA updates via fwup, WiFi and BLE kernel drivers, display and touchscreen drivers, and M4 remoteproc/RPMsg. Prebuilt artifacts let macOS and Linux users skip building from source; the STM32MP157D-DK1 variant is also supported.

_Developers targeting niche embedded boards can track new Nerves system releases like this on daily.dev._

### Why does U-Boot silently crash when building a Nerves system for STM32MP1?

The standard Nerves GCC 13.2 toolchain produces U-Boot binaries that hang silently with no output on STM32MP1 boards. Switching to Bootlin's GCC 14.3 toolchain resolves the issue and is required for building a working Nerves system for the STM32MP157F-DK2 and STM32MP157D-DK1 boards.

_Anyone debugging embedded toolchain issues can follow build-breaking gotchas like this on daily.dev._

### Does the Nerves boot-counting auto-revert feature work on STM32MP157F-DK2?

No, boot-counting auto-revert does not fully work on the STM32MP157F-DK2 Nerves system because U-Boot ignores the saved environment. Manual firmware revert using Nerves.Runtime.revert() works correctly as a workaround while the automatic mechanism remains unresolved.

_Embedded developers weighing OTA reliability tradeoffs can find platform-specific gotchas like this on daily.dev._

## Similar posts on daily.dev

- [Nerves IoT framework, apparently popular with agents](https://daily.dev/posts/nerves-iot-framework-apparently-popular-with-agents-vf2qjiccf) · Beam Bloggers Webring · 0 upvotes · 0 comments
- [Programming Nerves Book](https://daily.dev/posts/programming-nerves-book-xuqvjr50f) · ElixirStatus · 1 upvotes · 0 comments
- [Embedded Elixir sound controller with Nerves and Arduino](https://daily.dev/posts/embedded-elixir-sound-controller-with-nerves-and-arduino-qlcxneicq) · Curiosum · 0 upvotes · 0 comments
- [Running Linux 6.11 On The ESP32-S3 With A Few Tweaks](https://daily.dev/posts/running-linux-6-11-on-the-esp32-s3-with-a-few-tweaks-havlry0ud) · Hackaday · 0 upvotes · 0 comments
- [Updated Buildroot support for STM32MPU platforms, ST BSP v6.2 – Bootlin](https://daily.dev/posts/updated-buildroot-support-for-stm32mpu-platforms-st-bsp-v6-2-bootlin-xhxokjamc) · Bootlin · 0 upvotes · 0 comments

---

Tags: [#iot](https://daily.dev/tags/iot), [#elixir](https://daily.dev/tags/elixir), [#embedded](https://daily.dev/tags/embedded), [#stm32](https://daily.dev/tags/stm32)

[View this post on daily.dev](https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Nerves base system for STM32MP157F-DK2","url":"https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj"},"datePublished":"2026-09-10T15:21:49.687Z","dateModified":"2026-10-15T02:22:13.485Z","description":"A developer built and published a custom Nerves system for STMicroelectronics' STM32MP157F-DK2 board (a dual-core Cortex-A7 plus Cortex-M4 chip), enabling...","image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","thumbnailUrl":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","isAccessibleForFree":true,"articleSection":"Elixir Forum","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Elixir Forum","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c7c05785a0da4507bf9ae120a7e487e6","url":"https://daily.dev/sources/elixirforum"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"iot,elixir,embedded,stm32","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Elixir Forum","item":"https://daily.dev/sources/elixirforum"},{"@type":"ListItem","position":3,"name":"Nerves base system for STM32MP157F-DK2"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/nerves-base-system-for-stm32mp157f-dk2-bm7evnecj#faq","mainEntity":[{"@type":"Question","name":"Is there a Nerves system available for the STM32MP157F-DK2 board?","acceptedAnswer":{"@type":"Answer","text":"Yes, a custom Nerves system for the STM32MP157F-DK2 dual-core board is available as an open source repository (tomazbracic/nerves_system_stm32mp157f_dk2). It supports Ethernet, SSH, mDNS, A/B OTA updates via fwup, WiFi and BLE kernel drivers, display and touchscreen drivers, and M4 remoteproc/RPMsg. Prebuilt artifacts let macOS and Linux users skip building from source; the STM32MP157D-DK1 variant is also supported. Developers targeting niche embedded boards can track new Nerves system releases like this on daily.dev."}},{"@type":"Question","name":"Why does U-Boot silently crash when building a Nerves system for STM32MP1?","acceptedAnswer":{"@type":"Answer","text":"The standard Nerves GCC 13.2 toolchain produces U-Boot binaries that hang silently with no output on STM32MP1 boards. Switching to Bootlin's GCC 14.3 toolchain resolves the issue and is required for building a working Nerves system for the STM32MP157F-DK2 and STM32MP157D-DK1 boards. Anyone debugging embedded toolchain issues can follow build-breaking gotchas like this on daily.dev."}},{"@type":"Question","name":"Does the Nerves boot-counting auto-revert feature work on STM32MP157F-DK2?","acceptedAnswer":{"@type":"Answer","text":"No, boot-counting auto-revert does not fully work on the STM32MP157F-DK2 Nerves system because U-Boot ignores the saved environment. Manual firmware revert using Nerves.Runtime.revert() works correctly as a workaround while the automatic mechanism remains unresolved. Embedded developers weighing OTA reliability tradeoffs can find platform-specific gotchas like this on daily.dev."}}]}
```

