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

Thread: Teensy 3.1 Audio Shield FFT Problems

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Location
    Wiesbaden Germany
    Posts
    4

    Teensy 3.1 Audio Shield FFT Problems

    Hi, i'm currently working on a micro audio solution. Most of the planned features are working but when i try to compile a version with FFT i always get this compiler error.

    D:\Arduino_Build\fft\core.a(analyze_fft256.cpp.o): In function `AudioAnalyzeFFT256::update()':
    D:\arduino-1.0.5\libraries\Audio/analyze_fft256.cpp:83: undefined reference to `arm_cfft_radix4_q15'
    D:\Arduino_Build\fft\core.a(analyze_fft256.cpp.o): In function `AudioAnalyzeFFT256::init()':
    D:\arduino-1.0.5\libraries\Audio/analyze_fft256.cpp:38: undefined reference to `arm_cfft_radix4_init_q15'
    collect2.exe: error: ld returned 1 exit status

    I'm using the i2c_t3 library instead of Wire, because i use 2 busses with different speed.
    Last edited by StephiB; 08-08-2014 at 05:14 PM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,211
    Are you building in Arduino with Teensyduino, or with a non-Arduino makefile?

    I'm guessing this is a non-Arduino build that isn't linking in the ARM math library.

  3. #3
    Junior Member
    Join Date
    Jul 2014
    Location
    Wiesbaden Germany
    Posts
    4
    I'm using Arduino with Teensyduino but Subleme Text 2 as external editor.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,211
    First, make sure you're using at least Teensyduino version 1.19. Use Arduino's Help > About menu to check. If you have an older version, upgrade to at least 1.19. Th

    If so, use File > Prefernces to turn on verbose info while compiling. That extra info is needed to troubleshoot this issue. Arduino should give you a "copy error" button to easily copy the entire output to the clipboard. Best to paste it here inside "code" tags, since it'll be long.

  5. #5
    Junior Member
    Join Date
    Jul 2014
    Location
    Wiesbaden Germany
    Posts
    4
    Found the issue, its the SublemeText plugin. It works in Arduino/Teensyduino.
    Thanks

  6. #6
    Member kig's Avatar
    Join Date
    Nov 2014
    Location
    San Francisco
    Posts
    44
    Was having the same issue using Eclipse Arduino plugin. Would compile in Arduino, but not in Eclipse.

    Solved by adding -larm_cortexM4l_math to extra parameters to "combiner" in project properties, C/C++ Build, Settings, Arduino Combiner, Command Line Pattern. That's where I added it.

  7. #7
    Junior Member
    Join Date
    Mar 2015
    Location
    Sydney, Australia
    Posts
    6
    @Kig, You sir are a champ!
    Thanks to you I can compile with eclipse now instead of the horrible Arduino IDE!

Posting Permissions

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