Hello from Germany, this is my first post in this forum
I'm using a Teensy 3.1 but I don't like the Arduino IDE. I like to use Eclipse with a Makefile or a similar tool. In my case now I'm taking the Makefile which was installed after installing Arduino with Teensyduino in the path c:\xxx\arduino-1.8.0\hardware\teensy\avr\cores\teensy3\
I start with a simple "blinky" and it is working. Now I'm adding the SPI I/F and the build process is working. Up to now I don't test the SPI I/F.
But I also like to debug via SWD I/F. Therefore I change the compiler/linker optimization in the Makefile to -O0 (instead of(-Os).
After building I got the linker error: xxxx/avr/libraries/SPI/SPI.cpp:264: undefined reference to `SPCR'
When I'm changing back to -Os, everything is fine. But for debugging is -Os very bad. And I'm not a C++ expert (only the very basics) and didn't see the problem.
So I kindly like to ask for an idea, how to solve this.
Thank you very much.
Best regards
Joachim
I'm using a Teensy 3.1 but I don't like the Arduino IDE. I like to use Eclipse with a Makefile or a similar tool. In my case now I'm taking the Makefile which was installed after installing Arduino with Teensyduino in the path c:\xxx\arduino-1.8.0\hardware\teensy\avr\cores\teensy3\
I start with a simple "blinky" and it is working. Now I'm adding the SPI I/F and the build process is working. Up to now I don't test the SPI I/F.
But I also like to debug via SWD I/F. Therefore I change the compiler/linker optimization in the Makefile to -O0 (instead of(-Os).
After building I got the linker error: xxxx/avr/libraries/SPI/SPI.cpp:264: undefined reference to `SPCR'
When I'm changing back to -Os, everything is fine. But for debugging is -Os very bad. And I'm not a C++ expert (only the very basics) and didn't see the problem.
So I kindly like to ask for an idea, how to solve this.
Thank you very much.
Best regards
Joachim