ESP32_Explorer icon indicating copy to clipboard operation
ESP32_Explorer copied to clipboard

make flash fatfs not working

Open snahmad opened this issue 6 years ago • 5 comments

make flash && make flashfatfs are not working

make flashfatfs /c/Work/Actisense/Esp32_Explorer/components/fatfs_image/Makefile.projbuild:13: warning: undefined variable 'CONFIG_FATFS_SIZE' /c/Work/Actisense/Esp32_Explorer/components/fatfs_image/Makefile.projbuild:14: warning: undefined variable 'CONFIG_FATFS_BASE_ADDR' Making fatfs image ... python /c/Work/LibDev/esp32/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port COM174 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect PARSE ERROR: Argument: -s (--size) Couldn't read argument value from string '/c/Work/Actisense/Esp32_Explorer/build/fatfs_image.img'

Brief USAGE: /c/Work/Actisense/Esp32_Explorer/components/mkfatfs/../mkfatfs/src/mkfat fs {-c <pack_dir>|-u <dest_dir>|-l |-i} [-d <0-5>] [-s ] [--] [--version] [-h] <image_file>

For complete USAGE and HELP type: /c/Work/Actisense/Esp32_Explorer/components/mkfatfs/../mkfatfs/src/mkfatfs --help

make: *** [/c/Work/Actisense/Esp32_Explorer/components/fatfs_image/Makefile.projbuild:13: flashfatfs] Error 1

What ESP32 Explorer project expect?

Does it expect these sub folders?

C:\Work\Actisense\Esp32_Explorer\components\fatfs_image C:\Work\Actisense\Esp32_Explorer\components\mkfatfs

snahmad avatar Jun 01 '18 16:06 snahmad

Can some one answer it how to upload web files into fatfs using make?

I am sure some one must have done it.

snahmad avatar Jun 03 '18 10:06 snahmad

Have you seen this link?

https://www.esp32.com/viewtopic.php?t=3095

Maybe it will help?

nkolban avatar Jun 03 '18 14:06 nkolban

yes tried out.

It is different project.

make copyfatfs works make flashfatfs works.

I need to do first make flash ESP32 Explore project. then i need to do upload fatfs.

I think make flashfatfs is overriding ESP32 Explorer .bin image.

I did not try out make copyfatfs

snahmad avatar Jun 03 '18 15:06 snahmad

Still not working for /spiflash stroage.

make flashfatfs is part of project : https://github.com/jkearins/ESP32_mkfatfs

https://github.com/nkolban/ESP32_Explorer is separate project.

After make flash ESP32_Explorer .bin. I tried both make flashfatfs and make copyfatfs from project:https://github.com/jkearins/ESP32_mkfatfs

It is overriding my ESP32 Explorer image in flash. both uses now same partition.

I managed to make it work with SD card. ideally wants to run this ESP32_Explorer with /spiflash.

snahmad avatar Jun 04 '18 10:06 snahmad

Instead of building mkfatfs try this with your esp32: http://esp32.chege.eu.org/#192.168.1.99

192.168.1.99 is IP of your esp32. Ive uploaded it and serve from my home server because its easier to change website files(no need to rebuild and flash fatfs partition) also its faster to serve files from big server.

chegewara avatar Jun 10 '18 04:06 chegewara