5 years ago I wrote a blog post on Flashing MMDVM onto an STM32 Nucleo with OSX. Well, good news patient readers, I'm back with a new post, this time doing the flashing from Raspberry Pi OS 11 / Bullseye.
F0DEI's MMDVM Board |
Assumptions
It's assumed you have a working Raspberry Pi OS installation and an STM32 Nucleo based MMDVM board plugged into the Raspberry Pi via USB.
Install Prerequisites
First off, sudo to the root user and install some prerequisites:
sudo su apt-get install gcc-arm-none-eabi stlink-tools cd /usr/src git clone https://github.com/g4klx/MMDVM cd MMDVM git clone https://github.com/juribeparada/STM32F4XX_Lib.git
Edit Config.h
Before building the firmware you need to do some basic configuration in the Config.h file. Open it in your favourite editor.
Uncomment the following line:
// #define STM32F4_NUCLEO_MORPHO_HEADER
So it looks like:
#define STM32F4_NUCLEO_MORPHO_HEADER
You can also comment out any modes you don't want to build, if desired.
Build and Flash the firmware
You can now build and flash the firmware:
make nucleo st-flash write bin/mmdvm_f4.bin 0x08000000
Once complete, you should see the following message:
2023-04-04T17:53:36 INFO common.c: Flash written and verified! jolly good!
And that's it, you can now use the updated MMDVM board.
No comments:
Post a Comment