Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => UHSDR Firmware => Message started by: satoryboy on 23. October 2021, 13:53:39

Title: Building Fw for H7
Post by: satoryboy on 23. October 2021, 13:53:39

Hello All

The task is simple - to compile the mod-firmware for the STM32H743ZIT6U controller (soldered from the Nucleo-144 board). There are no problems with the STM32F765ZIT6 controller, but at the time of purchase it was not available. I took a separate computer (Win7-64), installed the compilation environment strictly according to the instructions - https://github.com/df8oe/UHSDR/wiki/Windows-x64-Compiler-Setup-and-Build-Environment. Corrected only the system variable Path. Compiled the current "active-devel" project, version 2.12.0, for the H7 controller. When compiling, I got the message:

... text data bss dec hex filename
773620 6320 106256 886196 d85b4 fw-ovi40.elf
arm-none-eabi-objcopy -O binary fw-ovi40.elf fw-ovi40.bin
arm-none-eabi-objcopy -O binary fw-ovi40.elf fw-ovi40.bin

17:53:06 Build Finished. 0 errors, 7 warnings. (took 7m: 50s.197ms)

The firmware does not start (black screen, LEDs do not move). In this case, the stock firmware 2.12.0 starts without problems. Question - compile for Linux only? Are the instructions for her up to date?

Title: Re:Building Fw for H7
Post by: DF8OE on 23. October 2021, 14:43:37

I can only tell that compiling under Linux is working. I do not have Windows environment. What you are reporting are non-critical things, and you get a binary. If it does not work it can be related to the version of the gcc you use, or optimization settings that are set by the GUI. I do not use any GUI at all - just makefile on command line. Doing so you can be sure that there is no other hidden place whre additional settings are applied that you cannot see.

vy 73
Andreas

Title: Re:Building Fw for H7
Post by: satoryboy on 23. October 2021, 18:50:12

Yes, and the executable code is more compact. But still, how do I compile a mod firmware that will not hang the controller? I will be working on a compilation option for Linux, but time is running out. Help!

Sources: https://disk.yandex.ru/d/HAfvN5SVED9GqQ

Title: Re:Building Fw for H7
Post by: satoryboy on 24. October 2021, 09:58:51

I stitched it with an old mod-firmware compiled for Ubuntu. The transceiver works without problems. The root of all evil is in the compiler.

Title: Re:Building Fw for H7
Post by: DF8OE on 24. October 2021, 13:19:17

Normally I am using gcc8 for building arm projects. This is a known issue and e.g. nanovna / tinysa recommends gcc8, too.. But I can use gcc-arm-none-eabi 10_2020_q4_major-1 without problems building F4/F7/H7. Resulting binary is much bigger - that's all, No other issues known.

vy 73
Andreas

Title: Re:Building Fw for H7
Post by: satoryboy on 24. October 2021, 13:57:02

Thanks to the namesake from Germany, sent the firmware compiled for Linux. There are glitches and freezes, but I'll figure it out over time. The correct compiler rules.


Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.