firebeetle-ep32和mklittlefs参数

发布于 2025-01-22 20:11:11 字数 804 浏览 5 评论 0 原文

我正在使用 ESP32板板文件寻找SPIFFS参数代码>块大小,页面大小 spiffs start and spiffs end end 当我关注此 tutorial”> tutorial ,但是对于ESP32,即

mklittlefs --size <image size> --page <page size> --block <block size> -d 5 --create ./data spiffs.bin

ESP32板文件不包含该文件信息。是否可以使用Mkspiffs?还是Firebeetle-Esp32有合理的默认值?

I'm using a DFRobot FireBeetle-ESP32 with spiffs and I downloaded the esp32 boards file looking for the spiffs parameters block size, page size, spiffs start and spiffs end as I'm following this tutorial but for the ESP32, i.e.

mklittlefs --size <image size> --page <page size> --block <block size> -d 5 --create ./data spiffs.bin

The ESP32 boards file doesn't contain that information. Is there anywhere it's available in order to use mkspiffs? Or are there reasonable defaults for the FireBeetle-ESP32?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

熟人话多 2025-01-29 20:11:11

我设法通过安装 arduino-esp32fs-plugin 来获取参数。

首先需要找到放置插件的位置。这是在Raspberry Pi 4上。

Arduino IDE -> File -> Preferences -> Sketchbook location

它是/home/pi/pi/arduino

下载插件并放入:

/home/pi/Arduino/tools/ESP32FS/tool/esp32fs.jar

重新启动arduino iDE,加载 littlefs_test 示例示例并将其保存到合适的位置,例如:

/home/pi/dev/esp32/LITTLEFS_test/LITTLEFS_test.ino
/home/pi/dev/esp32/LITTLEFS_test/partitions.csv

创建一个数据目录和文件,并在Sketch Directory中使用某些内容创建一个内容:

/home/pi/dev/esp32/LITTLEFS_test/data/test.txt

然后在Arduino IDE中:

Tools -> ESP32 Sketch Data Upload

选择 Littlefs ok

然后,所需的数据在Arduino IDE的输出窗口中:

[LittleFS] data   : /home/pi/dev/esp32/LittleFS_test/data
[LittleFS] offset : 0
[LittleFS] start  : 2162688
[LittleFS] size   : 1856
[LittleFS] page   : 256
[LittleFS] block  : 4096

我在插件中添加了一些调试输出,将其编译并将其放入Arduino IDE中以提出命令行版本。请注意, size arduino IDE输出窗口中的参数由 1024 划分,因此需要将其乘以 1024 for commandline版本:

 /home/pi/.arduino15/packages/esp8266/tools/mklittlefs/3.0.4-gcc10.3-1757bed/mklittlefs -c ./data2 -p 256 -b 4096 -s 1507328 spiffs.bin

安装。 Esptool:

pip install esptool

并在插件中添加更多的调试输出为我提供了上传LittleFs Image的命令行:

python -m esptool --chip esp32 --baud 921600 --port /dev/ttyUSB0 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 2686976 spiffs.bin

I managed to get the parameters by installing the arduino-esp32fs-plugin.

First need to find where to put the plugin. This is on a Raspberry Pi 4.

Arduino IDE -> File -> Preferences -> Sketchbook location

which is /home/pi/Arduino

Download the plugin and put it in:

/home/pi/Arduino/tools/ESP32FS/tool/esp32fs.jar

restart the Arduino IDE, load the LITTLEFS_test example and save it to a suitable location, e.g.:

/home/pi/dev/esp32/LITTLEFS_test/LITTLEFS_test.ino
/home/pi/dev/esp32/LITTLEFS_test/partitions.csv

then create a data directory and file with some content in the sketch directory:

/home/pi/dev/esp32/LITTLEFS_test/data/test.txt

then in the Arduino IDE:

Tools -> ESP32 Sketch Data Upload

choose LittleFS and OK.

The required data is then in the output window of the Arduino IDE:

[LittleFS] data   : /home/pi/dev/esp32/LittleFS_test/data
[LittleFS] offset : 0
[LittleFS] start  : 2162688
[LittleFS] size   : 1856
[LittleFS] page   : 256
[LittleFS] block  : 4096

I added some debug output to the plugin, compiled it and put it in the Arduino IDE to come up with a commandline version. Note that the size parameter in the Arduino IDE output window is divided by 1024, so need to multiply it by 1024 for the commandline version:

 /home/pi/.arduino15/packages/esp8266/tools/mklittlefs/3.0.4-gcc10.3-1757bed/mklittlefs -c ./data2 -p 256 -b 4096 -s 1507328 spiffs.bin

installing esptool:

pip install esptool

and adding more debug output to the plugin gave me the commandline for uploading the littlefs image:

python -m esptool --chip esp32 --baud 921600 --port /dev/ttyUSB0 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 2686976 spiffs.bin
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文