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

Thread: Teensyduino 1.25-beta 2 = compile error 'SerialFlash.h: No such file or directory'

  1. #1

    Teensyduino 1.25-beta 2 = compile error 'SerialFlash.h: No such file or directory'

    Please excuse me if this is not the place to post bug reports, or if the format is not proper.

    Arduino 1.6.5r5
    Teensyduino 1.25-beta2

    My program contains:
    #include <Audio.h>

    During compile, I get this error

    In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:90:0,
    from TeensyTagger_AudioBoard.ino:11:
    C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_serialflash_raw.h:32:25: fatal error: SerialFlash.h: No such file or directory
    #include <SerialFlash.h>
    ^
    compilation terminated.
    Error compiling.


    I have verified that there is no SerialFlash.h in the C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/ directory.

    Am I missing Frank's library?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,101
    All sketches using Audio must also include Wire, SPI, SD and SerialFlash.

    Open any of the examples, from File > Examples > Audio to see how it needs to be done.

  3. #3
    Thanks Paul. I broke your rule for tech help, and didn't list ALL of the includes I was using:

    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <Audio.h>

    Indeed, I was missing SerialFlash.h. I included it, and it compiles now.
    In the future, I'll be sure to show ALL of my code.

    Thanks for the help. I had already installed the W25Q128FSVIG on my audio board, and am now looking forward to playing files from flash!

  4. #4
    Senior Member
    Join Date
    Apr 2015
    Posts
    125
    Heya Paul.

    Quick ping to let you know that your super handy Audio Library generator http://www.pjrc.com/teensy/gui/ Doesn't add SerialFlash to the library list.

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,101
    I've updated the web design tool to include SerialFlash.h.

Posting Permissions

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