You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I select board genericSTM32F103CB, and version platformio/ststm32@^6.1.1, then the code is compiled and everything is OK.
With newer versions the code does not compile.
If I select board genericSTM32F411CE, then the code is not compiled, neither with version 17.5.0 nor with the newest one.
The error is always like this:
.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe:
.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-openr.o): in function `_open_r':
openr.c:(.text._open_r+0x10): undefined reference to `_open'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\genericSTM32F411CE\firmware.elf] Error 1
note that I try to use flags:
build_flags = -specs=nosys.specs
But this does not lead to a positive result.
I'm also curious what the flag does -Q и how to output the compilation log if I want to output information with the -v or -Werror flag I just don't have enough terminal buffer.
Specifying in the *ini file
monitor_filters = default, time, log2file
Doesn't give any results.
I will hope for help from the community.
The text was updated successfully, but these errors were encountered:
Hi @brightproject, the issue tracker in this repository is not the right place to ask project-specific questions. Anyway, v6.1.1 is 4 years old, there have been plenty of changes in both - the underlying frameworks and the ststm32 platform itself. First of all, I'd recommend using the latest version v17.x. Secondly, I doubt that build_flags = -specs=nosys.specs is the correct way of setting special linker flags, it should probably be passed to the linker via an extra script, see https://docs.platformio.org/en/latest/scripting/examples/extra_linker_flags.html
Thanks @valeros for the kind words and explanations.
That's the problem, with the latest version of the framework, I get similar compilation errors.
And I can't even figure out what the reason for this compiler behavior is.
If only I could find at least one clue, I would refactor the code for the new framework.
I am compiling the example code from
Under
esp32
the code is compiling and working perfectly.For
stm32
everything is much more interesting and confusing.If I select board
genericSTM32F103CB
, and versionplatformio/ststm32@^6.1.1
, then the code is compiled and everything isOK
.With newer versions the code does not compile.
If I select board
genericSTM32F411CE
, then the code is not compiled, neither with version17.5.0
nor with the newest one.The error is always like this:
note that I try to use flags:
Doesn't give any results.
I will hope for help from the community.
The text was updated successfully, but these errors were encountered: