All Projects → jkearins → Esp32_mkfatfs

jkearins / Esp32_mkfatfs

Licence: apache-2.0
Prepare FAT image on host and flash to ESP32.

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Esp32 mkfatfs

docker-esp-sdk
Executable docker image to easily compile and flash for the ESP32 and ESP8266
Stars: ✭ 30 (+0%)
Mutual labels:  flash, esp32
n2d
An easy to use ESP8266 flash tool with built-in support for the Deauther Project.
Stars: ✭ 136 (+353.33%)
Mutual labels:  flash, esp32
Platform Espressif32
Espressif 32: development platform for PlatformIO
Stars: ✭ 333 (+1010%)
Mutual labels:  esp32, flash
Korge
KorGE Game Engine. Multiplatform Kotlin Game Engine
Stars: ✭ 780 (+2500%)
Mutual labels:  flash
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+2633.33%)
Mutual labels:  esp32
Flash
Command line script to flash SD card images of any kind
Stars: ✭ 926 (+2986.67%)
Mutual labels:  flash
Alivepdf
[Official AlivePDF] - AlivePDF is a client side AS3 PDF generation library for Adobe Flash, Flex and AIR
Stars: ✭ 29 (-3.33%)
Mutual labels:  flash
Sonoff Homekit
Make your Sonoff Switch compatible with Apple Homekit! 🎉
Stars: ✭ 722 (+2306.67%)
Mutual labels:  esp32
Esp Rfid
ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS
Stars: ✭ 881 (+2836.67%)
Mutual labels:  flash
S1ui gpu
Stars: ✭ 16 (-46.67%)
Mutual labels:  flash
Grbl esp32
A port of Grbl CNC Firmware for ESP32
Stars: ✭ 836 (+2686.67%)
Mutual labels:  esp32
Nodemcu Firmware
Lua based interactive firmware for ESP8266, ESP8285 and ESP32
Stars: ✭ 6,884 (+22846.67%)
Mutual labels:  esp32
Watchio
A programmable smart watch based on esp32-pico-d4
Stars: ✭ 25 (-16.67%)
Mutual labels:  esp32
Arduino Esp32
Arduino core for the ESP32
Stars: ✭ 7,741 (+25703.33%)
Mutual labels:  esp32
Esp32 esp8266 wifi speaker oled
A MP3 streaming WiFi speaker for ESP8266 & ESP32 chips
Stars: ✭ 20 (-33.33%)
Mutual labels:  esp32
Freshplayerplugin
ppapi2npapi compatibility layer
Stars: ✭ 744 (+2380%)
Mutual labels:  flash
Esp32 Paxcounter
Wifi & BLE driven passenger flow metering with cheap ESP32 boards
Stars: ✭ 844 (+2713.33%)
Mutual labels:  esp32
Atomvm
Tiny Erlang VM
Stars: ✭ 834 (+2680%)
Mutual labels:  esp32
Espflix
A free video streaming service that runs on a ESP32
Stars: ✭ 828 (+2660%)
Mutual labels:  esp32
Esp32 ble wedo
A library to control LEGO wedo 2.0 with the ESP32 through Bluetooth low energy
Stars: ✭ 16 (-46.67%)
Mutual labels:  esp32

Example of using FAT with ESP32


Features

  • prepare of FAT image
  • flash FAT image to ESP32
  • example of FAT functions

How to build

Configure your esp32 build environment as for other esp-idf examples

Clone the repository

git clone https://github.com/jkearins/ESP32_mkfatfs.git

Execute menuconfig and configure your Serial flash config and other settings. Included sdkconfig.defaults sets some defaults to be used.

make menuconfig

Make and flash the example.

make all && make flash && make flashfatfs


Prepare FAT image

FAT image can be prepared on host and flashed to ESP32.

Tested and works under Windows, Linux and Mac OS.

Copy the files to be included on FAT into components/fatfs_image/image/ directory. Subdirectories can also be added.

Execute:

make makefatfs

to create FAT image in build directory without flashing to ESP32

Execute:

make flashfatfs

to create FAT image in build directory and flash it to ESP32

Execute:

make copyfatfs

to flash previously prepared in build directory FAT image to ESP32


Example functions

  • registers FAT as VFS file system; if the fs is not mounted the system will halt
  • lists files in root directory

Example output:

I (399) cpu_start: Pro cpu up.
I (399) cpu_start: Starting app cpu, entry point is 0x40080e98
I (0) cpu_start: App cpu up.
I (402) heap_init: Initializing. RAM available for dynamic allocation:
I (417) heap_init: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (433) heap_init: At 3FFB3E60 len 0002C1A0 (176 KiB): DRAM
I (449) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (466) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (483) heap_init: At 40087D04 len 000182FC (96 KiB): IRAM
I (499) cpu_start: Pro cpu start user code
I (582) cpu_start: Starting scheduler on PRO CPU.
I (192) cpu_start: Starting scheduler on APP CPU.
I (192) FATFS: Mounting FAT partition...
I (195) FATFS: Done.
I (196) FATFS: ============= Begin of root contents
I (199) FATFS: 	ESP32Explorer.html              	   8332 bytes
I (202) FATFS: 	ESP32Explorer.js                	  11434 bytes
I (208) FATFS: 	<images>
I (210) FATFS: 	<jquery>
I (212) FATFS: 	<jQuery-File-Upload-9.18.0>
I (216) FATFS: 	<jqueryui>
I (218) FATFS: 	<jstree>
I (220) FATFS: ============= End of root contents


Thanks

The tool is inspired by mkspiffs tool created by loboris and introduced at ESP32 Forum topic. To manage FATFS objects I used Kolban's cpp_utils from esp32-snippets project. Files for sample flash image have been gotten from another Kolban's project ESP32_Explorer introduced at ESP32 Forum topic.


Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].