Skip to content

Compiling code for genericSTM32F411CE via platformio fails with an error for stm32duino (2.8.1) #2523

Closed Answered by brightproject
brightproject asked this question in Q&A
Discussion options

You must be logged in to vote

Found the reason for the compilation errors, very strange and incomprehensible to me.
Answer received by indirect signs, thanks to information from here:

https://devzone.nordicsemi.com/f/nordic-q-a/105594/undefined-reference-to-_open-when-using-libc-with-ncs-2-4-2-and-above

In actual discussion it was pointed out that the problem may be the use of fopen(), in the specific code

https://github.com/avpripri/RTIMULib2

fopen is used to open the *ini file with settings, for the case of using the code on the RPI platform with Linux.

Just commented out the lines.

https://github.com/avpripri/RTIMULib2/blob/3ff3a59101eb09523a2e375b5c43edb98fce77da/RTIMULib/RTIMUSettings.cpp#L604

https://github…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@brightproject
Comment options

@fpistm
Comment options

@brightproject
Comment options

@fpistm
Comment options

@brightproject
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by brightproject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants