Recently bought two Nanos. Impressed with their power and small size. However, have experienced a lot of problems getting them to work with the Arduino SD library. Used example code from library - “SD_Read_Write”. Compiling fails with a host of errors related to names of SPI bus lines:
Arduino: 1.8.9 (Windows 10), Board: “SparkFun BlackBoard Artemis Nano, 921600, SparkFun Variable Loader (Recommended)”
In file included from C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:26,
from C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/SdFat.h:29,
from C:\Users\Eric\Documents\Arduino\libraries\SD\src/SD.h:20,
from C:\Users\Eric\Documents\Arduino\SD_Read_Write\SD_Read_Write.ino:21:
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2PinMap.h:27:24: error: ‘SS’ was not declared in this scope
uint8_t const SS_PIN = SS;
^~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2PinMap.h:28:26: error: ‘MOSI’ was not declared in this scope
uint8_t const MOSI_PIN = MOSI;
^~~~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2PinMap.h:28:26: note: suggested alternative: ‘M_PI’
uint8_t const MOSI_PIN = MOSI;
^~~~
M_PI
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2PinMap.h:29:26: error: ‘MISO’ was not declared in this scope
uint8_t const MISO_PIN = MISO;
^~~~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2PinMap.h:30:25: error: ‘SCK’ was not declared in this scope
uint8_t const SCK_PIN = SCK;
^~~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2PinMap.h:30:25: note: suggested alternative: ‘SCB’
uint8_t const SCK_PIN = SCK;
^~~
SCB
In file included from C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/SdFat.h:29,
from C:\Users\Eric\Documents\Arduino\libraries\SD\src/SD.h:20,
from C:\Users\Eric\Documents\Arduino\SD_Read_Write\SD_Read_Write.ino:21:
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:70:37: error: ‘SS’ was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS;
^~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:79:31: error: ‘MOSI’ was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI;
^~~~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:79:31: note: suggested alternative: ‘M_PI’
uint8_t const SPI_MOSI_PIN = MOSI;
^~~~
M_PI
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:81:31: error: ‘MISO’ was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO;
^~~~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:83:30: error: ‘SCK’ was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK;
^~~
C:\Users\Eric\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:83:30: note: suggested alternative: ‘SCB’
uint8_t const SPI_SCK_PIN = SCK;
^~~
SCB
Multiple libraries were found for “SD.h”
Used: C:\Users\Eric\Documents\Arduino\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
Error compiling for board SparkFun BlackBoard Artemis Nano.
Invalid library found in C:\Users\Eric\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.0\libraries\CoreTesting: no headers files (.h) found in C:\Users\Eric\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.0\libraries\CoreTesting
Invalid library found in C:\Users\Eric\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.0\libraries\CoreTesting: no headers files (.h) found in C:\Users\Eric\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.0\libraries\CoreTesting
The Artemis boards are advertised as working with the Arduino IDE, but it seems a lot of work remains to be done to make it so. Can you offer some suggestions for getting the libraries to work?