为何SPIFFSGEN例程不能上载文件至storage分区

某某ESP32友
Posts: 25
Joined: Fri May 07, 2021 4:10 pm

为何SPIFFSGEN例程不能上载文件至storage分区

Postby 某某ESP32友 » Fri May 07, 2021 4:19 pm

例程编译烧录正常,但是并没有将spiffs_image文件夹中的内容打包成镜像烧录到storage专区,原来在IDF4.0,python3.5环境下是可以的,最近WIN7下升级到4.2+3.8.9版本,发现例程上载镜像功能失效了,到现在也没找到原因。

I (325) example: Initializing SPIFFS
I (425) example: Partition size: total: 896321, used: 502
I (435) example: Reading hello.txt
E (475) example: Failed to open hello.txt
I (475) example: Computing alice.txt MD5 hash
E (515) example: Failed to open alice.txt
I (515) example: SPIFFS unmounted

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby ESP_Gargamel » Sat May 08, 2021 1:51 am

直接使用 spiffsgen 例程测试,idf v4.2.1。

1、你看下编译结束时的信息:
cd /home/xxxx/git/esp32-sdk/esp-idf-v4.2/components/esp...it/esp32-sdk/esp-idf-v4.2/components/esptool_py/run_esptool.cmake
esptool.py --chip esp32 -p /dev/ttyUSB0 -b 2000000 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 spiffsgen.bin 0x110000 storage.bin
是否有这个 storage?
2、烧录时是否有往这个地址烧?
3、你再将从 boot 开始的 log 提供一下
4、试着 erase 整片 flash,再重新烧录

某某ESP32友
Posts: 25
Joined: Fri May 07, 2021 4:10 pm

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby 某某ESP32友 » Sat May 08, 2021 9:45 am

> Executing task: d:\Users\Administrator\.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe d:\Users\Administrator\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM4 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin 0x10000 spiffsgen.bin 0x8000 partition_table/partition-table.bin <

没有0x110000 storage.bin,我也很疑惑这一点,另外全片擦除后,烧录spiffsgen例程无法挂载和格式化文件系统。但是使用SPIFF例程S就能成功挂载,挂载失败也可以自动格式化storage分区。

I (31) boot: ESP-IDF v4.2-dirty 2nd stage bootloader
I (31) boot: compile time 22:07:04
I (31) boot: chip revision: 1
I (34) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (41) boot.esp32: SPI Speed : 40MHz
I (46) boot.esp32: SPI Mode : DIO
I (50) boot.esp32: SPI Flash Size : 4MB
I (55) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (64) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (86) boot: 2 factory factory app 00 00 00010000 00100000
I (93) boot: 3 storage Unknown data 01 82 00110000 000f0000
I (101) boot: End of partition table
I (105) boot_comm: chip revision: 1, min. application chip revision: 0
I (140) esp_image: segment 3: paddr=0x000186bc vaddr=0x40080404 size=0x0795c ( 31068) load
I (162) esp_image: segment 4: paddr=0x00020020 vaddr=0x400d0020 size=0x192cc (103116) map
0x400d0020: _stext at ??:?

I (201) esp_image: segment 5: paddr=0x000392f4 vaddr=0x40087d60 size=0x026dc ( 9948) load
0x40087d60: block_data_size at D:/Users/Administrator/esp/esp-idf/components/heap/multi_heap.c:162
(inlined by) multi_heap_realloc_impl at D:/Users/Administrator/esp/esp-idf/components/heap/multi_heap.c:637

I (212) boot: Loaded app from partition at offset 0x10000
I (212) boot: Disabling RNG early entropy source...
I (213) cpu_start: Pro cpu up.
I (217) cpu_start: Application information:
I (221) cpu_start: Project name: spiffsgen
I (227) cpu_start: App version: v4.2-dirty
I (232) cpu_start: Compile time: May 8 2021 17:16:35
I (238) cpu_start: ELF file SHA256: a18e4983f80a8d04...
I (244) cpu_start: ESP-IDF: v4.2-dirty
I (249) cpu_start: Starting app cpu, entry point is 0x400815c8
0x400815c8: call_start_cpu1 at D:/Users/Administrator/esp/esp-idf/components/esp32/cpu_start.c:287

