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

Thread: use EXTMEM (psram 16mb soldered onto Teensy 4.1 pads) for AudioMemory

  1. #1

    use EXTMEM (psram 16mb soldered onto Teensy 4.1 pads) for AudioMemory

    Hello,
    I successfully soldered 2 of the 8mb psram chips to the underside of my Teensy 4.1 and ran the memory test .ino and it worked and detected 16mb and all is good.

    I want to use this EXTMEM for AudioMemory.
    I'm having difficulty finding AudioMemory in the Audio Library source,

    I'm getting errors in the expansion of macro 'EXTMEM' and the macro 'AudioMemory'. I copy-paste them below, but I wonder if others are successfully using EXTMEM as AudioMemory and if so, how.



    >>>======={ teensyduino errors }=====>

    Arduino: 1.8.12 (Linux), TD: 1.53, Board: "Teensy 4.1, Serial + MIDI + Audio, 600 MHz, Faster, US English"

    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/arduino-builder -dump-prefs -logger=machine -hardware /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware -hardware /home/aaron/.arduino15/packages -tools /home/aaron/Documents/music_computer_hw/arduino-1.8.12/tools-builder -tools /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/tools/avr -tools /home/aaron/.arduino15/packages -built-in-libraries /home/aaron/Documents/music_computer_hw/arduino-1.8.12/libraries -libraries /home/aaron/Arduino/libraries -fqbn=teensy:avr:teensy41:usb=serialmidiaudio,speed =600,opt=o2std,keys=en-us -ide-version=10812 -build-path /tmp/arduino_build_407776 -warnings=more -build-cache /tmp/arduino_cache_59058 -verbose /home/aaron/Arduino/Freeverb_Stereo/Freeverb_Stereo.ino
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/arduino-builder -compile -logger=machine -hardware /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware -hardware /home/aaron/.arduino15/packages -tools /home/aaron/Documents/music_computer_hw/arduino-1.8.12/tools-builder -tools /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/tools/avr -tools /home/aaron/.arduino15/packages -built-in-libraries /home/aaron/Documents/music_computer_hw/arduino-1.8.12/libraries -libraries /home/aaron/Arduino/libraries -fqbn=teensy:avr:teensy41:usb=serialmidiaudio,speed =600,opt=o2std,keys=en-us -ide-version=10812 -build-path /tmp/arduino_build_407776 -warnings=more -build-cache /tmp/arduino_cache_59058 -verbose /home/aaron/Arduino/Freeverb_Stereo/Freeverb_Stereo.ino
    Using board 'teensy41' from platform in folder: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr
    Using core 'teensy4' from platform in folder: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr
    Detecting libraries used...
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /dev/null
    Alternatives for Audio.h: [Audio@1.3]
    ResolveLibrary(Audio.h)
    -> candidates: [Audio@1.3]
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /dev/null
    Alternatives for SPI.h: [SPI@1.0]
    ResolveLibrary(SPI.h)
    -> candidates: [SPI@1.0]
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /dev/null
    Alternatives for SD.h: [SD@1.2.2]
    ResolveLibrary(SD.h)
    -> candidates: [SD@1.2.2]
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /dev/null
    Alternatives for SerialFlash.h: [SerialFlash@0.5]
    ResolveLibrary(SerialFlash.h)
    -> candidates: [SerialFlash@0.5]
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SerialFlash /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /dev/null
    Alternatives for Wire.h: [Wire@1.0]
    ResolveLibrary(Wire.h)
    -> candidates: [Wire@1.0]
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SerialFlash -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /dev/null
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/Quantizer.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/Resampler.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/analyze_fft1024.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/analyze_fft256.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/analyze_notefreq.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/analyze_peak.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/analyze_print.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/analyze_rms.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/analyze_tonedetect.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/async_input_spdif3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/control_ak4558.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/control_cs42448.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/control_cs4272.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/control_sgtl5000.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/control_tlv320aic3206.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/control_wm8731.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/data_spdif.c
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/data_ulaw.c
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/data_waveforms.c
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/data_windows.c
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_bitcrusher.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_chorus.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_combine.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_delay.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_delay_ext.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_envelope.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_fade.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_flange.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_freeverb.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_granular.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_midside.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_multiply.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_rectifier.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_reverb.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/effect_waveshaper.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/filter_biquad.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/filter_fir.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/filter_variable.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_adc.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_adcs.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_i2s.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_i2s2.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_i2s_hex.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_i2s_oct.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_i2s_quad.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_pdm.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_spdif3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_tdm.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/input_tdm2.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/memcpy_audio.S
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/mixer.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_adat.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_dac.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_dacs.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_i2s.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_i2s2.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_i2s_hex.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_i2s_oct.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_i2s_quad.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_mqs.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_pt8211.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_pt8211_2.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_pwm.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_spdif.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_spdif2.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_spdif3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_tdm.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/output_tdm2.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/play_memory.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/play_queue.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/play_sd_raw.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/play_sd_wav.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/play_serialflash_raw.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/record_queue.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/spi_interrupt.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_dc.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_karplusstrong.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_pinknoise.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_pwm.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_simple_drum.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_sine.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_tonesweep.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_waveform.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_wavetable.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/synth_whitenoise.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/utility/imxrt_hw.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio/utility/sqrt_integer.c
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI/SPI.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/File.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/SD.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/cache_t3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/card_t3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/dir_t3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/fat_t3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/file_t3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/init_t3.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/utility/NXP_SDHC.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/utility/Sd2Card.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/utility/SdFile.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD/utility/SdVolume.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SerialFlash/SerialFlashChip.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SerialFlash/SerialFlashDirectory.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire/Wire.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire/WireIMXRT.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire/WireKinetis.cpp
    Using cached library dependencies for file: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire/utility/twi.c
    Generating function prototypes...
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SerialFlash -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /tmp/arduino_build_407776/preproc/ctags_target_for_gcc_minus_e.cpp
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_407776/preproc/ctags_target_for_gcc_minus_e.cpp
    Compiling sketch...
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/precompile_helper /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_407776 /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_407776/pch/Arduino.h -o /tmp/arduino_build_407776/pch/Arduino.h.gch
    Using previously compiled file: /tmp/arduino_build_407776/pch/Arduino.h.gch
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10812 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MIDI_AUDIO_SERIAL -DLAYOUT_US_ENGLISH -I/tmp/arduino_build_407776/pch -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4 -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SerialFlash -I/home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp -o /tmp/arduino_build_407776/sketch/Freeverb_Stereo.ino.cpp.o
    In file included from /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4/WProgram.h:41:0,
    from /tmp/arduino_build_407776/pch/Arduino.h:6:
    Freeverb_Stereo: In function 'void setup()':
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4/avr/pgmspace.h:32:16: error: expected primary-expression before '__attribute__'
    #define EXTMEM __attribute__((section(".externalram")))
    ^
    /home/aaron/Arduino/Freeverb_Stereo/Freeverb_Stereo.ino:42:3: note: in expansion of macro 'EXTMEM'
    EXTMEM AudioMemory(10);
    ^
    In file included from /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4/usb_audio.h:63:0,
    from /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4/WProgram.h:60,
    from /tmp/arduino_build_407776/pch/Arduino.h:6:
    /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/cores/teensy4/AudioStream.h:109:2: error: expected primary-expression before ')' token
    })
    ^
    /home/aaron/Arduino/Freeverb_Stereo/Freeverb_Stereo.ino:42:10: note: in expansion of macro 'AudioMemory'
    EXTMEM AudioMemory(10);
    ^
    Using library Audio at version 1.3 in folder: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Audio
    Using library SPI at version 1.0 in folder: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SPI
    Using library SD at version 1.2.2 in folder: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SD
    Using library SerialFlash at version 0.5 in folder: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/SerialFlash
    Using library Wire at version 1.0 in folder: /home/aaron/Documents/music_computer_hw/arduino-1.8.12/hardware/teensy/avr/libraries/Wire
    Error compiling for board Teensy 4.1.

  2. #2
    Sorry, to clarify, I try any "examples -> audio" example and add EXTMEM in front of the AudioMemory(something); declaration.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,492
    AudioMemory is a macro. Adding EXTMEM on the front doesn't change the macro at all.
    However, you can try changing the macro itself. In ...\hardware\teensy\avr\cores\teensy4\AudioStream. h at line 106 is the macro
    Code:
    #define AudioMemory(num) ({ \
    	static DMAMEM audio_block_t data[num]; \
    	AudioStream::initialize_memory(data, num); \
    })
    Change DMAMEM to EXTMEM.
    I tried this with the Delay example and it compiles. I haven't got any EXTMEM yet so I can't test whether it will actually run.

    Pete

  4. #4
    OH! it's in AudioStream.h thank you!

    Freeverb_Stereo example worked OK after modifying the AudioStream.h to use EXTMEM instead of DMAMEM as you suggest !

    Thank you!

Posting Permissions

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