Hello World Teensy 3.0 without Arduino
Hello there!
I've seen a few forum posts on here on how to compile and upload sketches to Teensy 3.0 without using Arduino, but most of them never seem to be resolved or otherwise have become inactive. I've munged together some of the previous efforts into what seems to be like a stripped down "hello world" that could be written in plain C, but it does not run correctly once uploaded to my Teensy 3.0.
My attempts at a hello world program can be found here. It's very similar to blink_fast_Teensy3 from the blink_both package.
My program compiles without error when made with this Makefile, which I cobbled together from various posts on this forum on how to compile code using the arm-none-eabi toolchain.
Once compiled, I'm also able to load the resultant .hex onto my Teensy 3.0 using teensy_loader_cli version 2.1, found here.
However, once the program is uploaded, it does not exhibit the behavior I'd expect; the LED does not blink as intended.
Is there something I'm missing? Uploading pre-compiled example .hex files work, so I'm pretty sure the issue is either in my code or at the compilation step.
Any help would be greatly appreciated!
Hello there!
I've seen a few forum posts on here on how to compile and upload sketches to Teensy 3.0 without using Arduino, but most of them never seem to be resolved or otherwise have become inactive. I've munged together some of the previous efforts into what seems to be like a stripped down "hello world" that could be written in plain C, but it does not run correctly once uploaded to my Teensy 3.0.
My attempts at a hello world program can be found here. It's very similar to blink_fast_Teensy3 from the blink_both package.
My program compiles without error when made with this Makefile, which I cobbled together from various posts on this forum on how to compile code using the arm-none-eabi toolchain.
Once compiled, I'm also able to load the resultant .hex onto my Teensy 3.0 using teensy_loader_cli version 2.1, found here.
However, once the program is uploaded, it does not exhibit the behavior I'd expect; the LED does not blink as intended.
Is there something I'm missing? Uploading pre-compiled example .hex files work, so I'm pretty sure the issue is either in my code or at the compilation step.
Any help would be greatly appreciated!
Last edited: