-
Notifications
You must be signed in to change notification settings - Fork 0
Firmware
Following software and hardware components are necessary to compile the FM stereo receiver module firmware:
- ST-LINK/V2 USB debugger / programmer.
- 2.54mm 4 pin pogo probe cable / adapter.
- SDCC (Small Device C Compiler) 3.8 or newer version.
- stm8flash utility.
This firmware is developed in a Linux environment, and therefore it is recommended to use a Linux-based system to build the firmware.
After the installation of the above software components, issue the following commands to compile the firmware:
cd firmware
make
After the successful compilation, the fm-micro.ihx
file may need to generate in the firmware directory.
The compiled firmware files are also available to download at the release section of this project repository.
To flash the firmware attach ST-LINK/V2 USB programmer to the J201 using a 4-pin pogo probe cable.
If the STM8S003 chip is not flash with this firmware before, issue the following commands to update the option bytes of the MCU:
make fuse
make flash-fuse
To flash the firmware, issue the following command:
make flash
If the firmware update fails, cut-and-open the JP201 jumper and flash the MCU. After the firmware update, close the JP201 jumper again.