Preprint
Article

This version is not peer-reviewed.

Register-Level ARM Cortex-M4 Embedded Firmware Architecture for Real-Time Wireless EDA Acquisition

Submitted:

01 December 2026

Posted:

03 December 2026

You are already at the latest version

Abstract
Electrodermal activity (EDA) is widely used in wearable assessment of stress, cognitive load, affective state, sleep, pain, and seizure-related physiology, yet most EDA hardware studies emphasize the analog front end while treating the embedded acquisition pipeline as a black box. This paper presents a register-level ARM Cortex-M4 firmware architecture for real-time wireless EDA acquisition on an STM32F401RE, replacing abstraction-layer firmware with direct memory-mapped peripheral control to enable deterministic timing and reproducible evaluation of the digital path from sampling to transmission. A physiological EDA recording was replayed as a calibrated arbitrary waveform reference and acquired under thirteen firmware configurations, varying seven parameters spanning sampling rate, ADC sampling time and resolution, trigger source, transmission mode, baud rate, and system clock. Signal fidelity was assessed across global, tonic, and phasic components, and stream integrity via packet loss, transmission shortfall, sample completeness, and loss concentration. The tonic component stayed robust across all configurations (R² ≥ 0.979), whereas phasic fidelity was most sensitive to parameter choice (phasic R² falling to 0.605). Integrity failures were rare but distinct. These results show that modest MCU conditions suffice for faithful EDA acquisition, letting the framework select sufficient rather than excessive configurations.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.