Closed derek-denman closed 5 years ago
I've changed this line to .format_if_mount_failed = true
However, it cannot read the files:
W (4117) SPIFFS: mount failed, -10025. formatting... E (9107) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (9107) task_wdt: - IDLE0 (CPU 0) E (9107) task_wdt: Tasks currently running: E (9107) task_wdt: CPU 0: main E (9107) task_wdt: CPU 1: IDLE1 E (14127) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (14127) task_wdt: - IDLE0 (CPU 0) E (14127) task_wdt: Tasks currently running: E (14127) task_wdt: CPU 0: main E (14127) task_wdt: CPU 1: IDLE1 I (17927) example: Partition size: total: 1920401, used: 0 I (17927) esp-rest: Starting HTTP Server E (47787) esp-rest: Failed to open file : /www/index.html W (47787) httpd_txrx: httpd_resp_send_err: 500 Internal Server Error - Failed to read existing file W (47797) httpd_uri: httpd_uri: uri handler execution failed
@derek-whisper @fernandosalomao Thanks for reporting this. The issue is that SPIFFS filesystem image wasn't flashed to the board when running make flash
. The fix is in review and will be merged soon. For now, you can apply the following change locally:
From 75f2948e02a498711b7080b094795ae2956ce866 Mon Sep 17 00:00:00 2001
From: Ivan Grokhotkov <ivan@espressif.com>
Date: Mon, 7 Oct 2019 13:28:38 +0200
Subject: [PATCH] examples/restful_server: fix Makefile syntax for flashing
SPIFFS
Closes https://github.com/espressif/esp-idf/issues/4050
---
examples/protocols/http_server/restful_server/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/protocols/http_server/restful_server/Makefile b/examples/protocols/http_server/restful_server/Makefile
index c07edffd2..ba534aed1 100644
--- a/examples/protocols/http_server/restful_server/Makefile
+++ b/examples/protocols/http_server/restful_server/Makefile
@@ -7,7 +7,8 @@ include $(IDF_PATH)/make/project.mk
ifdef CONFIG_EXAMPLE_WEB_DEPLOY_SF
WEB_SRC_DIR = $(shell pwd)/front/web-demo
ifneq ($(wildcard $(WEB_SRC_DIR)/dist/.*),)
-$(eval $(call spiffs_create_partition_image,www,$(WEB_SRC_DIR)/dist,FLASH_IN_PROJECT))
+SPIFFS_IMAGE_FLASH_IN_PROJECT := 1
+$(eval $(call spiffs_create_partition_image,www,$(WEB_SRC_DIR)/dist))
else
$(error $(WEB_SRC_DIR)/dist doesn't exist. Please run 'npm run build' in $(WEB_SRC_DIR))
endif
--
2.21.0 (Apple Git-122)
Check that when running make flash
, you see that something is getting flashed to address 0x00110000
, as in the example below:
Compressed 26080 bytes to 15615...
Wrote 26080 bytes (15615 compressed) at 0x00001000 in 0.2 seconds (effective 1085.9 kbit/s)...
Hash of data verified.
Compressed 733600 bytes to 459806...
Wrote 733600 bytes (459806 compressed) at 0x00010000 in 7.2 seconds (effective 815.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 116...
Wrote 3072 bytes (116 compressed) at 0x00008000 in 0.0 seconds (effective 1530.8 kbit/s)...
Hash of data verified.
Compressed 2097152 bytes to 529932...
Wrote 2097152 bytes (529932 compressed) at 0x00110000 in 15.3 seconds (effective 1097.0 kbit/s)...
Environment
Problem Description
Expected Behavior
It is expected the the program works as described in the example readme
Actual Behavior
After the ESP32 connects to the WiFi network I get the following error
Steps to reproduce
make menuconfig
Website deploy mode
toDeploy website to SPI Nor Flash
Example Connection Configuration
to use WiFi networkmake erase_flash flash monitor -j4
Code to reproduce this issue
Example code has not been modified
Debug Logs
Other items if possible
SDKCONFIG