-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIFFS: mount failed in restful_server example (IDFGH-1841) #4050
Comments
I've changed this line to .format_if_mount_failed = true However, it cannot read the files: W (4117) SPIFFS: mount failed, -10025. formatting... |
@derek-whisper @fernandosalomao Thanks for reporting this. The issue is that SPIFFS filesystem image wasn't flashed to the board when running 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
|
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
The text was updated successfully, but these errors were encountered: