-
Notifications
You must be signed in to change notification settings - Fork 6
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
Compile issue with different ARM Cortex-M0+ boards #4
Comments
I've spent some time looking at the differences between the Arduino.H file for the Teensy board and the Xiao board. They both have a section to redefine abs but for some reason the XIAO does it twice, otherwise the code is the same:
followed later on in the code with a new define: I commented out the whole section on ifdef abs and define abs.
The XIAO arduino.h also has a redefine for round(x) which the Teensy does not: I commented that section out as well. Making these changes I was able to compile the code and get the following results:
I used a website that simulates arduino boards to test the code with the ArduinoEigen library using a simulated ESP32 and got the same results as the XIAO board using the Arduino IDE on my laptop. So I believe this fixed the issue for me. Can you confirm if the results are accurate? Thanks |
Note these are the same errors that we are now getting with the Teensy3.x's and T4.x's upon switching tool chains to 11.3.1. I did post about it on the forum: Would require a change to wiring.h to fix. |
The example code compiles correctly on my computer using Arduino IDE 1.8.13 and the Teensy LC board. The Teensy LC uses an ARM Cortex-M0+ processor. The board I am trying to use for my project is also an ARM Cortex-M0+ made by Seeeduino, the XIAO.
The Teensy LC compiles without any errors using your example program.
Changing the board to the XIAO gives several pages of errors.
Below are just the first few that have files for both the seeeduino board and eigen library listed:
I am assuming these errors are related to the C libraries that the Seeeduino board uses in the arduino compiler, from the ..\Seeeduino\hardware\samd\1.8.3\cores\ folder.
Some of the errors show headers from the eigen library as well that I assume are because of the errors with the Seeeduino code.
Do you know if there is any work around for these? My skill set is pretty limited in dealing with compilers and any core files for the boards.
Thank you
The text was updated successfully, but these errors were encountered: