Hi, I'm getting a build server set up to produce teensy firmware builds (not flash them, just compile).
For some reason this doesn't seem like a particularly supported use case for either vanilla Arduino or Teensy itself, but I think I'm quite close to having everything working correctly.
The incantation I'm using to produce builds is:
This appears to successfully produce the build/my-project.ino.hex artifact, but the build process itself fails with exit code 1, producing the output:
Is there a way to just compile without using the teensy loader? This is a cloud-based build server without X, so running the GUI-based teensy loader fails (and it'll never have a board plugged into it anyway).
P.S. I'm finagling arduino to run builds in the command-line because teensy support for arduino-cli seems like it's still a work in progress, but I'm happy to jump over if that's not the case (I tried briefly, got kernel panics, and didn't investigate further )
Thanks!
For some reason this doesn't seem like a particularly supported use case for either vanilla Arduino or Teensy itself, but I think I'm quite close to having everything working correctly.
The incantation I'm using to produce builds is:
Code:
arduino --verbose --board teensy:avr:teensy40 --pref 'build.flags.cpp=-std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing' --pref build.path="build" --verify my-project.ino
This appears to successfully produce the build/my-project.ino.hex artifact, but the build process itself fails with exit code 1, producing the output:
Code:
Opening Teensy Loader...
Unable find Teensy Loader. (p) Is the Teensy Loader application running?
Is there a way to just compile without using the teensy loader? This is a cloud-based build server without X, so running the GUI-based teensy loader fails (and it'll never have a board plugged into it anyway).
P.S. I'm finagling arduino to run builds in the command-line because teensy support for arduino-cli seems like it's still a work in progress, but I'm happy to jump over if that's not the case (I tried briefly, got kernel panics, and didn't investigate further )
Thanks!