
Program an nRF52840 Dongle Without a Debug Probe
Flash an nRF52840 Dongle over USB with nrfutil, the built-in bootloader and a DFU package, without a debug probe, then recover it back into bootloader mode.
Tag
445 posts

Flash an nRF52840 Dongle over USB with nrfutil, the built-in bootloader and a DFU package, without a debug probe, then recover it back into bootloader mode.

Write a cat-style filter in C that reads the files named on the command line, uses standard input when there are none, and treats a lone hyphen as stdin.

Install the nRF Connect SDK v2.9, build a Zephyr blinky for the nRF52840 DK with west build, flash it with west flash and read printk output over serial.

What exit status 0, 1, 2, 126, 127 and 128 plus a signal number mean on Linux, how a shell reads them, and which codes your own command-line tool should return.

Find every network interface on Linux 6.12 and the kernel driver behind it with ip link and ethtool -i, and read the same facts from sysfs for scripts.

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.

Use getopt_long in C to accept --name and --name=value options, fill in the option table, handle flags and abbreviations, and keep short options working.

Learn how getopt walks argv in C, what optind, optarg and opterr mean, how a colon marks an option value, and how to handle errors and bundled flags.

Cap open files, CPU time, memory and core dumps for a Linux process with setrlimit, understand soft and hard limits, and read the results in /proc.

Learn what Linux namespaces are, the eight kinds the kernel has, how to see them under /proc and how containers combine them to give a process its own view.

Configure and start an RP2040 DMA transfer with dma_channel_get_default_config and dma_channel_configure in Pico SDK 2.1, including fills, rings and completion.

Fix the Too many open files error on Linux. Read RLIMIT_NOFILE, raise the soft limit in C, set systemd LimitNOFILE, and find the leak that caused it.