PaulStoffregen / SerialFlash

Library for using SPI Flash memory with a filesystem-like interface
336 stars 118 forks source link

ESP32 Broken #60

Closed EUA closed 5 years ago

EUA commented 5 years ago

Arduino 1.8.8 + SerialFlash 0.5 + esp32 1.0.0 Using with Arduino-ESP32, SerialFlash broken. Examples doesn't working. Gives this error.

/home/death/Arduino/libraries/SerialFlash/SerialFlashChip.cpp: In static member function 'static void SerialFlashChip::read(uint32_t, void*, uint32_t)':
/home/death/Arduino/libraries/SerialFlash/SerialFlashChip.cpp:161:28: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, uint32_t&)'
   SPIPORT.transfer(p, rdlen);
                            ^
In file included from /home/death/Arduino/libraries/SerialFlash/SerialFlash.h:32:0,
                 from /home/death/Arduino/libraries/SerialFlash/SerialFlashChip.cpp:28:
/home/death/.arduino15/packages/esp32/hardware/esp32/1.0.0/libraries/SPI/src/SPI.h:69:13: note: candidate: uint8_t SPIClass::transfer(uint8_t)
     uint8_t transfer(uint8_t data);
             ^
/home/death/.arduino15/packages/esp32/hardware/esp32/1.0.0/libraries/SPI/src/SPI.h:69:13: note:   candidate expects 1 argument, 2 provided
fa1ke5 commented 5 years ago

what code are you using?

EUA commented 5 years ago

Examples provided with library.

fa1ke5 commented 5 years ago

I don't testing other examples, but rawhardwaretest compiled well on esp32

fa1ke5 commented 5 years ago

Why you are using old esp32 sdk, as I know current version of him much more than 1.0.0

EUA commented 5 years ago

My arduino installation string just shows 1.0. Well I updated it and error solved. Thanks.