日志LOG:
entry 0x40080710
I (29) boot: ESP-IDF v4.2.1-dirty 2nd stage bootloader
I (29) boot: compile time 16:54:50
I (29) boot: chip revision: 3
I (33) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (40) qio_mode: Enabling default flash chip QIO
I (45) boot.esp32: SPI Speed : 80MHz
I (50) boot.esp32: SPI Mode : QIO
I (54) boot.esp32: SPI Flash Size : 4MB
I (59) boot: Enabling RNG early entropy source...
I (64) boot: Partition Table:
I (68) boot: ## Label Usage Type ST Offset Length
I (75) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (82) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (90) boot: 2 factory factory app 00 00 00010000 001f0000
I (97) boot: 3 storage Unknown data 01 81 00200000 00100000
I (105) boot: End of partition table
I (109) boot_comm: chip revision: 3, min. application chip revision: 0
I (116) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x064c8 ( 25800) map
I (133) esp_image: segment 1: paddr=0x000164f0 vaddr=0x3ffb0000 size=0x02100 ( 8448) load
I (137) esp_image: segment 2: paddr=0x000185f8 vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at C:/msys64/home/wangs/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730
I (143) esp_image: segment 3: paddr=0x00018a04 vaddr=0x40080404 size=0x07614 ( 30228) load
I (163) esp_image: segment 4: paddr=0x00020020 vaddr=0x400d0020 size=0x1806c ( 98412) map
0x400d0020: _stext at ??:?
I (192) esp_image: segment 5: paddr=0x00038094 vaddr=0x40087a18 size=0x02b28 ( 11048) load
0x40087a18: multi_heap_free_impl at C:/msys64/home/wangs/esp/esp-idf/components/heap/multi_heap.c:533
I (202) boot: Loaded app from partition at offset 0x10000
I (202) boot: Disabling RNG early entropy source...
I (204) cpu_start: Pro cpu up.
I (207) cpu_start: Application information:
I (212) cpu_start: Project name: wear_levelling_example
I (218) cpu_start: App version: v4.2.1-dirty
I (224) cpu_start: Compile time: Sep 14 2021 16:26:27
I (230) cpu_start: ELF file SHA256: 008ba9c15efc846c...
I (236) cpu_start: ESP-IDF: v4.2.1-dirty
I (241) cpu_start: Starting app cpu, entry point is 0x40081650
0x40081650: call_start_cpu1 at C:/msys64/home/wangs/esp/esp-idf/components/esp32/cpu_start.c:287
I (0) cpu_start: App cpu up.
I (252) heap_init: Initializing. RAM available for dynamic allocation:
I (259) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (265) heap_init: At 3FFB2990 len 0002D670 (181 KiB): DRAM
I (271) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (277) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (284) heap_init: At 4008A540 len 00015AC0 (86 KiB): IRAM
I (290) cpu_start: Pro cpu start user code
I (307) spi_flash: detected chip: generic
I (307) spi_flash: flash io: qio
W (307) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (319) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (334) example: Mounting FAT filesystem
I (340) example: Opening file
I (483) example: File written
I (483) example: Reading file
I (484) example: Read from file: ''
I (484) example: Unmounting FAT filesystem
I (585) example: Done
最近在想用SPI FLASH存参数,跑 wear_levelling 例程 读写出现写入不成功,读出来也不对的现象,不知道具体原因还多指教一下。
[已解决] ESP32-WROVR-E模组 wear_levelling 读写错误
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: ESP32-WROVR-E模组 wear_levelling 读写错误
spiffs 文件系统烧入了吗?参考 一下 examples/storage/spiffsgen。
-
- Posts: 9
- Joined: Mon Aug 30, 2021 1:35 pm
Re: ESP32-WROVR-E模组 wear_levelling 读写错误
不太一样吧,一个是FAT文件系统,一个是SPIFFS文件系统,我用wear_levelling例程它是用的FAT,我其它几个板子,下进去都可以,就有一个不行
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: ESP32-WROVR-E模组 wear_levelling 读写错误
好的,弄错了,是 FAT 的。
那问题变成为什么有一块板子不行,从 log 上看,读写都没有报错。
只是读到的字符串不对了,只有一个 "。
你用命令 esptool.py read_flash 0x200000 0x100000 fatfs.bin 把 bin dump 出来看看,那个字符串有没有写进去。
那问题变成为什么有一块板子不行,从 log 上看,读写都没有报错。
Code: Select all
I (334) example: Mounting FAT filesystem
I (340) example: Opening file
I (483) example: File written
I (483) example: Reading file
I (484) example: Read from file: ''
I (484) example: Unmounting FAT filesystem
I (585) example: Done
你用命令 esptool.py read_flash 0x200000 0x100000 fatfs.bin 把 bin dump 出来看看,那个字符串有没有写进去。
-
- Posts: 9
- Joined: Mon Aug 30, 2021 1:35 pm
Re: ESP32-WROVR-E模组 wear_levelling 读写错误
好的,谢谢了,我这边试了,估计是 模块硬件上的问题,没有写进去成功,读出来都是0xFF 0xFF,谢谢了
Who is online
Users browsing this forum: No registered users and 58 guests