-
Notifications
You must be signed in to change notification settings - Fork 252
Description
My esp32 is reporting free file space of only 52961 bytes!
{"fileSystemInfo":{"total":52961,"used":45180,"maxPathLength":31},"fileListing":[{"filename":"test.jpg","size":44516}]}
This doesn't seem right to me! Test.jpg was a whole lot bigger when uploaded (that caused a write failure error, from moddable file module, which seems to confirm the reported size is accurate...)
I'll just ask the question, does that seem right to you?
esptool.py reports a 4M flash, by the way.
I appreciate this may not even come under the realm of the Moddable project and it could be a separate hardware.config problem, but any clue as to where to look to solve it would be much appreciated. I'm not quite sure where to start just now...
heres the output from mmconfig, by the way, uploaded file sizes look reasonable to me....
xsc main.xsb
xsl modules
cc mc.xs.c (slots in flash)
/tmp/ccic895U.s: Assembler messages:
/tmp/ccic895U.s:41344: Warning: setting incorrect section attributes for .rodata.mod.1
ld xs_esp.bin
CC /home/parallels/Projects/moddable/build/tmp/esp32/debug/idf/main/main.o
AR /home/parallels/Projects/moddable/build/tmp/esp32/debug/idf/main/libmain.a
LD /home/parallels/Projects/moddable/build/tmp/esp32/debug/idf/xs_esp32.elf
esptool.py v2.6
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000 )...
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting........_
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: cc:50:e3:af:ba:0c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 13616 bytes to 8910...
Wrote 13616 bytes (8910 compressed) at 0x00001000 in 0.1 seconds (effective 1043.3 kbit/s)...
Hash of data verified.
Compressed 846080 bytes to 522145...
Wrote 846080 bytes (522145 compressed) at 0x00010000 in 7.3 seconds (effective 931.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 120...
Wrote 3072 bytes (120 compressed) at 0x00008000 in 0.0 seconds (effective 3850.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...