Audio Library Examples and Teensy 4.0

noo100

New member
Teensy 4.0 with Tennsyduino 1.48 beta 3 and 1.48 Final. I tried to compile the Wavetable Synthesizer examples. With and without changing any code. Something seems to be wrong. There comes this error message.
And there are some USB queries included, although USB is not initialized in the here named sketch.

Code:
d:/_ide/_arduino/arduino1.8.10/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: address 0x200832c0 of C:\Users\user\AppData\Local\Temp\arduino_build_599924/MidiSynth.ino.elf section `.bss' is not within region `DTCM'

d:/_ide/_arduino/arduino1.8.10/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: address 0x200832c0 of C:\Users\user\AppData\Local\Temp\arduino_build_599924/MidiSynth.ino.elf section `.bss' is not within region `DTCM'

collect2.exe: error: ld returned 1 exit status
 
That error is due to the Teensy 4.0's memory is sub-divided into regions, and you can only put less that 512K into the code/const region. Unfortunately this is a limitation of the NXP 1062 that is used in the Teensy 4.0. You may be able move some of the tables into other regions if you edit the source.

There is a comment in the MidiSynthLarge example says it needs a Teensy 3.6 due to the tables being 820K. The Teensy 3.6 does not have these separate regions.
 
Last edited:
Back
Top