Open Ho-Ro opened 1 year ago
I think this related to gcc speed optimisation, TinySA code critical to execute timings and can depend from how compiler optimise code Most of warnings related to ChibiOS low level code
Erik uses gcc version 7.2.1 (see below), I have gcc version 8.3.1. Is version 9 the latest "good" version for tinySA? I see that 12.x works well for NanoVNA.
Version: tinySA_v1.4-96-gc1fcd94
Build Time: May 11 2023 - 08:41:39
Kernel: 4.0.0
Compiler: GCC 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
Difficult to answer, as I test code generation for NanoVNA, gcc last v9 provide more compact code. After code size bigger but not chage size, up to v12
Also as I see v7 (code build by Eric) more bigger then my builded in v9. And need test how gcc v9 code work on Tiny (several wait delays hardcoded and depend from how fast code)
Compiling the source code with debian stable
gcc version 12.2.1 20221205 (15:12.2.rel1-1)
gives a buggy firmware - latest tinySA version as well as older versions:This is what I see with the input terminated with 50 Ohm and with the 30 MHz calibration signal:
During compile it gives a lot of warnings:
(I see comparable warnings when compiling the NanoVNA firmware.)
After downgrade to the debian oldstable version
gcc version 8.3.1 20190703 (release) [gcc-8-branch revision 273027] (15:8-2019-q3-1+b1)
it compiles fine with only one warning (I must again remove the comments innanovna.h
to compile the tinySA3 version):This is what I see with the input terminated with 50 Ohm and with the 30 MHz calibration signal: