-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to link when targeting Arduino H7 on PlatformIO #774
Comments
So the error turned out to be a rather embarrassing typo, the .ini file should be as follow: [env:portenta_h7_m7]
platform = ststm32
board = portenta_h7_m7
framework = arduino
build_flags =
-L ./.pio/libdeps/portenta_h7_m7/micro_ros_arduino/src/cortex-m7/fpv5-d16-softfp/
-l libmicroros
-D TARGET_PORTENTA_H7_M7
lib_deps =
https://github.com/micro-ROS/micro_ros_arduino However now a new linking error appears seemingly related to the test cases?
|
There are some linker flags issues that seems that are not present in the Arduino IDE. I have been able to build allowing duplicated symbols and removing not used symbols sections:
|
Hi, this issue is explained here: ROBOTIS-GIT/OpenCR#294, to fix this, we need to modify the linker flags. To do this, create a python script
Now add it to your Your final
|
Thanks, I can confirm that both solutions work. From my (limited) understanding of what's happening here it seems that @Acuadros95's solutions is more appropriate. |
I am trying to replicate the PlatformIO STM32 template for the Arduino H7.
The platformio.ini file:
Results in the error:
The text was updated successfully, but these errors were encountered: