Is there a way to use Arduino CLI or a stand-alone CLI program to upload LittleFS data to Flash (e.g. on an ESP8266)?
Thanks.
pert
July 9, 2020, 10:21pm
2
time4tux:
Is there a way to use Arduino CLI
No. The process of uploading LittleFS data to an ESP8266 via the Arduino IDE is done via a plugin. Arduino CLI doesn't have any support for the Arduino IDE's plugins.
time4tux:
or a stand-alone CLI program to upload LittleFS data to Flash (e.g. on an ESP8266)?
Certainly. There are actually two processes that need to happen, each with its own command line tool:
Unfortunately, you can't see the commands the IDE plugin runs when you use it, but you can find it in the source code:
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Tool to put the contents of the sketch's "data" subfolder
into a LittleFS partition image and upload it to an ESP8266 MCU
Original copyright (c) 2015 Hristo Gochkov (ficeto at ficeto dot com)
Modified from SPIFFS to LittleFS by Earle F. Philhower, III
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
This file has been truncated. show original