/CC1200_HAT-fw

CC1200 HAT - firmware

Primary LanguageCGNU General Public License v3.0GPL-3.0

CC1200_HAT-fw

Basic firmware for the CC1200 HAT RF board. Generated with CubeIDE 1.16.1.

Flashing

Use the command below to flash the target device over UART (by default that's /dev/ttyAMA0). Make sure the overlay is set to dtoverlay=miniuart-bt and you have stm32flash installed.
You can set the overlay by editing the /boot/firmware/config.txt file (or /boot/config.txt for RPi Zero). This moves /dev/ttyAMA0 to where UART RX/TX pins are (GPIO15/14).

Flashing process can be initialized with the command below:
stm32flash -v -R -i "-20&-21&20,21,:-20,-21,21" -w CC1200_HAT-fw.bin /dev/ttyAMA0

Prepending the command above with sudo might sometimes be required.

NOTE: pin numbering might be different, check your values if echo "20" > /sys/class/gpio/export gives an error message.