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

Thread: Teesnsyduino 1.45 vs SD library

  1. #1
    Junior Member
    Join Date
    Feb 2019
    Posts
    2

    Teesnsyduino 1.45 vs SD library

    Windows 10
    Arduino 1.8.8
    Teensyduino 1.45
    Teensy 3.2

    Fresh installs of Arduino and Teensyduino - these examples do not compile:
    File/Examples/Audio/Effects/Filter
    File/Examples/Audio/Effects/FIR_Filter

    The Aduino examples using SD library don't compile as well.

    Here's the compiler output from FIR_Filter:

    Build options changed, rebuilding all
    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:30:17: error: 'RwReg' does not name a type

    static volatile RwReg *mosiport, *clkport, *misoport;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp: In function 'void spiSend(uint8_t)':

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:60:10: error: 'clkport' was not declared in this scope

    *clkport &= ~clkpinmask;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:62:12: error: 'mosiport' was not declared in this scope

    *mosiport |= mosipinmask;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:64:12: error: 'mosiport' was not declared in this scope

    *mosiport &= ~mosipinmask;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:69:8: error: 'clkport' was not declared in this scope

    *clkport &= ~clkpinmask;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp: In function 'uint8_t spiRec()':

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:88:6: error: 'mosiport' was not declared in this scope

    *mosiport |= mosipinmask;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:91:8: error: 'clkport' was not declared in this scope

    *clkport |= clkpinmask;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:95:13: error: 'misoport' was not declared in this scope

    if ((*misoport) & misopinmask) data |= 1;

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t, int8_t, int8_t, int8_t)':

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:302:5: error: 'clkport' was not declared in this scope

    clkport = portOutputRegister(digitalPinToPort(clockPin_));

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:304:5: error: 'mosiport' was not declared in this scope

    mosiport = portOutputRegister(digitalPinToPort(mosiPin_));

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:306:5: error: 'misoport' was not declared in this scope

    misoport = portInputRegister(digitalPinToPort(misoPin_));

    ^

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp: In member function 'uint8_t Sd2Card::readData(uint32_t, uint16_t, uint16_t, uint8_t*)':

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \Sd2Card.cpp:438:12: warning: unused variable 'n' [-Wunused-variable]

    uint16_t n;

    ^

    Multiple libraries were found for "SD.h"
    Used: C:\Users\mr\Documents\Arduino\libraries\SD
    Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
    Not used: C:\Program Files (x86)\Arduino\libraries\SD
    C:\Users\mr\Documents\Arduino\libraries\SD\utility \SdFile.cpp: In member function 'uint8_t SdFile::rmRfStar()':

    C:\Users\mr\Documents\Arduino\libraries\SD\utility \SdFile.cpp:907:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if (curPosition_ != (32*(index + 1))) {

    ^

    Error compiling for board Teensy 3.2 / 3.1.

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,579
    It is using a local copy of SD library here :: Used: C:\Users\mr\Documents\Arduino\libraries\SD

    Not one installed with TeensyDuino. Remove that library and try again perhaps

  3. #3
    Junior Member
    Join Date
    Feb 2019
    Posts
    2
    Fixed! - Thanks

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,579
    - glad to help

Posting Permissions

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