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

Thread: Teensy LC support in audio library?

  1. #1
    Junior Member
    Join Date
    Feb 2020
    Posts
    1

    Teensy LC support in audio library?

    I am under the impression that the audio library should support most teensy boards, however I've been trying to compile for Teensy LC and keep getting the following error:

    Code:
    Arduino: 1.8.11 (Mac OS X), TD: 1.50, Board: "Teensy LC, Serial, 48 MHz, Smallest Code, US English"
    
    /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/input_adc.cpp: In static member function 'static void AudioInputAnalog::isr()':
    /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/input_adc.cpp:119:2: warning: 'daddr' is used uninitialized in this function [-Wuninitialized]
      if (daddr < (uint32_t)analog_rx_buffer + sizeof(analog_rx_buffer) / 2) {
      ^
    /var/folders/k8/n_4nwx1j5zvb5h0pp9838tqw0000gn/T//ccLGSCiI.s: Assembler messages:
    /var/folders/k8/n_4nwx1j5zvb5h0pp9838tqw0000gn/T//ccLGSCiI.s:291: Error: selected processor does not support `smull r0,ip,r3,r5' in Thumb mode
    /var/folders/k8/n_4nwx1j5zvb5h0pp9838tqw0000gn/T//ccLGSCiI.s:292: Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov ip,ip,asl r6'
    /var/folders/k8/n_4nwx1j5zvb5h0pp9838tqw0000gn/T//ccLGSCiI.s:293: Error: unshifted register required -- `orr r0,ip,r0,lsr r7'
    Multiple libraries were found for "SD.h"
     Used: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SD
     Not used: /Applications/Teensyduino.app/Contents/Java/libraries/SD
    Error compiling for board Teensy LC.
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    This is for a brand new sketch from the template (i.e. just an empty setup() and loop()) except for adding the audio library like so:
    Code:
    #include <Audio.h>
    This seems a bit confusing to me, because (afaict) the compiler seems to be generating invalid assembly code, which isn't something I've encountered before.

    I'm running on macOS 10.13, in case that's relevant. I accidentally stepped on my Teensy LC last night and need to order a replacement, so I figured this is a good time for me to make sure the LC is supported and buy something else if needed.

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,566
    The Teensy LC processor does not have the needed instruction set support to run the PJRC Audio library

  3. #3
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,155
    Quote Originally Posted by defragster View Post
    The Teensy LC processor does not have the needed instruction set support to run the PJRC Audio library
    Yes, and if this weren't enough, the available memory is too less.

Posting Permissions

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