Story Details

  • Just barely fitting a full wi-fi stack on the nRF9151

    Posted: 2025-02-18 08:24:30

    This blog post details the author's successful, yet extremely tight, implementation of a full Wi-Fi networking stack (including TLS) on the memory-constrained nRF9160. Using the Zephyr RTOS, they managed to squeeze in lwIP, mbedTLS, and other necessary components, leaving only about 1KB of RAM free. This required careful configuration and optimization, particularly within lwIP, to minimize memory usage without sacrificing essential functionality. The author highlights the challenges of working with the nRF9160's limited resources and shares specific configuration adjustments, such as reducing TCP window size and disabling IPv6, that enabled them to achieve a working Wi-Fi connection. The post serves as a practical demonstration of pushing the boundaries of what's possible on this resource-constrained platform.

    Summary of Comments ( 0 )
    https://news.ycombinator.com/item?id=43087288

    Hacker News users discussed the challenges and ingenuity of fitting a full Wi-Fi stack onto the resource-constrained nRF9161. Several commenters expressed admiration for the author's accomplishment, highlighting the difficulty of working with such limited resources. Some questioned the practical applications, given the nRF9161's integrated cellular modem and the availability of smaller, cheaper Wi-Fi microcontrollers. Others suggested potential uses like captive portals or bridging between cellular and local networks. The Zephyr RTOS was mentioned as a contributing factor to the project's success due to its small footprint. One commenter shared their experience with similar memory constraints on embedded systems and offered debugging advice. The discussion also briefly touched on the implications of this achievement for IoT devices and the potential for further development in low-resource Wi-Fi applications.