Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Audio Library Examples and Teensy 4.0

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    4

    Audio Library Examples and Teensy 4.0

    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

  2. #2
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,374
    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 by MichaelMeissner; 10-08-2019 at 02:51 PM.

  3. #3
    Junior Member
    Join Date
    Oct 2019
    Posts
    4
    The hint helped, thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •