Gliax ECG firmware
Import code from URL (https://github.com/IRNAS/gliax-ecg-firmware). Select platform for which code will be compiled and hit "Compile" button. Online compiler will offer you to save hex file.
In order to compile the code localy, it is required to install mbed-cli and all dependency tools.
See: https://github.com/ARMmbed/mbed-cli
Then it is required to import code from GitHub:
$ mbed import https://github.com/IRNAS/gliax-ecg-firmware
After import is finished, execute mbed compile command with desired target and tools selected, for example:
$ mbed mbed compile -m SEEED_TINY_BLE -t GCC_ARM
Resulting hex file will be located in folder ./BUILD/SEED_TINY_BLE/GCC_ARM/
In order to download code to mbed platform, just copy hex file to the MBED drive.
The chip for ECG measurements needs to be turned on by CP2102N. This configuration can be done with Simplicity Studio 4 (https://www.silabs.com/products/development-tools/software/simplicity-studio).
Procedure:
- connect the board to PC with USB cable
- open Simplicity Studio and create new project (configure chip CP2102N revision: A02-new or A01-old chip)
- Open Port configuration: Serial
- Change pin GPIO5 both modes to Push-Pull and reset Latch to High
- Press Program to device
- ECG chip should turn on, which can be seen with LEDs blinking