I (0) cpu_start: App cpu up.
I (259) heap_init: Initializing. RAM available for dynamic allocation:
I (266) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (272) heap_init: At 3FFB28B0 len 0002D750 (181 KiB): DRAM
I (279) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (285) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (291) heap_init: At 4008A43C len 00015BC4 (86 KiB): IRAM
I (298) cpu_start: Pro cpu start user code
I (316) spi_flash: detected chip: generic
I (316) spi_flash: flash io: dio
I (317) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (325) example: Initializing SPIFFS
I (425) example: Partition size: total: 896321, used: 502
I (435) example: Reading hello.txt
E (475) example: Failed to open hello.txt
I (475) example: Computing alice.txt MD5 hash
E (515) example: Failed to open alice.txt
I (515) example: SPIFFS unmounted

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby ESP_Gargamel » Sat May 08, 2021 10:34 am

1、看你使用的是 v4.2,但是状态是 dirty,所以你改了什么?能否 git diff 看一下?
2、请确保 examples/storage/spiffsgen/main/CMakeLists.txt 里有 spiffs_create_partition_image(storage ../spiffs_image FLASH_IN_PROJECT)
3、build 目录下有无 storage.bin?

某某ESP32友
Posts: 25
Joined: Fri May 07, 2021 4:10 pm

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby 某某ESP32友 » Sat May 08, 2021 2:26 pm

