Announcement

Collapse
No announcement yet.

Cannot compile for IOD-09TH

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot compile for IOD-09TH

    Trying to get set up using the IOD-09TH, mounted on a 4D-UPA. I added the board and libraries through the Arduino IDE, but get the following list of errors (whether compiling in the 4D Workshop or the Arduino IDE):

    Code:
    Arduino: 1.8.9 (Windows 10), Board: "4D Systems gen4 IoD Range, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 512KB (FS:32KB OTA:~230KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    
    Build options changed, rebuilding all
    D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp: In member function 'void GFX4dIoD9::begin()':
    
    D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp:296:28: error: no matching function for call to 'SDClass::begin(int8_t&, int)'
    
    if(SD.begin(_sd, 79000000)){
    
    ^
    
    D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp:296:28: note: candidate is:
    
    In file included from D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.h:184:0,
    
    from D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp:178:
    
    C:\Users\mitch\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SD\src/SD.h:35:13: note: boolean SDClass::begin(uint8_t, SPISettings)
    
    boolean begin(uint8_t csPin, SPISettings cfg = SPI_HALF_SPEED) {
    
    ^
    
    C:\Users\mitch\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SD\src/SD.h:35:13: note: no known conversion for argument 2 from 'int' to 'SPISettings'
    
    Multiple libraries were found for "SD.h"
    Used: C:\Users\mitch\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SD
    Not used: D:\Arduino\libraries\SD
    exit status 1
    Error compiling for board 4D Systems gen4 IoD Range.
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    Any help appreciated...

  • #2
    Hi,

    Sorry to hear that you're having a problem with your IoD. This may possibly be an issue with the ESP8266 2.6.3 core. While we are still investigating the issue, would it possible for you to downgrade the ESP8266 core to 2.6.2.

    You can do this from Tools, Board Manager in the Arduino IDE.

    Best regards

    Paul

    Comment


    • #3
      Thanks for the quick reply! I did as suggested and get pretty much the same:

      Code:
      Arduino: 1.8.9 (Windows 10), Board: "4D Systems gen4 IoD Range, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 512KB (FS:32KB OTA:~230KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
      
      D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp: In member function 'void GFX4dIoD9::begin()':
      
      D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp:296:28: error: no matching function for call to 'SDClass::begin(int8_t&, int)'
      
      if(SD.begin(_sd, 79000000)){
      
      ^
      
      D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp:296:28: note: candidate is:
      
      In file included from D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.h:184:0,
      
      from D:\Arduino\Sketchbook\libraries\GFX4DIoD9\src\GFX4dIoD9.cpp:178:
      
      C:\Users\mitch\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\SD\src/SD.h:35:13: note: boolean SDClass::begin(uint8_t, SPISettings)
      
      boolean begin(uint8_t csPin, SPISettings cfg = SPI_HALF_SPEED) {
      
      ^
      
      C:\Users\mitch\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\SD\src/SD.h:35:13: note: no known conversion for argument 2 from 'int' to 'SPISettings'
      
      Multiple libraries were found for "SD.h"
      Used: C:\Users\mitch\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.2\libraries\SD
      Not used: D:\Arduino\libraries\SD
      exit status 1
      Error compiling for board 4D Systems gen4 IoD Range.

      Comment


      • #4
        Hi,

        Thank you for trying this. I have attached a modified GFX4DIoD9 library. Could you please try this and let me know if it solves the problem.

        Best regards

        Paul
        Attached Files

        Comment


        • #5
          That worked!

          Thank you so much...

          Comment


          • #6
            You're very welcome and thanks for letting me know.

            Comment

            Working...
            X