Tympan / Tympan_Library

Arduino/Teensy Library for Tympan Open Source Hearing Aid
MIT License
124 stars 33 forks source link

failed build with 05-FullSystems/* example sketches, one error and others too large #20

Closed shapr closed 5 years ago

shapr commented 5 years ago

I'm using Ubuntu 19.04 with Arduino 1.8.9 and Teensyduino 1.46 and the very latest git clone of Tympan_Library

I've failed to compile all of the 05-FullSystems/*

I haven't dug into the actual compile error, but the others all claim they resulting sketch is too large to fit onto the chip. Perhaps this is something to do with the Teensyduino 1.46 update?

chipaudette commented 5 years ago

I'm sorry for the basic question back to you...but In the Arduino software, under the "Tools" menu, did you change your "Board" to "Teensy 3.6"?

Chip

chipaudette commented 5 years ago

Also, I fixed the error with the WDRC_8BandFreqWarpFIR as of commit f9d82558f8304a24e2d246bbf261f2f0a3855493

Good find!

As for the memory issue, please see my comment above. If you're not set for Teensy 3.6, it is very easy to see how it thinks you won't have enough memory.

Chip

shapr commented 5 years ago

I fired up the Arduino IDE and checked my settings (I'm using WDRC_8BandIIR_wBT since I believe that's the default firmware). I do have the "Teensy 3.6" board selected (basic questions are fine, I make mistakes all the time!) In the process, I discovered the Arduino menu has "Tools" -> "Optimize" and the "faster" option was selected. Once I selected "smallest", the Teensyduino loader stops complaining.

Should the code fit on the board with the "faster" option selected? I also tried "fast" and "fastest" but once the hex file reaches the teensyduino loader I get "too large".

chipaudette commented 5 years ago

I finally found someone here who uses Ubuntu. We're going to try to recreate your problem...

jdw-creare commented 5 years ago

@shapr , I was able to reproduce your issue. I've reported it to the Teensy maintainers here: https://github.com/PaulStoffregen/Arduino-1.8.9-Teensyduino/issues/3