1.没修改任何东西,升级了4.2.1,重新下载安装了esp idf tools,输出结果仍然是一样,git diff 结果
PS D:\Users\Administrator\esp\esp-idf\examples\storage\spiffsgen> git diff
warning: LF will be replaced by CRLF in components/app_update/otatool.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/efuse/efuse_table_gen.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/efuse/test_efuse_host/efuse_tests.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/esp_wifi/test_md5/test_md5.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/espcoredump/espcoredump.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/espcoredump/test/test_espcoredump.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/espcoredump/test/test_espcoredump.sh.
The file will have its original line endings in your working directory
diff --git a/components/app_update/otatool.py b/components/app_update/otatool.py
old mode 100755
new mode 100644
diff --git a/components/asio/asio b/components/asio/asio
--- a/components/asio/asio
+++ b/components/asio/asio
@@ -1 +1 @@
-Subproject commit 3b66e5b051381fb70de9c2791df70a06181c64e3
+Subproject commit 3b66e5b051381fb70de9c2791df70a06181c64e3-dirty
diff --git a/components/bootloader/subproject/components/micro-ecc/micro-ecc b/components/bootloader/subproject/components/micro-ecc/micro-ecc
--- a/components/bootloader/subproject/components/micro-ecc/micro-ecc
+++ b/components/bootloader/subproject/components/micro-ecc/micro-ecc
@@ -1 +1 @@
-Subproject commit d037ec89546fad14b5c4d5456c2e23a71e554966
+Subproject commit d037ec89546fad14b5c4d5456c2e23a71e554966-dirty
diff --git a/components/bt/controller/lib b/components/bt/controller/lib
--- a/components/bt/controller/lib
+++ b/components/bt/controller/lib
@@ -1 +1 @@
-Subproject commit c2e961d07cba8e5a08749e1f1d5c6ffe76d4b115
+Subproject commit c2e961d07cba8e5a08749e1f1d5c6ffe76d4b115-dirty
diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble
--- a/components/bt/host/nimble/nimble
+++ b/components/bt/host/nimble/nimble
@@ -1 +1 @@
-Subproject commit ba72e37ac40c13b66ad49c3178c0dbc9588add61
+Subproject commit ba72e37ac40c13b66ad49c3178c0dbc9588add61-dirty
diff --git a/components/cbor/tinycbor b/components/cbor/tinycbor
--- a/components/cbor/tinycbor
+++ b/components/cbor/tinycbor
@@ -1 +1 @@
-Subproject commit d2dd95cb8841d88d5a801e3ef9c328fd6200e7bd
+Subproject commit d2dd95cb8841d88d5a801e3ef9c328fd6200e7bd-dirty
diff --git a/components/coap/libcoap b/components/coap/libcoap
--- a/components/coap/libcoap
+++ b/components/coap/libcoap
@@ -1 +1 @@
-Subproject commit 98954eb30a2e728e172a6cd29430ae5bc999b585
+Subproject commit 98954eb30a2e728e172a6cd29430ae5bc999b585-dirty
diff --git a/components/efuse/efuse_table_gen.py b/components/efuse/efuse_table_gen.py
old mode 100755
new mode 100644
diff --git a/components/efuse/test_efuse_host/efuse_tests.py b/components/efuse/test_efuse_host/efuse_tests.py
old mode 100755
new mode 100644
diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib
--- a/components/esp_wifi/lib
+++ b/components/esp_wifi/lib
@@ -1 +1 @@
-Subproject commit 1c4c5396cab728b3524fc4a21b324307cd972d0c
+Subproject commit 1c4c5396cab728b3524fc4a21b324307cd972d0c-dirty
diff --git a/components/esp_wifi/test_md5/test_md5.sh b/components/esp_wifi/test_md5/test_md5.sh
old mode 100755
new mode 100644
diff --git a/components/espcoredump/espcoredump.py b/components/espcoredump/espcoredump.py
old mode 100755
new mode 100644
diff --git a/components/espcoredump/test/test_espcoredump.py b/components/espcoredump/test/test_espcoredump.py
old mode 100755
new mode 100644
diff --git a/components/espcoredump/test/test_espcoredump.sh b/components/espcoredump/test/test_espcoredump.sh
old mode 100755
new mode 100644
diff --git a/components/esptool_py/esptool b/components/esptool_py/esptool
--- a/components/esptool_py/esptool
+++ b/components/esptool_py/esptool
@@ -1 +1 @@
-Subproject commit 4fa0bd7b0d1f69f5ff22b043adc07c5e562a8931
+Subproject commit 4fa0bd7b0d1f69f5ff22b043adc07c5e562a8931-dirty
diff --git a/components/expat/expat b/components/expat/expat
--- a/components/expat/expat
+++ b/components/expat/expat
@@ -1 +1 @@
-Subproject commit 968b8cc46dbee47b83318d5f31a8e7907199614b
+Subproject commit 968b8cc46dbee47b83318d5f31a8e790warning: LF will be replaced by CRLF in components/heap/test_multi_heap_host/test_all_configs.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/mbedtls/esp_crt_bundle/gen_crt_bundle.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/mbedtls/esp_crt_bundle/test_gen_crt_bundle/test_gen_crt_bundle.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/partition_table/gen_esp32part.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/partition_table/parttool.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/spiffs/spiffsgen.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in components/ulp/esp32ulp_mapgen.py.
The file will have its original line endings in your working directory
7199614b-dirty
diff --git a/components/heap/test_multi_heap_host/test_all_configs.sh b/components/heap/test_multi_heap_host/test_all_configs.sh
old mode 100755
new mode 100644
diff --git a/components/json/cJSON b/components/json/cJSON
--- a/components/json/cJSON
+++ b/components/json/cJSON
@@ -1 +1 @@
-Subproject commit 3c8935676a97c7c97bf006db8312875b4f292f6c
+Subproject commit 3c8935676a97c7c97bf006db8312875b4f292f6c-dirty
diff --git a/components/libsodium/libsodium b/components/libsodium/libsodium
--- a/components/libsodium/libsodium
+++ b/components/libsodium/libsodium
@@ -1 +1 @@
-Subproject commit 70170c28c844a4786e75efc626e1aeebc93caebc
+Subproject commit 70170c28c844a4786e75efc626e1aeebc93caebc-dirty
diff --git a/components/lwip/lwip b/components/lwip/lwip
--- a/components/lwip/lwip
+++ b/components/lwip/lwip
@@ -1 +1 @@
-Subproject commit 7285b846a22ebd02377bd9c67e7f9eaaf842492b
+Subproject commit 7285b846a22ebd02377bd9c67e7f9eaaf842492b-dirty
diff --git a/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py b/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py
old mode 100755
new mode 100644
diff --git a/components/mbedtls/esp_crt_bundle/test_gen_crt_bundle/test_gen_crt_bundle.py b/components/mbedtls/esp_crt_bundle/test_gen_crt_bundle/test_gen_crt_bundle.py
old mode 100755
new mode 100644
diff --git a/components/mbedtls/mbedtls b/components/mbedtls/mbedtls
--- a/components/mbedtls/mbedtls
+++ b/components/mbedtls/mbedtls
@@ -1 +1 @@
-Subproject commit 99c88bb7bd7c2d91c6873abd6e6d5ee04f4f164c
+Subproject commit 99c88bb7bd7c2d91c6873abd6e6d5ee04f4f164c-dirty
diff --git a/components/mqtt/esp-mqtt b/components/mqtt/esp-mqtt
--- a/components/mqtt/esp-mqtt
+++ b/components/mqtt/esp-mqtt
@@ -1 +1 @@
-Subproject commit da850b0add1e71b3659bfac5d797cc834dc3e89b
+Subproject commit da850b0add1e71b3659bfac5d797cc834dc3e89b-dirty
diff --git a/components/nghttp/nghttp2 b/components/nghttp/nghttp2
--- a/components/nghttp/nghttp2
+++ b/components/nghttp/nghttp2
@@ -1 +1 @@
-Subproject commit 3bcc416e13cc790e2fb45fcfe9111d38609c5032
+Subproject commit 3bcc416e13cc790e2fb45fcfe9111d38609c5032-dirty
diff --git a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py
old mode 100755
new mode 100644
diff --git a/components/partition_table/gen_esp32part.py b/components/partition_table/gen_esp32part.py
old mode 100755
new mode 100644
diff --git a/components/partition_table/parttool.py b/components/partition_table/parttool.py
old mode 100755
new mode 100644
diff --git a/components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py b/components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py
old mode 100755
new mode 100644
diff --git a/components/protobuf-c/protobuf-c b/components/protobuf-c/protobuf-c
--- a/components/protobuf-c/protobuf-c
+++ b/components/protobuf-c/protobuf-c
@@ -1 +1 @@
-Subproject commit dac1a65feac4ad72f612aab99f487056fbcf5c1a
+Subproject commit dac1a65feac4ad72f612aab99f487056fbcf5c1a-dirty
diff --git a/components/spiffs/spiffsgen.py b/components/spiffs/spiffsgen.py
old mode 100755
new mode 100644
diff --git a/components/ulp/esp32ulp_mapgen.py b/components/ulp/esp32ulp_mapgen.py
old mode 100755
new mode 100644
diff --git a/components/unity/unity b/components/unity/unity
--- a/components/unity/unity
+++ b/components/unity/unity
@@ -1 +1 @@
-Subproject commit 7d2bf62b7e6afaf38153041a9d53c21aeeca9a25
+Subprojectwarning: LF will be replaced by CRLF in docs/build_docs.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in docs/check_lang_folder_sync.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in docs/idf_extensions/gen_version_specific_includes.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in examples/build_system/cmake/idf_as_lib/build-esp32.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in examples/build_system/cmake/idf_as_lib/build.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in examples/build_system/cmake/idf_as_lib/run-esp32.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in examples/build_system/cmake/idf_as_lib/run.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in examples/storage/parttool/parttool_example.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in examples/system/ota/otatool/otatool_example.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in install.fish.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in install.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/build_apps.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/check_kconfigs.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/check_python_dependencies.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/apply_bot_filter.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/build_examples.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/build_test_apps.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/build_unit_test.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/check-executable.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/check-line-endings.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/check_build_warnings.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/check_deprecated_kconfigs.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/check_examples_cmake_make.sh.
The file will have its original line endings in your working directory
commit 7d2bf62b7e6afaf38153041a9d53c21aeeca9a25-dirty
diff --git a/docs/build_docs.py b/docs/build_docs.py
old mode 100755
new mode 100644
diff --git a/docs/check_lang_folder_sync.sh b/docs/check_lang_folder_sync.sh
old mode 100755
new mode 100644
diff --git a/docs/idf_extensions/gen_version_specific_includes.py b/docs/idf_extensions/gen_version_specific_includes.py
old mode 100755
new mode 100644
diff --git a/examples/build_system/cmake/idf_as_lib/build-esp32.sh b/examples/build_system/cmake/idf_as_lib/build-esp32.sh
old mode 100755
new mode 100644
diff --git a/examples/build_system/cmake/idf_as_lib/build.sh b/examples/build_system/cmake/idf_as_lib/build.sh
old mode 100755
new mode 100644
diff --git a/examples/build_system/cmake/idf_as_lib/run-esp32.sh b/examples/build_system/cmake/idf_as_lib/run-esp32.sh
old mode 100755
new mode 100644
diff --git a/examples/build_system/cmake/idf_as_lib/run.sh b/examples/build_system/cmake/idf_as_lib/run.sh
old mode 100755
new mode 100644
diff --git a/examples/build_system/cmake/import_lib/main/lib/tinyxml2 b/examples/build_system/cmake/import_lib/main/lib/tinyxml2
--- a/examples/build_system/cmake/import_lib/main/lib/tinyxml2
+++ b/examples/build_system/cmake/import_lib/main/lib/tinyxml2
@@ -1 +1 @@
-Subproject commit 7e8e249990ec491ec15990cf95b6d871a66cf64a
+Subproject commit 7e8e249990ec491ec15990cf95b6d871a66cf64a-dirty
diff --git a/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib b/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib
--- a/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib
+++ b/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib
@@ -1 +1 @@
-Subproject commit c3d3a69021cfec3236ca2c0b63be4048ec6643a4
+Subproject commit c3d3a69021cfec3236ca2c0b63be4048ec6643a4-dirty
diff --git a/examples/storage/parttool/parttool_example.py b/examples/storage/parttool/parttool_example.py
old mode 100755
new mode 100644
diff --git a/examples/system/ota/otatool/otatool_example.py b/examples/system/ota/otatool/otatool_example.py
old mode 100755
new mode 100644
diff --git a/install.fish b/install.fish
old mode 100755
new mode 100644
diff --git a/install.sh b/install.sh
old mode 100755
new mode 100644
diff --git a/tools/build_apps.py b/tools/build_apps.py
old mode 100755
new mode 100644
diff --git a/tools/check_kconfigs.py b/tools/check_kconfigs.py
old mode 100755
new mode 100644
diff --git a/tools/check_python_dependencies.py b/tools/check_python_dependencies.py
old mode 100755
new mode 100644
diff --git a/tools/ci/apply_bot_filter.py b/tools/ci/apply_bot_filter.py
old mode 100755
new mode 100644
diff --git a/tools/ci/build_examples.sh b/tools/ci/build_examples.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/build_test_apps.sh b/tools/ci/build_test_apps.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/build_unit_test.sh b/tools/ci/build_unit_test.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/check-executable.sh b/tools/ci/check-executable.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/check-line-endings.sh b/tools/ci/check-line-endings.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/check_build_warnings.py b/tools/ci/check_build_warnings.py
old mode 100755
new mode 100644
diff --git a/tools/ci/check_deprecated_kconfigs.py b/tools/ci/check_deprecated_kconfigs.py
old mode 100755
new mode 100644
diff --git a/tools/ci/check_examples_cmake_make.sh b/tools/ci/check_exwarning: LF will be replaced by CRLF in tools/ci/check_examples_rom_header.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/check_idf_version.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/check_ut_cmake_make.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/checkout_project_ref.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/deploy_docs.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/envsubst.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/fix_empty_prototypes.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/get-full-sources.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/get_supported_examples.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/mirror-submodule-update.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/multirun_with_pyenv.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/push_to_github.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/retry_failed.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/test_build_system.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/test_build_system_cmake.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ci/test_configure_ci_environment.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/cmake/convert_to_cmake.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/cmake/run_cmake_lint.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/docker/entrypoint.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/docker/hooks/build.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/esp_app_trace/logtrace_proc.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/esp_app_trace/sysviewtrace_proc.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/esp_app_trace/test/logtrace/test.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/esp_app_trace/test/sysview/test.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/find_apps.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/format.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/gen_esp_err_to_name.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/idf.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/idf_monitor.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/idf_size.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/idf_tools.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig/check.sh.
The file will have its original line endings in your working directory
amples_cmake_make.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/check_examples_rom_header.sh b/tools/ci/check_examples_rom_header.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/check_idf_version.sh b/tools/ci/check_idf_version.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/check_ut_cmake_make.sh b/tools/ci/check_ut_cmake_make.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/checkout_project_ref.py b/tools/ci/checkout_project_ref.py
old mode 100755
new mode 100644
diff --git a/tools/ci/deploy_docs.py b/tools/ci/deploy_docs.py
old mode 100755
new mode 100644
diff --git a/tools/ci/envsubst.py b/tools/ci/envsubst.py
old mode 100755
new mode 100644
diff --git a/tools/ci/fix_empty_prototypes.sh b/tools/ci/fix_empty_prototypes.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/get-full-sources.sh b/tools/ci/get-full-sources.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/get_supported_examples.sh b/tools/ci/get_supported_examples.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/mirror-submodule-update.sh b/tools/ci/mirror-submodule-update.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/multirun_with_pyenv.sh b/tools/ci/multirun_with_pyenv.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/push_to_github.sh b/tools/ci/push_to_github.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/retry_failed.sh b/tools/ci/retry_failed.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/test_build_system.sh b/tools/ci/test_build_system.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/test_build_system_cmake.sh b/tools/ci/test_build_system_cmake.sh
old mode 100755
new mode 100644
diff --git a/tools/ci/test_configure_ci_environment.sh b/tools/ci/test_configure_ci_environment.sh
old mode 100755
new mode 100644
diff --git a/tools/cmake/convert_to_cmake.py b/tools/cmake/convert_to_cmake.py
old mode 100755
new mode 100644
diff --git a/tools/cmake/run_cmake_lint.sh b/tools/cmake/run_cmake_lint.sh
old mode 100755
new mode 100644
diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh
old mode 100755
new mode 100644
diff --git a/tools/docker/hooks/build b/tools/docker/hooks/build
old mode 100755
new mode 100644
diff --git a/tools/esp_app_trace/logtrace_proc.py b/tools/esp_app_trace/logtrace_proc.py
old mode 100755
new mode 100644
diff --git a/tools/esp_app_trace/sysviewtrace_proc.py b/tools/esp_app_trace/sysviewtrace_proc.py
old mode 100755
new mode 100644
diff --git a/tools/esp_app_trace/test/logtrace/test.sh b/tools/esp_app_trace/test/logtrace/test.sh
old mode 100755
new mode 100644
diff --git a/tools/esp_app_trace/test/sysview/test.sh b/tools/esp_app_trace/test/sysview/test.sh
old mode 100755
new mode 100644
diff --git a/tools/find_apps.py b/tools/find_apps.py
old mode 100755
new mode 100644
diff --git a/tools/format.sh b/tools/format.sh
old mode 100755
new mode 100644
diff --git a/tools/gen_esp_err_to_name.py b/tools/gen_esp_err_to_name.py
old mode 100755
new mode 100644
diff --git a/tools/idf.py b/tools/idf.py
old mode 100755
new mode 100644
diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py
old mode 100755
new mode 100644
diff --git a/tools/idf_size.py b/tools/idf_size.py
old mode 100755
new mode 100644
diff --git a/tools/idf_tools.py b/tools/idf_tools.py
old mode 100755
new mode 100644
diff --git a/tools/kconfig/check.sh b/tools/kconfig/check.sh
old mode 100755
arning: LF will be replaced by CRLF in tools/kconfig/lxdialog/check-lxdialog.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig/merge_config.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig/streamline_config.pl.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig_new/confgen.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig_new/confserver.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig_new/test/confgen/test_confgen.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig_new/test/confserver/test_confserver.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/kconfig_new/test/gen_kconfig_doc/test_target_visibility.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ldgen/ldgen.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ldgen/test/test_fragments.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/ldgen/test/test_generation.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/mass_mfg/mfg_gen.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/mkdfu.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/set-submodules-to-github.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/test_check_kconfigs.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/test_idf_monitor/run_test_idf_monitor.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/test_idf_py/test_idf_py.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/test_idf_size/test.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/test_idf_tools/test_idf_tools.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/test_mkdfu/test_mkdfu.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/unit-test-app/tools/get_available_configs.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/unit-test-app/unit_test.py.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/windows/eclipse_make.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/windows/tool_setup/build_installer.sh.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in tools/windows/tool_setup/sign_installer.sh.
The file will have its original line endings in your working directory
[1mnew mode 100644
diff --git a/tools/kconfig/lxdialog/check-lxdialog.sh b/tools/kconfig/lxdialog/check-lxdialog.sh
old mode 100755
new mode 100644
diff --git a/tools/kconfig/merge_config.sh b/tools/kconfig/merge_config.sh
old mode 100755
new mode 100644
diff --git a/tools/kconfig/streamline_config.pl b/tools/kconfig/streamline_config.pl
old mode 100755
new mode 100644
diff --git a/tools/kconfig_new/confgen.py b/tools/kconfig_new/confgen.py
old mode 100755
new mode 100644
diff --git a/tools/kconfig_new/confserver.py b/tools/kconfig_new/confserver.py
old mode 100755
new mode 100644
diff --git a/tools/kconfig_new/test/confgen/test_confgen.py b/tools/kconfig_new/test/confgen/test_confgen.py
old mode 100755
new mode 100644
diff --git a/tools/kconfig_new/test/confserver/test_confserver.py b/tools/kconfig_new/test/confserver/test_confserver.py
old mode 100755
new mode 100644
diff --git a/tools/kconfig_new/test/gen_kconfig_doc/test_target_visibility.py b/tools/kconfig_new/test/gen_kconfig_doc/test_target_visibility.py
old mode 100755
new mode 100644
diff --git a/tools/ldgen/ldgen.py b/tools/ldgen/ldgen.py
old mode 100755
new mode 100644
diff --git a/tools/ldgen/test/test_fragments.py b/tools/ldgen/test/test_fragments.py
old mode 100755
new mode 100644
diff --git a/tools/ldgen/test/test_generation.py b/tools/ldgen/test/test_generation.py
old mode 100755
new mode 100644
diff --git a/tools/mass_mfg/mfg_gen.py b/tools/mass_mfg/mfg_gen.py
old mode 100755
new mode 100644
diff --git a/tools/mkdfu.py b/tools/mkdfu.py
old mode 100755
new mode 100644
diff --git a/tools/set-submodules-to-github.sh b/tools/set-submodules-to-github.sh
old mode 100755
new mode 100644
diff --git a/tools/test_check_kconfigs.py b/tools/test_check_kconfigs.py
old mode 100755
new mode 100644
diff --git a/tools/test_idf_monitor/run_test_idf_monitor.py b/tools/test_idf_monitor/run_test_idf_monitor.py
old mode 100755
new mode 100644
diff --git a/tools/test_idf_py/test_idf_py.py b/tools/test_idf_py/test_idf_py.py
old mode 100755
new mode 100644
diff --git a/tools/test_idf_size/test.sh b/tools/test_idf_size/test.sh
old mode 100755
new mode 100644
diff --git a/tools/test_idf_tools/test_idf_tools.py b/tools/test_idf_tools/test_idf_tools.py
old mode 100755
new mode 100644
diff --git a/tools/test_mkdfu/test_mkdfu.py b/tools/test_mkdfu/test_mkdfu.py
old mode 100755
new mode 100644
diff --git a/tools/unit-test-app/tools/get_available_configs.sh b/tools/unit-test-app/tools/get_available_configs.sh
old mode 100755
new mode 100644
diff --git a/tools/unit-test-app/unit_test.py b/tools/unit-test-app/unit_test.py
old mode 100755
new mode 100644
diff --git a/tools/windows/eclipse_make.sh b/tools/windows/eclipse_make.sh
old mode 100755
new mode 100644
diff --git a/tools/windows/tool_setup/build_installer.sh b/tools/windows/tool_setup/build_installer.sh
old mode 100755
new mode 100644
diff --git a/tools/windows/tool_setup/sign_installer.sh b/tools/windows/tool_setup/sign_installer.sh
old mode 100755
new mode 100644
(END)

2.cmakelists有spiffs_create_partition_image(storage ../spiffs_image FLASH_IN_PROJECT),原来检查过好多遍了
3.build里也有storage.bin

I (29) boot: ESP-IDF v4.2.1-dirty 2nd stage bootloader
I (29) boot: compile time 20:49:09
I (29) boot: chip revision: 1
I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed : 40MHz
I (44) boot.esp32: SPI Mode : DIO
I (49) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (77) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (84) boot: 2 factory factory app 00 00 00010000 00100000
I (92) boot: 3 storage Unknown data 01 82 00110000 000f0000
I (99) boot: End of partition table
I (103) boot_comm: chip revision: 1, min. application chip revision: 0
I (111) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x062fc ( 25340) map
I (129) esp_image: segment 1: paddr=0x00016324 vaddr=0x3ffb0000 size=0x0236c ( 9068) load
I (133) esp_image: segment 2: paddr=0x00018698 vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at D:/Users/Administrator/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (138) esp_image: segment 3: paddr=0x00018aa4 vaddr=0x40080404 size=0x07574 ( 30068) load
I (160) esp_image: segment 4: paddr=0x00020020 vaddr=0x400d0020 size=0x19428 (103464) map
0x400d0020: _stext at ??:?

I (199) esp_image: segment 5: paddr=0x00039450 vaddr=0x40087978 size=0x030d0 ( 12496) load
0x40087978: is_free at D:/Users/Administrator/esp/esp-idf/components/heap/multi_heap.c:138
(inlined by) split_if_necessary at D:/Users/Administrator/esp/esp-idf/components/heap/multi_heap.c:286

I (211) boot: Loaded app from partition at offset 0x10000
I (211) boot: Disabling RNG early entropy source...
I (212) cpu_start: Pro cpu up.
I (215) cpu_start: Application information:
I (220) cpu_start: Project name: spiffsgen
I (225) cpu_start: App version: v4.2.1-dirty
I (231) cpu_start: Compile time: May 8 2021 20:40:30
I (237) cpu_start: ELF file SHA256: a568be1e03456e8e...
I (243) cpu_start: ESP-IDF: v4.2.1-dirty
I (248) cpu_start: Starting app cpu, entry point is 0x40081620
0x40081620: call_start_cpu1 at D:/Users/Administrator/esp/esp-idf/components/esp32/cpu_start.c:287

I (0) cpu_start: App cpu up.
I (258) heap_init: Initializing. RAM available for dynamic allocation:
I (265) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (271) heap_init: At 3FFB2BA8 len 0002D458 (181 KiB): DRAM
I (278) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (284) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (290) heap_init: At 4008AA48 len 000155B8 (85 KiB): IRAM
I (297) cpu_start: Pro cpu start user code
I (315) spi_flash: detected chip: generic
I (315) spi_flash: flash io: dio
I (316) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (324) example: Initializing SPIFFS
I (424) example: Partition size: total: 896321, used: 502
I (424) example: Reading hello.txt
E (474) example: Failed to open hello.txt
I (474) example: Computing alice.txt MD5 hash
E (514) example: Failed to open alice.txt
I (514) example: SPIFFS unmounted

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby ESP_Gargamel » Mon May 10, 2021 2:56 am

暂时没有太好的思路,看上去是 cmake 没有正常的输出 flash 烧录的参数,是否 build 目录下也没有 storage-flash_args 这个文件?另外,你是如何拉取和建立开发环境的?看上去你的很多文件模式都被改变了。你可以尝试一下用 https://dl.espressif.com/dl/esp-idf/ 的新的安装工具重新搭一下环境。

某某ESP32友
Posts: 25
Joined: Fri May 07, 2021 4:10 pm

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby 某某ESP32友 » Mon May 10, 2021 3:54 am

使用的是VSCODE+IDF插件搭建的开发环境,我感觉是IDF版本的问题,在另一台电脑上在WIN10下通过Espressif IDF1.0.3版本,按照引导下载IDF4.2.1和tools,python只能使用3.8版本,使用3.9版本编译会提醒部分软件版本不符合,运行修复命令也无用,编译结果同样无法上载storage.bin,只能通过烧录软件上载BIN文件,可用。

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby ESP_Gargamel » Mon May 10, 2021 9:06 am

使用 vscode + idf 插件确实有这个问题,会让相关同事排查一下。
另外,直接基于 idf 应该是没有问题的,你可以用 https://dl.espressif.com/dl/esp-idf/ 安装下环境,做下对比。

ESP_Alvin
Posts: 195
Joined: Thu May 17, 2018 2:26 am

Re: 为何SPIFFSGEN例程不能上载文件至storage分区

Postby ESP_Alvin » Thu Aug 26, 2021 6:26 am

您好。

问题已在 https://github.com/espressif/vscode-esp ... n/pull/406 中修复。谢谢。

Who is online

Users browsing this forum: No registered users and 32 guests