I just got two of these: ESP32-DevKitC-32UE Espressif Systems | Mouser Europe
But I can't figure out which of the MANY ESP32 boards to select in Board Manager. I've got code running, using the "DOIT ESP32 DEVKIT V1". But, that selection does not have the SPIFFS partition I need. I need to use a configuration with a 1.2MB Code partition, and 1.5MB SPIFFS partition. I tried editing boards.txt to add the partition information, and the option show up properly in the Tools menu, but when I initialize the SPIFFS partition then try to read it in the code, it tells me there are no files there, so I suspect the partition addresses are wrong.
Anyone know a configuration that will work with this board, AND give me the SPIFFs option I need?
Oi! Cool that's a board made by ESPRESSIF. I'd just select "ESP32 DEV Model" from the boards list.
The default or 2nd down from the list should meet your listed wants.
That look like the standard ESP32 Dev module and there is a board of that name available in the IDE that gives multiple options for memory partitioning
Yeah. First thing I tried. No joy. Code does not even run. It throws constant illegal instruction faults. Using the "DOIT ESP32 DEVKIT V1" option code at least appears to run correctly, but I can't get SPIFFS to work. I have no idea if the problem is that SPIFFS is looking in the wrong place, or the uploader is writing it to the wrong place. I suppose my next step might be to write code to initialize the SPIFFS partition and write a few simple text files to it, and see if that works.
Any idea WHERE the IDEA gets the information needed to determine the partition addresses? It needs this both for the SPIFFS run-time code, but also for mkspiffs and the uploader.
Post the problem code here and I will try it on a couple of different ESP32 boards as long as too many libraries are not involved or maybe even if they are
The board definitions are in C:\Users\Bob2\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\boards.txt
With over 3000 posts on this site one would think that one would not describe a problem with code as "it does not run."
I've looked at the picture of your board. Your board is made by Espressiff, the same people who make the boards MCU. I would think that ESPRESSIF would stick very closely to their API. This alone already had me thinking the issue is not the board but software. Now you express... Yea, letting little bits of info out about your issue instead of full disclosure... Anyways you express you got code issues.
Are you getting Guru Meditation errors?
Core memory dumps?
WDT errors?
Installed the ESP Exception Decoder, put the exception into the decoder, posted the decoded error message, posted the defective code, and the other things someone with over 3K messages on this board would demand of others?
UKHeliBob:
Post the problem code here and I will try it on a couple of different ESP32 boards as long as too many libraries are not involved or maybe even if they are
The board definitions are in C:\Users\Bob2\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\boards.txt
Thanks but there is no "problem code" to post. The code worked fine on 8266, before making the really minimal changes required to make it compile for ESP32. It compiles without error, and seems to work fine, until it gets to where it needs to read its configuration files from SPIFFS, at which point it finds there ARE no files present. I use the ESP32 uploader to put the files into SPIFFS, and the uploader gets no errors.
I believe the board configuration I'm using does not match the hardware, and the code and uploader are expecting the SPIFFS to be at two different addresses, or something similar.
I am going to try initializing and writing the SPIFFS in code, and extract the address, to see how that matches up with what the uploader reports.
Idahowalker:
Are you getting Guru Meditation errors?
Core memory dumps?
WDT errors?
Installed the ESP Exception Decoder, put the exception into the decoder, posted the decoded error message, posted the defective code, and the other things someone with over 3K messages on this board would demand of others?
When I select ES32 Dev Module, I get the below, repeating about once per second ad nauseum.
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
The exact same code, compiled for "DOIT ESP32 DEVKIT V1" runs perfectly, until it attempts to read SPIFFS, at which point it seems to think the SPIFFS partition has no files in it.
Oops! Stupid typo! The SPIFFS.begin() call got accidentally #if'd out. This code is heavily #if'dm as it has to build for several different platforms. SPIFFS is now working fine!
Thanks!