
Copy Memory to Memory With STM32 DMA
Copy and fill memory blocks with the STM32F4 DMA2 controller using HAL_DMA_Start_IT or polling, with the FIFO setting it requires and the common mistakes.
Tag
445 posts

Copy and fill memory blocks with the STM32F4 DMA2 controller using HAL_DMA_Start_IT or polling, with the FIFO setting it requires and the common mistakes.

What a Linux 6.12 device driver is, how it reaches hardware through registers, port I/O, DMA and interrupts, and how it presents the device to user space.

Open files with O_CLOEXEC so exec closes them automatically. Shows the leak into a child, the race with fcntl, and the flags for socket, pipe2 and dup3.

Where the Linux 6.12 firmware loader searches for blobs, in what order, how initramfs and built-in firmware fit in, and how to read the failure messages.

Understand what a DMA controller does, how it moves data as a bus master, and why one interrupt per buffer instead of per byte frees the CPU.

Compare the deprecated /sys/class/gpio interface with the libgpiod character device on Linux 6.12: ownership, atomic access, events and numbering.

List the files a Linux process has open with ls -l /proc/PID/fd, read fdinfo for offsets and flags, and use lsof for whole-system questions, with a C version.

A file descriptor points to an open file description, which points to an inode. See which layer holds the offset, flags and data, with dup and fork demos.

Redirect stdout to a file in C by opening it and calling dup2 onto descriptor 1. Includes saving and restoring the terminal and the fork and exec case.

Connect an ESP32 to Wi-Fi in station mode with ESP-IDF v5.4: set up netif and the event loop, handle STA events, retry and wait for an IP.

A file descriptor is a small integer that indexes a per-process table of open files. Learn what 0, 1 and 2 mean and how open and close hand numbers out.

Use idf.py menuconfig, sdkconfig and sdkconfig.defaults to set ESP-IDF options, add your own Kconfig.projbuild entries and read them as CONFIG_ macros in C.