lorol / arduino-esp32littlefs-plugin

A LittleFS wrapper for Arduino ESP32 of Mbed LittleFS Library
GNU General Public License v2.0
17 stars 4 forks source link

OSX instructions #1

Open ClaesClaes opened 4 years ago

ClaesClaes commented 4 years ago

Hi, could you help me with some instructions on how to install the filesystem uploader tools for the Arduino IDE on an OSX machine? Not sure I fully understand if fully just reading the "installation" section.

lorol commented 4 years ago

1)Get apple binary from the assets: https://github.com/earlephilhower/mklittlefs/releases

2)Find on your Arduino install where espota and esptool are located and copy the file there

3)Create directory path and copy unpacked jar you get from my project to: ~/Documents/Arduino/tools/ESP32LittleFS/tool/esp32littlefs.jar

4)Restart Arduino

I recommend to use the other plugin instead. Identical installation. It supports SPIFFS and LittleFS. Even FatFS, but you need to compile the mkfatfs binary on OSX. The source is here: https://github.com/labplus-cn/mkfatfs

Please report if it works.

ClaesClaes commented 4 years ago

Thanks lorol, I really appreciate your rapid reply. I've tried to follow your instructions but fail to get the menu (ESP32 LittleFS Data Upload) in Arduino (1.8.13). I've listed below what I've done.

Somewhat unrelated, but I did manage to run your LittleFS_test.ino anyway using the ESP32 core built in default partition scheme (4MB with spiffs 1.2MB APP / 1.5MB SPIFFS). I was surprised as I thought that I need to partion the flash first? My read/write where in the same region (422ms read / 17,516 ms write) as the one mentioned on the LittleFS_esp32 GitHub readme.

1) I've placed the mklittlefs OSX executable in: '/Users/claeshallberg/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/tools'

This is were espota.py and esptool.py for the ESP32 core resides.

2) My Arduino folder structure where I placed the "esp32littlefs.jar" is somewhat different (/Users/claeshallberg/Documents/Arduino/Arduino-master/tools/ESP32LittleFS/tool/)

Not sure how to troubleshoot this and my knowledge is too limited for compiling the other 'mkfatsf' for OSX that you recommend.

I realise my knowledge gap is most likely the cause so don't invest too much time on this. Thanks again!

lorol commented 4 years ago

I never worked with OSX, as per info I have, try to put the jar exactly here: ~/Documents/Arduino/tools/ESP32LittleFS/tool/esp32littlefs.jar Or if doesn't work, check the Sketchbook location of Arduino IDE File Preferences. The file should be on the path of this Sketchbook location then sub folders /tools/ESP32LittleFS/tool/esp32littlefs.jar

The test sketch will create FS if you don’t pre-flash /data by a tool. It’s normal to work without FS image flashed.

Zzo911 commented 1 year ago

Is it the same procedure for IDE 2.0? I cannot find it in the IDE menu.