volca / wireless_usb_disk

Using ESP32-S2 as a USB Disk with Wireless accessibility. HTTP file server be used with both upload and download capability.
MIT License
67 stars 12 forks source link

sdusb.h: no such file or directory #2

Closed Ciph3rCat closed 2 years ago

Ciph3rCat commented 2 years ago

I am trying to flash this on esp32-s2 but getting this error. Where are we suppose to get that file?

volca commented 2 years ago
  1. which version of arduino core did you use?
  2. Did you compile it with platformio?
  3. Please paste the compile log here
Ciph3rCat commented 2 years ago
  1. Arduino core means arduino ide? (1.8.19)
  2. Nope
  3. Here's error log:
[Truncated] 
"-IC:\\Users\\Ciph3rCat\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.2\\libraries\\SPIFFS\\src" "-IC:\\Users\\Ciph3rCat\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.2\\libraries\\FS\\src" "C:\\Users\\Ciph3rCat\\AppData\\Local\\Temp\\arduino_build_314607\\sketch\\main.ino.cpp" -o nul
Alternatives for sdusb.h: []
ResolveLibrary(sdusb.h)main:10:10: fatal error: sdusb.h: No such file or directory

  -> candidates: [] #include "sdusb.h"

          ^~~~~~~~~
compilation terminated.
Multiple libraries were found for "WiFi.h"
 Used: C:\Users\\Ciph3rCat\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi
 Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Using library WiFi at version 2.0.0 in folder: C:\Users\\Ciph3rCat\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi 
Using library WebServer at version 2.0.0 in folder: C:\Users\\Ciph3rCat\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\WebServer 
Using library SPIFFS at version 2.0.0 in folder: C:\Users\\Ciph3rCat\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\SPIFFS 
Using library FS at version 2.0.0 in folder: C:\Users\\Ciph3rCat\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\FS 
exit status 1
sdusb.h: No such file or directory
volca commented 2 years ago

Please note I tested the code with arduino core for esp32 which based esp-idf v4.2. see the link

It seems you use arduino for esp32 v2.0.2. You should check the library EspTinyUSB for the compatible message.

volca commented 2 years ago

I can't reproduce it with latest arduino-esp32 v2.0.3 and EspTinyUSB v2.0.1. Closed