Page 1 of 1
SD support compilation errors
Posted: 16 Nov 2019, 12:04
by mackowiakp
mega-20191116 - Which one library have to be added for proper support of SD card? I try #ID: 868 but I got only log list of errors during compiling.
Code: Select all
[maciek@Piotr source]$ platformio lib search "header:SD.h"
Found 5 libraries:
SD
==
#ID: 161
This library aims to expose a subset of SD card functionality in the form of a higher level 'wrapper' object
Keywords: sd, card, file, system
Compatible frameworks: Arduino
Compatible platforms: Atmel AVR
Authors: Adafruit Industries
SD
==
#ID: 868
Enables reading and writing on SD cards.
Keywords: storage, data
Compatible frameworks: Arduino
Compatible platforms: Atmel AVR, Atmel SAM, Espressif 32, Espressif 8266, GigaDevice GD32V, Infineon XMC, Intel ARC32, Kendryte K210, Microchip PIC32, Nordic nRF51, Nordic nRF52, ST STM32, ST STM8, Teensy, TI MSP430
Authors: Arduino, SparkFun
SD
==
#ID: 79
This library aims to expose a subset of SD card functionality in the form of a higher level 'wrapper' object (adaptation for LaunchPad LM4F120 / TM4C123)
Keywords: sd, card, file, system
Compatible frameworks: Energia
Compatible platforms: TI MSP430, TI TIVA
Authors: Rei Vilo, William Greiman, SparkFun Electronics
SD
==
#ID: 5210
SD
Keywords: sd
Compatible frameworks: mbed
Compatible platforms: Atmel SAM, Freescale Kinetis, Maxim Integrated MAX32, Nordic nRF51, Nordic nRF52, NXP LPC, Silicon Labs EFM32, ST STM32, Teensy, WIZNet W7500
Authors: Jackson Lv
DstikeUpdater
=============
#ID: 6584
ESP32 OLED SD Updater Library for DSTIKE Boards
Keywords: esp32, dstike, update, sd, oled
Compatible frameworks: Arduino
Compatible platforms: Espressif 32
Authors: Stefan Kremser, Spacehuhn
Re: SD support compilation errors
Posted: 16 Nov 2019, 13:17
by TD-er
Re: SD support compilation errors
Posted: 25 Nov 2019, 07:18
by mackowiakp
Still can not compile (mega-20191123, Custom.h). Error during linking:
Code: Select all
Linking .pio/build/custom_sdk3_ESP8266_4M1M/firmware.elf
/home/maciek/back/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: address 0x3fffc448 of .pio/build/custom_sdk3_ESP8266_4M1M/firmware.elf section `.bss' is not within region `dram0_0_seg'
/home/maciek/back/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: address 0x3fffc448 of .pio/build/custom_sdk3_ESP8266_4M1M/firmware.elf section `.bss' is not within region `dram0_0_seg'
collect2: error: ld returned 1 exit status
*** [.pio/build/custom_sdk3_ESP8266_4M1M/firmware.elf] Error 1
Any idea?
Re: SD support compilation errors
Posted: 25 Nov 2019, 08:26
by TD-er
Do you compile using the beta core? (stage branch of esp8266/Arduino)
Re: SD support compilation errors
Posted: 25 Nov 2019, 10:15
by mackowiakp
Now I just take all files from git source "as is". No Custom.h, normal, default SDK. No my changes except uncomment "#define FEATURE_SD: in default "define_plugin_sets.h" file.
Then from VS terminal run:
Code: Select all
[maciek@Piotr ESPEasy-mega-20191123]$ pio lib install "SD"
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/custom_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/custom_sdk3_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/custom_beta_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/custom_ESP8266_4M2M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_ESP8266_1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_sdk3_ESP8266_1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_ESP8266_1M_VCC
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_ESP8285_1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_WROOM02_2M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_WROOM02_2M256
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_ESP8266_16M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_core_242_ESP8266_1M_OTA
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_core_242_ESP8285_1M_OTA
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_core_261_ESP8266_1M_OTA
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_core_261_ESP8285_1M_OTA
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_core_261_sdk3_ESP8266_1M_OTA
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_core_261_sdk3_ESP8285_1M_OTA
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_IRext_ESP8266_1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_IRext_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/minimal_IRext_ESP8266_4M2M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/normal_IRext_no_rx_ESP8266_4M2M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/test_ESP8266_4M_VCC
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/test_beta_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/test_beta_ESP8266_16M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/dev_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/hard_SONOFF_POW_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/hard_other_POW_ESP8285_1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/hard_Shelly_1_2M256
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/hard_Ventus_W266
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/custom_ESP32_4M316k
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/test_ESP32_4M316k
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/test_ESP32-wrover-kit_4M316k
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/spec_debug_custom_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/spec_debug_beta_custom_ESP8266_4M1M
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/spec_debug_custom_ESP32_4M316k
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
Library Storage: /home/maciek/TMP/ESPEasy-mega-20191123/.pio/libdeps/spec_memanalyze_ESP8266
LibraryManager: Installing id=161
SD @ 041f788250 is already installed
And this is result of compilation. Only SD lib errors.
Code: Select all
> Executing task: platformio run --environment normal_ESP8266_4M1M <
Processing normal_ESP8266_4M1M (platform: https://github.com/Jason2866/platform-espressif8266.git#core_2_6_1; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CPPDEFINES: [['BUILD_GIT', '""'], 'NDEBUG', 'VTABLES_IN_FLASH', 'PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH', ['PUYA_SUPPORT', '1'], 'CORE_POST_2_5_0', 'BEARSSL_SSL_BASIC', 'CORE_POST_2_6_0', 'PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703', ['MQTT_MAX_PACKET_SIZE', '1024'], ['HTTPCLIENT_1_1_COMPATIBLE', '0'], 'USE_CUSTOM_H']
LINKFLAGS: -Wl,-Tesp8266.flash.4m1m.ld
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 2.2.4 #043f5fd > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 1019.98KB Flash
PACKAGES: toolchain-xtensa 2.50400.170719 (5.4.0), framework-arduinoespressif8266 2.20601.0 (2.6.1), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20800.0 (2.8.0)
Converting ESPEasy.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 59 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <I2Cdevlib-Core>
| |-- <Wire> 1.0
|-- <SD>
| |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <Servo(esp8266)> 1.0.2
|-- <Wire> 1.0
|-- <AS_BH1750>
| |-- <Wire> 1.0
|-- <Adafruit SGP30 Sensor> 1.0.2
| |-- <Wire> 1.0
|-- <Adafruit TCS34725> 1.0.1
| |-- <Wire> 1.0
|-- <Adafruit TSL2591 Library> 1.0.2
| |-- <Adafruit Unified Sensor> 1.0.2
| |-- <Wire> 1.0
|-- <ESP8266_SSD1306> 3.2.7
| |-- <Wire> 1.0
| |-- <SPI> 1.0
|-- <ccronexpr>
|-- <AM2320>
| |-- <Wire> 1.0
|-- <Adafruit MPR121> 1.0.0
| |-- <Wire> 1.0
|-- <Adafruit Motor Shield V2 Library> 1.0.4
| |-- <Wire> 1.0
|-- <Adafruit NeoPixel> 1.0.6
|-- <Adafruit Unified Sensor> 1.0.2
|-- <ArduinoJson> 6.11.0
|-- <Blynk> 0.6.1
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266HTTPClient> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <HLW8012> 1.1.1
|-- <CHT16K33 LED Matrix Library> 0.0.1
| |-- <Wire> 1.0
|-- <LiquidCrystal_I2C>
| |-- <Wire> 1.0
|-- <NewPingESP8266>
|-- <MechInputs> 0.0.1
|-- <SDM> 2.0.0
| |-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <SparkFun APDS9960 RGB and Gesture Sensor> 1.4.2
| |-- <Wire> 1.0
|-- <TinyGPSPlus> 1.0.2
|-- <SerialSensors> 0.0.1
| |-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <RN2xx3 Arduino Library> 1.0.1
|-- <ESP8266WebServer> 1.0
| |-- <ESP8266WiFi> 1.0
|-- <PubSubClient> 2.7
|-- <ArduinoOTA> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS> 1.2
| | |-- <ESP8266WiFi> 1.0
|-- <ESP8266HTTPUpdateServer> 1.0
| |-- <ESP8266WebServer> 1.0
| | |-- <ESP8266WiFi> 1.0
| |-- <ESP8266WiFi> 1.0
Building in release mode
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/File.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/SD.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/Sd2Card.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/SdFile.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/SdVolume.cpp.o
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:20:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdVolume.cpp:20:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/File.cpp:15:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdVolume.cpp:20:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.cpp:53:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:26:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:20:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
Compiling .pio/build/normal_ESP8266_4M1M/libe03/esp8266-oled-ssd1306/OLEDDisplayUi.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libaf8/ccronexpr/ccronexpr.c.o
Compiling .pio/build/normal_ESP8266_4M1M/lib241/AM2320/AM2320.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb08/Adafruit_MPR121/Adafruit_MPR121.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib317/Adafruit_Motor_Shield_V2/Adafruit_MotorShield.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib317/Adafruit_Motor_Shield_V2/utility/Adafruit_MS_PWMServoDriver.cpp.o
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.cpp:53:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
Compiling .pio/build/normal_ESP8266_4M1M/libf92/Adafruit_NeoPixel/Adafruit_NeoPixel.cpp.o
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/SdVolume.cpp.o] Error 1
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/SD.cpp.o] Error 1
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:26:0:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t, int8_t, int8_t, int8_t)':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:302:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
clkport = portOutputRegister(digitalPinToPort(clockPin_));
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:304:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
mosiport = portOutputRegister(digitalPinToPort(mosiPin_));
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:306:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
misoport = portInputRegister(digitalPinToPort(misoPin_));
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp: In member function 'uint8_t Sd2Card::readData(uint32_t, uint16_t, uint16_t, uint8_t*)':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:438:12: warning: unused variable 'n' [-Wunused-variable]
uint16_t n;
^
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/Sd2Card.cpp.o] Error 1
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/File.cpp:15:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/File.cpp.o] Error 1
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp: In static member function 'static uint8_t SdFile::make83Name(const char*, uint8_t*)':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:261:15: warning: unused variable 'b' [-Wunused-variable]
uint8_t b;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp: In member function 'uint8_t SdFile::rmRfStar()':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:907:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (curPosition_ != (32*(index + 1))) {
^
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/SdFile.cpp.o] Error 1
============================================ [FAILED] Took 2.90 seconds ============================================
Environment Status Duration
------------------------------------ -------- ------------
custom_ESP8266_4M1M IGNORED
custom_sdk3_ESP8266_4M1M IGNORED
custom_beta_ESP8266_4M1M IGNORED
custom_ESP8266_4M2M IGNORED
normal_ESP8266_1M IGNORED
normal_sdk3_ESP8266_1M IGNORED
normal_ESP8266_1M_VCC IGNORED
normal_ESP8285_1M IGNORED
normal_WROOM02_2M IGNORED
normal_WROOM02_2M256 IGNORED
normal_ESP8266_4M1M FAILED 00:00:02.904
normal_ESP8266_16M IGNORED
minimal_core_242_ESP8266_1M_OTA IGNORED
minimal_core_242_ESP8285_1M_OTA IGNORED
minimal_core_261_ESP8266_1M_OTA IGNORED
minimal_core_261_ESP8285_1M_OTA IGNORED
minimal_core_261_sdk3_ESP8266_1M_OTA IGNORED
minimal_core_261_sdk3_ESP8285_1M_OTA IGNORED
minimal_IRext_ESP8266_1M IGNORED
minimal_IRext_ESP8266_4M1M IGNORED
minimal_IRext_ESP8266_4M2M IGNORED
normal_IRext_no_rx_ESP8266_4M2M IGNORED
test_ESP8266_4M_VCC IGNORED
test_beta_ESP8266_4M1M IGNORED
test_beta_ESP8266_16M IGNORED
dev_ESP8266_4M1M IGNORED
hard_SONOFF_POW_4M1M IGNORED
hard_other_POW_ESP8285_1M IGNORED
hard_Shelly_1_2M256 IGNORED
hard_Ventus_W266 IGNORED
custom_ESP32_4M316k IGNORED
test_ESP32_4M316k IGNORED
test_ESP32-wrover-kit_4M316k IGNORED
spec_debug_custom_ESP8266_4M1M IGNORED
spec_debug_beta_custom_ESP8266_4M1M IGNORED
spec_debug_custom_ESP32_4M316k IGNORED
spec_memanalyze_ESP8266 IGNORED
======================================= 1 failed, 0 succeeded in 00:00:02.904 =======================================
The terminal process terminated with exit code: 1
Re: SD support compilation errors
Posted: 25 Nov 2019, 10:37
by TD-er
Ah yeah that's right.
In almost all PIO environments I have added SDFS and similar libraries to the lib_ignore list.
They were included at build, even when not used, so they added 20+ k to the binary size.
See this line in [esp82xx_common]
lib_ignore = ESP32_ping, ESP32WebServer, IRremoteESP8266, HeatpumpIR, SD(esp8266), SDFS
The last 2 ones are needed for SD stuff.
In the [custom_ESP8266_4M1M] this is overridden for this:
lib_ignore = ESP32_ping, ESP32WebServer
So on the custom build you should be able to build it, or at least those libs will be included.
Like I said before, I have not yet tested it further after the fix in the core lib to no longer mess with the flash string support which prevented it from building anyway if the file SD.h was included.
Re: SD support compilation errors
Posted: 25 Nov 2019, 11:05
by mackowiakp
Still the same:
entry in platformio_esp82xx_base.ini:
Code: Select all
[esp82xx_common]
extends = common
board_build.f_cpu = 80000000L
build_flags = ${debug_flags.build_flags} ${mqtt_flags.build_flags} -DHTTPCLIENT_1_1_COMPATIBLE=0
build_unflags = -DDEBUG_ESP_PORT
lib_deps = https://github.com/TD-er/ESPEasySerial.git
lib_ignore = ESP32_ping, ESP32WebServer //, IRremoteESP8266, HeatpumpIR , SD(esp8266), SDFS
board = esp12e
Compilation:
Code: Select all
> Executing task: platformio run --environment custom_ESP8266_4M1M <
Processing custom_ESP8266_4M1M (platform: https://github.com/Jason2866/platform-espressif8266.git#core_2_6_1; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
['CONTROLLER_SET_ALL', 'NOTIFIER_SET_NONE', 'PLUGIN_SET_ONLY_SWITCH', 'USES_P001', 'USES_P002', 'USES_P004', 'USES_P028', 'USES_P036', 'USES_P049', 'USES_P052', 'USES_P056', 'USES_P059', 'USES_P082', 'USES_P085', 'USES_P087', 'USES_C016', 'USES_C018', 'USE_SETTINGS_ARCHIVE']
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 2.2.4 #043f5fd > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 1019.98KB Flash
PACKAGES: toolchain-xtensa 2.50400.170719 (5.4.0), framework-arduinoespressif8266 2.20601.0 (2.6.1), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20800.0 (2.8.0)
Converting ESPEasy.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 63 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <I2Cdevlib-Core>
| |-- <Wire> 1.0
|-- <SD>
| |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <Servo(esp8266)> 1.0.2
|-- <Wire> 1.0
|-- <AS_BH1750>
| |-- <Wire> 1.0
|-- <Adafruit SGP30 Sensor> 1.0.2
| |-- <Wire> 1.0
|-- <Adafruit TCS34725> 1.0.1
| |-- <Wire> 1.0
|-- <Adafruit TSL2591 Library> 1.0.2
| |-- <Adafruit Unified Sensor> 1.0.2
| |-- <Wire> 1.0
|-- <ESP8266_SSD1306> 3.2.7
| |-- <Wire> 1.0
| |-- <SPI> 1.0
|-- <ccronexpr>
|-- <AM2320>
| |-- <Wire> 1.0
|-- <HeatpumpIR>
| |-- <IRremoteESP8266> 2.7.0
|-- <Adafruit MPR121> 1.0.0
| |-- <Wire> 1.0
|-- <Adafruit Motor Shield V2 Library> 1.0.4
| |-- <Wire> 1.0
|-- <Adafruit NeoPixel> 1.0.6
|-- <Adafruit Unified Sensor> 1.0.2
|-- <ArduinoJson> 6.11.0
|-- <Blynk> 0.6.1
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266HTTPClient> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <HLW8012> 1.1.1
|-- <CHT16K33 LED Matrix Library> 0.0.1
| |-- <Wire> 1.0
|-- <IRremoteESP8266> 2.7.0
|-- <LiquidCrystal_I2C>
| |-- <Wire> 1.0
|-- <NewPingESP8266>
|-- <MechInputs> 0.0.1
|-- <SDM> 2.0.0
| |-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <SparkFun APDS9960 RGB and Gesture Sensor> 1.4.2
| |-- <Wire> 1.0
|-- <TinyGPSPlus> 1.0.2
|-- <SerialSensors> 0.0.1
| |-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <RN2xx3 Arduino Library> 1.0.1
|-- <ESP8266WebServer> 1.0
| |-- <ESP8266WiFi> 1.0
|-- <PubSubClient> 2.7
|-- <ArduinoOTA> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS> 1.2
| | |-- <ESP8266WiFi> 1.0
|-- <ESP8266HTTPUpdateServer> 1.0
| |-- <ESP8266WebServer> 1.0
| | |-- <ESP8266WiFi> 1.0
| |-- <ESP8266WiFi> 1.0
Building in release mode
Compiling .pio/build/custom_ESP8266_4M1M/libdf0/ESPeasySerial/ESPEasySerial_ESP32.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libdf0/ESPeasySerial/ESPEasySerial_ESP8266_noSWserial.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libdf0/ESPeasySerial/ESPEasySoftwareSerial.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libdf0/ESPeasySerial/ESPeasySerial_ESP8266.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFi.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiClient.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiServer.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiServerSecureAxTLS.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiUdp.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/lib9a0/DNSServer/DNSServer.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libac1/ESP8266mDNS/ESP8266mDNS.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libac1/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Control.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libba2/Wire/Wire.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/lib51e/I2Cdevlib/I2Cdev.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/lib9a4/SPI/SPI.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/File.cpp.o
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/File.cpp:15:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
Compiling .pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/SD.cpp.o
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/SD.cpp:53:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
Compiling .pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/utility/Sd2Card.cpp.o
Compiling .pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/utility/SdFile.cpp.o
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:26:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/File.cpp:15:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
*** [.pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/File.cpp.o] Error 1
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:20:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:20:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/SD.cpp:53:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
*** [.pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/SD.cpp.o] Error 1
In file included from .pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:26:0:
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t, int8_t, int8_t, int8_t)':
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:302:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
clkport = portOutputRegister(digitalPinToPort(clockPin_));
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:304:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
mosiport = portOutputRegister(digitalPinToPort(mosiPin_));
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:306:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
misoport = portInputRegister(digitalPinToPort(misoPin_));
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp: In member function 'uint8_t Sd2Card::readData(uint32_t, uint16_t, uint16_t, uint8_t*)':
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:438:12: warning: unused variable 'n' [-Wunused-variable]
uint16_t n;
^
*** [.pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/utility/Sd2Card.cpp.o] Error 1
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp: In static member function 'static uint8_t SdFile::make83Name(const char*, uint8_t*)':
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:261:15: warning: unused variable 'b' [-Wunused-variable]
uint8_t b;
^
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp: In member function 'uint8_t SdFile::rmRfStar()':
.pio/libdeps/custom_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:907:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (curPosition_ != (32*(index + 1))) {
^
*** [.pio/build/custom_ESP8266_4M1M/libc59/SD_ID161/utility/SdFile.cpp.o] Error 1
============================================ [FAILED] Took 4.62 seconds ============================================
Environment Status Duration
------------------------------------ -------- ------------
custom_ESP8266_4M1M FAILED 00:00:04.623
custom_sdk3_ESP8266_4M1M IGNORED
custom_beta_ESP8266_4M1M IGNORED
custom_ESP8266_4M2M IGNORED
normal_ESP8266_1M IGNORED
normal_sdk3_ESP8266_1M IGNORED
normal_ESP8266_1M_VCC IGNORED
normal_ESP8285_1M IGNORED
normal_WROOM02_2M IGNORED
normal_WROOM02_2M256 IGNORED
normal_ESP8266_4M1M IGNORED
normal_ESP8266_16M IGNORED
minimal_core_242_ESP8266_1M_OTA IGNORED
minimal_core_242_ESP8285_1M_OTA IGNORED
minimal_core_261_ESP8266_1M_OTA IGNORED
minimal_core_261_ESP8285_1M_OTA IGNORED
minimal_core_261_sdk3_ESP8266_1M_OTA IGNORED
minimal_core_261_sdk3_ESP8285_1M_OTA IGNORED
minimal_IRext_ESP8266_1M IGNORED
minimal_IRext_ESP8266_4M1M IGNORED
minimal_IRext_ESP8266_4M2M IGNORED
normal_IRext_no_rx_ESP8266_4M2M IGNORED
test_ESP8266_4M_VCC IGNORED
test_beta_ESP8266_4M1M IGNORED
test_beta_ESP8266_16M IGNORED
dev_ESP8266_4M1M IGNORED
hard_SONOFF_POW_4M1M IGNORED
hard_other_POW_ESP8285_1M IGNORED
hard_Shelly_1_2M256 IGNORED
hard_Ventus_W266 IGNORED
custom_ESP32_4M316k IGNORED
test_ESP32_4M316k IGNORED
test_ESP32-wrover-kit_4M316k IGNORED
spec_debug_custom_ESP8266_4M1M IGNORED
spec_debug_beta_custom_ESP8266_4M1M IGNORED
spec_debug_custom_ESP32_4M316k IGNORED
spec_memanalyze_ESP8266 IGNORED
======================================= 1 failed, 0 succeeded in 00:00:04.623 =======================================
The terminal process terminated with exit code: 1
Re: SD support compilation errors
Posted: 25 Nov 2019, 12:42
by TD-er
Well those compile issues will not disappear, but the linker errors you had this morning will be gone when using a config which hasn't SDFS etc. in the lib_ignore list.
The other issues, I have to look into later.
Right now I am occupied with some other (ESPEasy related) stuff, so I cannot look into this right now.
Re: SD support compilation errors
Posted: 25 Nov 2019, 17:37
by mackowiakp
OK. But I want to inform, that after revering changes in "platformio_esp82xx_base.ini" and in "define_plugin_sets.h" files, that is disabling SD card support, it is not possible to compile any firmware. As I wote. In this case no Custom.h, own plugins and any other my changes, all taken "as is" from Source (zip) file.
Still SD library is somewhere call:
Code: Select all
> Executing task: platformio run --environment normal_ESP8266_4M1M <
Processing normal_ESP8266_4M1M (platform: https://github.com/Jason2866/platform-espressif8266.git#core_2_6_1; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CPPDEFINES: [['BUILD_GIT', '""'], 'NDEBUG', 'VTABLES_IN_FLASH', 'PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH', ['PUYA_SUPPORT', '1'], 'CORE_POST_2_5_0', 'BEARSSL_SSL_BASIC', 'CORE_POST_2_6_0', 'PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703', ['MQTT_MAX_PACKET_SIZE', '1024'], ['HTTPCLIENT_1_1_COMPATIBLE', '0'], 'USE_CUSTOM_H']
LINKFLAGS: -Wl,-Tesp8266.flash.4m1m.ld
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 2.2.4 #043f5fd > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 1019.98KB Flash
PACKAGES: toolchain-xtensa 2.50400.170719 (5.4.0), framework-arduinoespressif8266 2.20601.0 (2.6.1), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20800.0 (2.8.0)
Converting ESPEasy.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 59 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <I2Cdevlib-Core>
| |-- <Wire> 1.0
|-- <SD>
| |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <Servo(esp8266)> 1.0.2
|-- <Wire> 1.0
|-- <AS_BH1750>
| |-- <Wire> 1.0
|-- <Adafruit SGP30 Sensor> 1.0.2
| |-- <Wire> 1.0
|-- <Adafruit TCS34725> 1.0.1
| |-- <Wire> 1.0
|-- <Adafruit TSL2591 Library> 1.0.2
| |-- <Adafruit Unified Sensor> 1.0.2
| |-- <Wire> 1.0
|-- <ESP8266_SSD1306> 3.2.7
| |-- <Wire> 1.0
| |-- <SPI> 1.0
|-- <ccronexpr>
|-- <AM2320>
| |-- <Wire> 1.0
|-- <Adafruit MPR121> 1.0.0
| |-- <Wire> 1.0
|-- <Adafruit Motor Shield V2 Library> 1.0.4
| |-- <Wire> 1.0
|-- <Adafruit NeoPixel> 1.0.6
|-- <Adafruit Unified Sensor> 1.0.2
|-- <ArduinoJson> 6.11.0
|-- <Blynk> 0.6.1
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266HTTPClient> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <HLW8012> 1.1.1
|-- <CHT16K33 LED Matrix Library> 0.0.1
| |-- <Wire> 1.0
|-- <LiquidCrystal_I2C>
| |-- <Wire> 1.0
|-- <NewPingESP8266>
|-- <MechInputs> 0.0.1
|-- <SDM> 2.0.0
| |-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <SparkFun APDS9960 RGB and Gesture Sensor> 1.4.2
| |-- <Wire> 1.0
|-- <TinyGPSPlus> 1.0.2
|-- <SerialSensors> 0.0.1
| |-- <ESPeasySerial> 1.0.13 #7ddbf6c
|-- <RN2xx3 Arduino Library> 1.0.1
|-- <ESP8266WebServer> 1.0
| |-- <ESP8266WiFi> 1.0
|-- <PubSubClient> 2.7
|-- <ArduinoOTA> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS> 1.2
| | |-- <ESP8266WiFi> 1.0
|-- <ESP8266HTTPUpdateServer> 1.0
| |-- <ESP8266WebServer> 1.0
| | |-- <ESP8266WiFi> 1.0
| |-- <ESP8266WiFi> 1.0
Building in release mode
Compiling .pio/build/normal_ESP8266_4M1M/lib553/ESPeasySerial/ESPEasySerial_ESP32.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib553/ESPeasySerial/ESPEasySerial_ESP8266_noSWserial.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib553/ESPeasySerial/ESPEasySoftwareSerial.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib553/ESPeasySerial/ESPeasySerial_ESP8266.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFi.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiClient.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiServer.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiServerSecureAxTLS.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb61/ESP8266WiFi/WiFiUdp.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib9a0/DNSServer/DNSServer.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libac1/ESP8266mDNS/ESP8266mDNS.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libac1/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Control.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libac1/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libba2/Wire/Wire.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib51e/I2Cdevlib/I2Cdev.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/lib9a4/SPI/SPI.cpp.o
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/File.cpp.o
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/File.cpp:15:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/SD.cpp.o
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.cpp:53:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/Sd2Card.cpp.o
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/File.cpp:15:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:26:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
Compiling .pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/SdFile.cpp.o
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/File.cpp.o] Error 1
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:26:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:20:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:20:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFat.h:29:0,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.h:25,
from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/SD.cpp:53:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/SD.cpp.o] Error 1
In file included from .pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:26:0:
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:70:31: error: 'MISO_PIN' was not declared in this scope
uint8_t const SPI_MISO_PIN = MISO_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.h:72:30: error: 'SCK_PIN' was not declared in this scope
uint8_t const SPI_SCK_PIN = SCK_PIN;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t, int8_t, int8_t, int8_t)':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:302:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
clkport = portOutputRegister(digitalPinToPort(clockPin_));
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:304:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
mosiport = portOutputRegister(digitalPinToPort(mosiPin_));
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:306:17: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
misoport = portInputRegister(digitalPinToPort(misoPin_));
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp: In member function 'uint8_t Sd2Card::readData(uint32_t, uint16_t, uint16_t, uint8_t*)':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/Sd2Card.cpp:438:12: warning: unused variable 'n' [-Wunused-variable]
uint16_t n;
^
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/Sd2Card.cpp.o] Error 1
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp: In static member function 'static uint8_t SdFile::make83Name(const char*, uint8_t*)':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:261:15: warning: unused variable 'b' [-Wunused-variable]
uint8_t b;
^
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp: In member function 'uint8_t SdFile::rmRfStar()':
.pio/libdeps/normal_ESP8266_4M1M/SD_ID161/utility/SdFile.cpp:907:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (curPosition_ != (32*(index + 1))) {
^
*** [.pio/build/normal_ESP8266_4M1M/libb59/SD_ID161/utility/SdFile.cpp.o] Error 1
============================================ [FAILED] Took 6.30 seconds ============================================
Environment Status Duration
------------------------------------ -------- ------------
custom_ESP8266_4M1M IGNORED
custom_sdk3_ESP8266_4M1M IGNORED
custom_beta_ESP8266_4M1M IGNORED
custom_ESP8266_4M2M IGNORED
normal_ESP8266_1M IGNORED
normal_sdk3_ESP8266_1M IGNORED
normal_ESP8266_1M_VCC IGNORED
normal_ESP8285_1M IGNORED
normal_WROOM02_2M IGNORED
normal_WROOM02_2M256 IGNORED
normal_ESP8266_4M1M FAILED 00:00:06.305
normal_ESP8266_16M IGNORED
minimal_core_242_ESP8266_1M_OTA IGNORED
minimal_core_242_ESP8285_1M_OTA IGNORED
minimal_core_261_ESP8266_1M_OTA IGNORED
minimal_core_261_ESP8285_1M_OTA IGNORED
minimal_core_261_sdk3_ESP8266_1M_OTA IGNORED
minimal_core_261_sdk3_ESP8285_1M_OTA IGNORED
minimal_IRext_ESP8266_1M IGNORED
minimal_IRext_ESP8266_4M1M IGNORED
minimal_IRext_ESP8266_4M2M IGNORED
normal_IRext_no_rx_ESP8266_4M2M IGNORED
test_ESP8266_4M_VCC IGNORED
test_beta_ESP8266_4M1M IGNORED
test_beta_ESP8266_16M IGNORED
dev_ESP8266_4M1M IGNORED
hard_SONOFF_POW_4M1M IGNORED
hard_other_POW_ESP8285_1M IGNORED
hard_Shelly_1_2M256 IGNORED
hard_Ventus_W266 IGNORED
custom_ESP32_4M316k IGNORED
test_ESP32_4M316k IGNORED
test_ESP32-wrover-kit_4M316k IGNORED
spec_debug_custom_ESP8266_4M1M IGNORED
spec_debug_beta_custom_ESP8266_4M1M IGNORED
spec_debug_custom_ESP32_4M316k IGNORED
spec_memanalyze_ESP8266 IGNORED
======================================= 1 failed, 0 succeeded in 00:00:06.305 =======================================
The terminal process terminated with exit code: 1
Re: SD support compilation errors
Posted: 25 Nov 2019, 17:51
by TD-er
Have you removed the define for SD_FEATURE (or how it is called) and also performed a clean build?
(this does clean all environments, or the defined "default" environments)
Re: SD support compilation errors
Posted: 25 Nov 2019, 18:03
by mackowiakp
Yes, both from VS menu and from VS terminal.
Re: SD support compilation errors
Posted: 15 Dec 2020, 20:34
by tparvais
hello
I tried to compile [env:custom_ESP8266_4M1M] with last build 20201130 source and it does not work well even if I add
SD(esp8266), SDFS, LittleFS(esp8266) in lib-ignore of [esp8266_custom_common]
In file included from C:\Users\tparvais\.platformio\lib\SD/utility/Sd2Card.h:26:0,
from C:\Users\tparvais\.platformio\lib\SD/utility/SdFat.h:29,
from C:\Users\tparvais\.platformio\lib\SD/SD.h:25,
from C:\Users\tparvais\.platformio\lib\SD\File.cpp:15:
C:\Users\tparvais\.platformio\lib\SD/utility/Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
the normal compilation [env:normal_ESP8266_4M1M] compiles perfectly.
any idea ?
Re: SD support compilation errors
Posted: 15 Dec 2020, 21:48
by TD-er
Do you want to add SD support?
Or remove it?
By adding libraries to the lib_ignore, you cannot use it in the code.
Re: SD support compilation errors
Posted: 16 Dec 2020, 09:20
by tparvais
TD-er wrote: ↑15 Dec 2020, 21:48
Do you want to add SD support?
Or remove it?
By adding libraries to the lib_ignore, you cannot use it in the code.
I don't want them
what did surprise me is the fact that I cannot compile at all 3011 release with custom.h (special plugins). It stops with SD Libraries issue, even if I add them in lib-ignore.
Re: SD support compilation errors
Posted: 16 Dec 2020, 11:06
by TD-er
Can you give me a list of the plugins you want?
And if you don't define FEATURE_SD it will not use it, regardless whether it is in the lib_ignore list.
So there is no need to place it in the lib_ignore list.
That list is mainly used to shorten compile times and prevent collisions with some libraries using functions with the same signature (like ESP32 libs on ESP82xx and vice verse.
Re: SD support compilation errors
Posted: 16 Dec 2020, 11:58
by tparvais
this is the list I defined in custom.h file
(I wonder why there is _cutomer.h now?)
#define USES_P001 // Switch
#define USES_P002 // ADC
#define USES_P003 // Pulse
#define USES_P004 // Dallas
#define USES_P005 // DHT
#define USES_P006 // BMP085
// #define USES_P007 // PCF8591
// #define USES_P008 // RFID
// #define USES_P009 // MCP
// #define USES_P010 // BH1750
// #define USES_P011 // PME
#define USES_P012 // LCD
#define USES_P013 // HCSR04
// #define USES_P014 // SI7021
#define USES_P015 // TSL2561
// #define USES_P017 // PN532
// #define USES_P018 // Dust
// #define USES_P019 // PCF8574
// #define USES_P020 // Ser2Net
// #define USES_P021 // Level
// #define USES_P022 // PCA9685
#define USES_P023 // OLED
// #define USES_P024 // MLX90614
#define USES_P025 // ADS1115
#define USES_P026 // SysInfo
// #define USES_P027 // INA219
#define USES_P028 // BME280
#define USES_P029 // Output
#define USES_P031 // SHT1X
// #define USES_P032 // MS5611
#define USES_P033 // Dummy
// #define USES_P034 // DHT12
// #define USES_P036 // FrameOLED
// #define USES_P037 // MQTTImport
// #define USES_P038 // NeoPixel
// #define USES_P039 // Environment - Thermocouple
// #define USES_P040 // RFID - ID12LA/RDM6300
// #define USES_P041 // NeoClock
// #define USES_P042 // Candle
// #define USES_P043 // ClkOutput
// #define USES_P044 // P1WifiGateway
// #define USES_P045 // MPU6050
// #define USES_P046 // VentusW266
#define USES_P047 // I2C_soil_misture
// #define USES_P048 // Motoshield_v2
// #define USES_P049 // MHZ19
// #define USES_P050 // TCS34725 RGB Color Sensor with IR filter and White LED
// #define USES_P051 // AM2320
// #define USES_P052 // SenseAir
// #define USES_P053 // PMSx003
// #define USES_P054 // DMX512
// #define USES_P055 // Chiming
// #define USES_P056 // SDS011-Dust
// #define USES_P057 // HT16K33_LED
// #define USES_P058 // HT16K33_KeyPad
#define USES_P059 // Encoder
// #define USES_P060 // MCP3221
// #define USES_P061 // Keypad
// #define USES_P062 // MPR121_KeyPad
// #define USES_P063 // TTP229_KeyPad
// #define USES_P064 // APDS9960 Gesture
// #define USES_P065 // DRF0299
// #define USES_P066 // VEML6040
// #define USES_P067 // HX711_Load_Cell
#define USES_P068 // SHT3x
// #define USES_P069 // LM75A
// #define USES_P070 // NeoPixel_Clock
// #define USES_P071 // Kamstrup401
// #define USES_P072 // HDC1080
// #define USES_P073 // 7DG
#define USES_P074 // TSL2561
// #define USES_P075 // Nextion
// #define USES_P076 // HWL8012 in POW r1
// #define USES_P077 // CSE7766 in POW R2
// #define USES_P078 // Eastron Modbus Energy meters
// #define USES_P079 // Wemos Motoshield
// #define USES_P080 // iButton Sensor DS1990A
#define USES_P081 // Cron
#define USES_P082 // GPS
// #define USES_P083 // SGP30
// #define USES_P084 // VEML6070
// #define USES_P085 // AcuDC24x
// #define USES_P086 // Receiving values according Homie convention. Works together with C014 Homie controller
// #define USES_P087 // Serial Proxy
#define USES_P089
#define USES_P100
//#define USES_P128
#define USES_P105 //_P105_RGBW.ino
//#define USES_P112 //_P112_Power.ino
#define USES_P119 //_P119_BME680.ino
#define USES_P126 //_P126_Ping.ino
//#define USES_P128 //_P128_AS3935.ino
#define USES_P159 //_P159_Pushbutton.ino
#define USES_P171 //_P171_PZEM-004T.ino
//#define USES_P202 //_P202_ADC_ACcurrentSensor.ino
Thomas
Re: SD support compilation errors
Posted: 16 Dec 2020, 12:16
by TD-er
That _Custom.h file is already removed in the main branch.
Just base your Custom.h on the Custom-sample.h file
I will try your selection to see if I can reproduce your problem.
Re: SD support compilation errors
Posted: 17 Dec 2020, 10:43
by tparvais
TD-er wrote: ↑16 Dec 2020, 12:16
That _Custom.h file is already removed in the main branch.
Just base your Custom.h on the Custom-sample.h file
I will try your selection to see if I can reproduce your problem.
I'm surprised at it seems to no take custom.h into account when I use, on Platformio.ini the line default_envs = custom_ESP8266_4M1M
in platformio_esp82xx_envs.ini i see "-DPLUGIN_BUILD_CUSTOM" despite that in customer.h it is indicated we shall use -DUSE_CUSTOM_H
is that maybe the problem ?
Code: Select all
[env:custom_ESP8266_4M1M]
extends = esp8266_4M1M
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags}
${esp8266_4M1M.build_flags}
-DPLUGIN_BUILD_CUSTOM
lib_ignore = ${esp8266_custom_common.lib_ignore}
extra_scripts = ${esp8266_custom_common.extra_scripts}
Re: SD support compilation errors
Posted: 17 Dec 2020, 15:06
by TD-er
You need to rename the Custom-sample.h to Custom.h (capital C).
The build script checks to see if this file Custom.h exists and if so it will add a flag so it will be included in the ESPEasy_common.h file.
Like I said the file _Custom.h was a mistake to be included and it has been removed from the repository.
Re: SD support compilation errors
Posted: 17 Dec 2020, 15:51
by tparvais
I'm using Custom.h with C). still the same Customer.h file since several months.
I checked with last Custom-Sample.h and I don't see any new lines.
It still complains about SDCard that I have not included in my build config. I don't know where to disable the addition of thie library I don't need
Thomas
Re: SD support compilation errors
Posted: 17 Dec 2020, 16:20
by TD-er
I haven't been around a computer to testing compiling it yet.
It shouldn't be a problem, as long as you don't set the feature SD to be enabled, then it should not be included in the build.
But to make sure we're talking about the same issue, I have to see what errors occur.
Re: SD support compilation errors
Posted: 17 Dec 2020, 16:32
by TD-er
tparvais wrote: ↑16 Dec 2020, 11:58
this is the list I defined in custom.h file
Code: Select all
#define USES_P001 // Switch
#define USES_P002 // ADC
#define USES_P003 // Pulse
#define USES_P004 // Dallas
#define USES_P005 // DHT
#define USES_P006 // BMP085
// #define USES_P007 // PCF8591
// #define USES_P008 // RFID
// #define USES_P009 // MCP
// #define USES_P010 // BH1750
// #define USES_P011 // PME
#define USES_P012 // LCD
#define USES_P013 // HCSR04
// #define USES_P014 // SI7021
#define USES_P015 // TSL2561
// #define USES_P017 // PN532
// #define USES_P018 // Dust
// #define USES_P019 // PCF8574
// #define USES_P020 // Ser2Net
// #define USES_P021 // Level
// #define USES_P022 // PCA9685
#define USES_P023 // OLED
// #define USES_P024 // MLX90614
#define USES_P025 // ADS1115
#define USES_P026 // SysInfo
// #define USES_P027 // INA219
#define USES_P028 // BME280
#define USES_P029 // Output
#define USES_P031 // SHT1X
// #define USES_P032 // MS5611
#define USES_P033 // Dummy
// #define USES_P034 // DHT12
// #define USES_P036 // FrameOLED
// #define USES_P037 // MQTTImport
// #define USES_P038 // NeoPixel
// #define USES_P039 // Environment - Thermocouple
// #define USES_P040 // RFID - ID12LA/RDM6300
// #define USES_P041 // NeoClock
// #define USES_P042 // Candle
// #define USES_P043 // ClkOutput
// #define USES_P044 // P1WifiGateway
// #define USES_P045 // MPU6050
// #define USES_P046 // VentusW266
#define USES_P047 // I2C_soil_misture
// #define USES_P048 // Motoshield_v2
// #define USES_P049 // MHZ19
// #define USES_P050 // TCS34725 RGB Color Sensor with IR filter and White LED
// #define USES_P051 // AM2320
// #define USES_P052 // SenseAir
// #define USES_P053 // PMSx003
// #define USES_P054 // DMX512
// #define USES_P055 // Chiming
// #define USES_P056 // SDS011-Dust
// #define USES_P057 // HT16K33_LED
// #define USES_P058 // HT16K33_KeyPad
#define USES_P059 // Encoder
// #define USES_P060 // MCP3221
// #define USES_P061 // Keypad
// #define USES_P062 // MPR121_KeyPad
// #define USES_P063 // TTP229_KeyPad
// #define USES_P064 // APDS9960 Gesture
// #define USES_P065 // DRF0299
// #define USES_P066 // VEML6040
// #define USES_P067 // HX711_Load_Cell
#define USES_P068 // SHT3x
// #define USES_P069 // LM75A
// #define USES_P070 // NeoPixel_Clock
// #define USES_P071 // Kamstrup401
// #define USES_P072 // HDC1080
// #define USES_P073 // 7DG
#define USES_P074 // TSL2561
// #define USES_P075 // Nextion
// #define USES_P076 // HWL8012 in POW r1
// #define USES_P077 // CSE7766 in POW R2
// #define USES_P078 // Eastron Modbus Energy meters
// #define USES_P079 // Wemos Motoshield
// #define USES_P080 // iButton Sensor DS1990A
#define USES_P081 // Cron
#define USES_P082 // GPS
// #define USES_P083 // SGP30
// #define USES_P084 // VEML6070
// #define USES_P085 // AcuDC24x
// #define USES_P086 // Receiving values according Homie convention. Works together with C014 Homie controller
// #define USES_P087 // Serial Proxy
#define USES_P089
#define USES_P100
//#define USES_P128
#define USES_P105 //_P105_RGBW.ino
//#define USES_P112 //_P112_Power.ino
#define USES_P119 //_P119_BME680.ino
#define USES_P126 //_P126_Ping.ino
//#define USES_P128 //_P128_AS3935.ino
#define USES_P159 //_P159_Pushbutton.ino
#define USES_P171 //_P171_PZEM-004T.ino
//#define USES_P202 //_P202_ADC_ACcurrentSensor.ino
Thomas
I did a checkout of the current mega branch, renamed Custom-sample.h to Custom.h and replaced the plugin section with the list you posted.
The build completes without any issue.
I noticed you have a few plugins defined which are not part of the current mega branch, so I wonder if those may cause issues?
Please do not try to alter the platformio.ini files (incl those included by the main platformio.ini) as that's not needed.
Re: SD support compilation errors
Posted: 17 Dec 2020, 19:42
by tparvais
i was using the release build 3011 and not the last github night pack
I've deleted everything and re-install from the ZIP all the source . I just remove esp32 reference in platformio.ini default_envs = custom_ESP8266_4M1M
as I don't need to compile for ESP32
Then I press in left platformio menu "build" for normal_ESP8266_4M1M as you told me that by using Custom.h, there is an auto-detect of this specific file. it compiles fine but does not use custom.h (I adapt #define BUILD_GIT with a specific string I don't see on Espeasy UI when upload the code to my ESP8266. ==> custom.h not used...
if i click on "build" custom_ESP8266_4M1M , I get SDCard compilation issue
I'm lost
Re: SD support compilation errors
Posted: 17 Dec 2020, 19:55
by Ath
Is one of your plugins pulling in some Adafruit library? I've seen some of these libraries pull in SD card support, that interferes with the ESPEasy version of SD-like support, so I had to strip the library from its library.properties file to make it work. Can't recall what library caused that though...
Re: SD support compilation errors
Posted: 17 Dec 2020, 20:06
by Ath
Aha, just hit build on my (almost) 'mega' branch local dev environment for the custom_ESP8266_4M1M config, and also have the SD compilation errors, while compiling the Controllers_tmp combined .cpp file. (I'm using a modified test build for dev work

)
Haven't found yet what is the actual cause

Re: SD support compilation errors
Posted: 17 Dec 2020, 20:34
by TD-er
What are the errors and what selection of plugins/controllers are you using?
And is it building in PIO? Which exact PIO environment is being built?
Re: SD support compilation errors
Posted: 17 Dec 2020, 20:37
by tparvais
don't worry anymore. i succeed to compile with
-DUSE_CUSTOM_H
in [esp82xx_common]
and it works with default_envs = normal_ESP8266_4M1M
with all sort of plugin of my Custom.h
I thing the problem is not in custom.h but elsewhere when using default_envs = custom_ESP8266_4M1M
Re: SD support compilation errors
Posted: 17 Dec 2020, 20:42
by TD-er
Just curious, how are you building?
I do select the build env in VS code like in the screenshot I have attached to this post.

- 2020-12-17 20_41_03-define_plugin_sets.h - ESPEasy - Visual Studio Code.png (21.65 KiB) Viewed 30868 times
And it is building just fine.
Re: SD support compilation errors
Posted: 17 Dec 2020, 20:58
by tparvais
yes, this is what I did before I finally change a litle bit the init file.
by pressing that ==> SDcard issue
Re: SD support compilation errors
Posted: 17 Dec 2020, 22:20
by TD-er
But that's the point, I have changed nothing in the ini file and it does compile just fine here.
You should not need to change anything in the ini file to make it work.
I tested with a Custom.h file, and without and it all compiles as it should.
Also Ton reports similar build issues, so it is something others may also run into and I am not waiting for similar reports of users building frustration instead of software without a single clue of what may be causing this.
Re: SD support compilation errors
Posted: 17 Dec 2020, 22:31
by Ath
I tried that build before I updated to the latest mega merges that removes the _Custom.h file. Now I updated, but I still have a compile error on that custom config:
Code: Select all
Compiling .pio\build\custom_ESP8266_4M1M\src\src\DataTypes\PluginID.cpp.o
In file included from .pio\libdeps\custom_ESP8266_4M1M\SD\utility\Sd2Card.h:26:0,
from .pio\libdeps\custom_ESP8266_4M1M\SD\utility\SdFat.h:29,
from .pio\libdeps\custom_ESP8266_4M1M\SD\utility\SdVolume.cpp:20:
.pio\libdeps\custom_ESP8266_4M1M\SD\utility\Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
In file included from .pio\libdeps\custom_ESP8266_4M1M\SD\utility\SdFat.h:29:0,
from .pio\libdeps\custom_ESP8266_4M1M\SD\utility\SdVolume.cpp:20:
.pio\libdeps\custom_ESP8266_4M1M\SD\utility\Sd2Card.h:65:37: error: 'SS_PIN' was not declared in this scope
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
^
.pio\libdeps\custom_ESP8266_4M1M\SD\utility\Sd2Card.h:68:31: error: 'MOSI_PIN' was not declared in this scope
uint8_t const SPI_MOSI_PIN = MOSI_PIN;
^
This is just the log of the first couple of errors I get.
Re: SD support compilation errors
Posted: 17 Dec 2020, 22:37
by TD-er
Can you send me the Custom.h file you use? (send it via DM or email)
Re: SD support compilation errors
Posted: 18 Dec 2020, 07:42
by Ath
TD-er wrote: ↑17 Dec 2020, 22:37
Can you send me the Custom.h file you use? (send it via DM or email)
I think there's the problem, must be a rookie mistake, I don't
have a Custom.h file, never built a custom build locally before
Would have expected the compiler to bail out with a missing include, but it doesn't. Weird.
Re: SD support compilation errors
Posted: 18 Dec 2020, 22:59
by TD-er
If you don't have a Custom.h, the tools/pio/pre_custom_espxxx.py files are used.
So you still should not have build issues then.
Edit:
And I don't think you qualify as a rookie anymore

Re: SD support compilation errors
Posted: 19 Dec 2020, 11:57
by Ath
As I'm deemed not to be a rookie anymore

I did some investigation:
- When copying the Custom-sample.h to Custom.h compilation of env:custom_ESP8266_4M1M is working as expected
- When having no Custom.h but removing the FEATURE_SD option from pre_custom_esp82xx.py , compilation of env:custom_ESP8266_4M1M is working as expected
- When reverting those changes, compiling env:test_ESP8266_4M1M_VCC_MDNS_SD (the only environment I could find using the FEATURE_SD option), the compilation phase is working as expected, except it won't fit in iram, so the linker step is failing
Tried adding , LittleFS(esp8266) to the common lib_ignore definition (as that's excluded for env:test_ESP8266_4M1M_VCC_MDNS_SD), but that wasn't helping. ('Compatible libraries' went down with 1, so I put it in the right spot).
I'll stop investigation for now, don't have enough experience yet to know where to continue next.
Re: SD support compilation errors
Posted: 19 Dec 2020, 12:06
by TD-er
env:test_ESP8266_4M1M_VCC_MDNS_SD is removed from the Travis YAML file because it doesn't fit anymore, so that's correct.
And as far as I can see, you tested just about anything I also tested, so glad to know those are still working.
I think the SD related build errors may somehow be related to using plugin code not yet present in the main repository.
Re: SD support compilation errors
Posted: 19 Dec 2020, 13:04
by Ath
TD-er wrote: ↑19 Dec 2020, 12:06
I think the SD related build errors may somehow be related to using plugin code not yet present in the main repository.
There you caught me

I have an Adafruit library in my lib directory, waiting for another project to be picked up again..., but after moving that directory (compatible libraries down by 1 again) and manually cleaning out the .pio/libdeps directory (only non-repo libraries), It is finally compiling without errors again. That libdeps directory isn't cleaned when using the env's Clean step from Pio

(probably to avoid re-downloading any required libraries)
So, maybe that's all that's needed to resolve this:
- remove any unused libraries from the lib directory
- clean the .pio/libdeps/(environment_name) directory
Re: SD support compilation errors
Posted: 19 Dec 2020, 13:08
by TD-er
Restart of IDE is probably also doing something to clean the temp files, but not as rigorous as cleaning the .pio/libdeps folder.
And told you so, you're past the rookie stage
