Unable to build for STM32 (S76G)

30 views
Skip to first unread message

picnick

unread,
Nov 13, 2025, 5:34:57 AM11/13/25
to SoftRF_community
I would like to compile the latest firmware for the dongle version (S76G) myself. According to the README, STM32 Core version 1.9.0 is required for this. Although I can install the dependencies, the compilation process fails with the following errors:

```
Error while detecting libraries included by C:\\Users\\aaa\\AppData\\Local\\arduino\\sketches\\BD0FBD2633D5B4283207FA6208DAAF5E\\sketch\\SoftRF.ino.cpp
...
arm-none-eabi-g++: error: #line: No such file or directory
arm-none-eabi-g++: error: 1: No such file or directory
```

By the way, compiling for the STM32WLE5 (Core 2.4.0) works perfectly.

VirusPilot

unread,
Nov 13, 2025, 5:41:21 AM11/13/25
to SoftRF_community
In order to compile for STM32 you have to delete the file "build_opt.h" in the ./SoftRF/software/firmware/source/SoftRF folder.

VirusPilot

unread,
Nov 13, 2025, 5:55:08 AM11/13/25
to SoftRF_community
One more thing: there is no good reason any more to transmit the expired AIR6 protocol version, therefore you should simply add #define EXCLUDE_AIR6 to the Legacy.h file. As a result, only AIR7 is transmitted.

picnick

unread,
Nov 16, 2025, 11:43:11 AM11/16/25
to SoftRF_community
Amazing. Thank you very much. Deleting `build_opt.h` does the thing.
Reply all
Reply to author
Forward
0 new messages