10-28-2020: Cubecell fails to compile with only one include (SD.H) in the program using a fresh install of Arduino *V1.8.13 and Cubecell board for arduino downloaded last night. It fails on other PC’s as well. This must be an issue with Cellcube. My conversion project to cubecell is dead in the water and this is disappointing. here is the error message that seems to be related to the SPI pin mapping…
In file included from C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2Card.h:26:0,
from C:\Program Files (x86)\Arduino\libraries\SD\src/utility/SdFat.h:29,
from C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:20,
from C:\Users\User\Documents\Arduino\SDerrors\SDerrors.ino:2:
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2PinMap.h:27:26: error: ‘SS’ was not declared in this scope
uint8_t const SS_PIN = SS;
^
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2PinMap.h:28:28: error: ‘MOSI’ was not declared in this scope
uint8_t const MOSI_PIN = MOSI;
^
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2PinMap.h:29:28: error: ‘MISO’ was not declared in this scope
uint8_t const MISO_PIN = MISO;
^
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2PinMap.h:30:27: error: ‘SCK’ was not declared in this scope
uint8_t const SCK_PIN = SCK;
^
In file included from C:\Program Files (x86)\Arduino\libraries\SD\src/utility/SdFat.h:29:0,
from C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:20,
from C:\Users\User\Documents\Arduino\SDerrors\SDerrors.ino:2:
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2Card.h:70:41: error: ‘SS’ was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS;
^
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2Card.h:79:35: error: ‘MOSI’ was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI;
^
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2Card.h:81:35: error: ‘MISO’ was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO;
^
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2Card.h:83:34: error: ‘SCK’ was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK;
^
exit status 1
Error compiling for board CubeCell-Board(HTCC-AB01).
Can anyone help? Is there a Heltec support email?
Bill
It doeI am working on migrating from Adafruit feather RFM95 board to HTCC-AB01 Development board and am having issues with the arduino SD.H library failing to compile. Is there a special SD.H library for the Cellcube? No examples for DS card are listed in arduino for Cellcube.
The statement it is failing on is…#include <SD.h>
Here is the error messaging…
C:\Users\User\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:79:35: error: ‘MOSI’ was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI;
^
C:\Users\User\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:81:35: error: ‘MISO’ was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO;
^
C:\Users\User\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:83:34: error: ‘SCK’ was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK;
^
Multiple libraries were found for “SD.h”
Used: C:\Users\User\Documents\Arduino\libraries\SD
Not used: C:\Program Files (x86)\Arduino-Tinsy\libraries\SD
exit status 1
Error compiling for board CubeCell-Board(HTCC-AB01).
Maybe my SD.H file is corrupt (it ignored the Tinsy library)
Any help is greatly appreciated.
Bill