dadamachines / arduino-board-index

dadamachines board support package for the Arduino v1.6+ Board Manager
3 stars 0 forks source link

Doppler support for Aarch64 Linux #1

Open grav opened 1 year ago

grav commented 1 year ago

Hi!

I believe I got an FPGA toolchain with up and running with Aarch64 Linux (ARM).

However, I still cannot get the Arduino IDE to talk to the Doppler. I am only able to install the latest v1.7.11 of Adafruit SAMD Boards (older versions complain about various tools not being compatible with my platform, probably x86 only), and it doesn't seem that the Doppler v1.3.1 package is compatible: I get a compile error about missing headers.

Is it possible to upgrade the Doppler package to support v1.7.11 and Aarch64 on Linux (and maybe even Mac M1) in general?

grav commented 1 year ago

Turns out I did get it working eventually, with this small diff:

$ pwd
~/.arduino15/packages/dadamachines - M4/hardware/samd/1.3.1
$ git diff platform.txt 
diff --git a/platform.txt b/platform.txt
index 23af964..10f3b2b 100644
--- a/platform.txt
+++ b/platform.txt
@@ -63,8 +63,8 @@ compiler.S.extra_flags=
 compiler.ar.extra_flags=
 compiler.elf2hex.extra_flags=

-compiler.arm.cmsis.c.flags="-I{runtime.tools.CMSIS-4.5.0.path}/CMSIS/Include/" "-I{runtime.tools.CMSIS-Atmel-1.2.0.path}/CMSIS/Device/ATMEL/"
-compiler.arm.cmsis.ldflags="-L{runtime.tools.CMSIS-4.5.0.path}/CMSIS/Lib/GCC/"  -larm_cortexM0l_math
+compiler.arm.cmsis.c.flags="-I{runtime.tools.CMSIS-5.4.0.path}/CMSIS/Core/Include/" "-I{runtime.tools.CMSIS-5.4.0.path}/CMSIS/DSP/Include/" "-I{runtime.tools.CMSIS-Atmel-1.2.2.path}/CMSIS/Device/ATMEL/"
+compiler.arm.cmsis.ldflags="-L{runtime.tools.CMSIS-5.4.0.path}/CMSIS/Lib/GCC/"  -larm_cortexM0l_math