Skip to content

OSX instructions #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ClaesClaes opened this issue Sep 25, 2020 · 4 comments
Open

OSX instructions #1

ClaesClaes opened this issue Sep 25, 2020 · 4 comments

Comments

@ClaesClaes
Copy link

ClaesClaes commented Sep 25, 2020

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
Copy link
Owner

lorol commented Sep 25, 2020

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
Copy link
Author

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.

  1. 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
Copy link
Owner

lorol commented Sep 25, 2020

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
Copy link

Zzo911 commented Nov 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants