LH001-91 evaluation example
LH001-91 is a high-precision and low-cost analog front end: it supports EEG, ECG measurement and other functions, and integrates low-noise PGA and 24-bit, 8kSPS analog-to-digital converter on-chip. On-chip signal sources are integrated for continuous lead disconnection detection, channel path testing, and temperature measurement. In addition, the right leg drive output function that can realize closed-loop control is also integrated on the chip to improve the loop CMRR (Common Mode Rejection Ratio).
The MCU should be GD32F330CBT6.
Using standard peripherals libraries (SPL) for GD32F3x0. This project use CMake as build system.
If you don't have a toolchain for ARM, you can use GNU Arm Embedded Toolchain.
mkdir build
cd build
cmake .. -GNinja -DTOOLCHAIN_PREFIX=<path to toolchain>
probe-rs download --chip GD32F330CB build/lh001.elf
# debug
/opt/arm-gnu-toolchain-13.2/bin/arm-none-eabi-gdb build/lh001.elf -ex 'target extended-remote localhost:4242'
See also CommunityGD32Cores/ArduinoCore-GD32. See the og branch for the original code provided by the vendor.