ESP32s3 rainmaker的flash问题
Posted: Sat Sep 23, 2023 3:36 am
开发环境是arduino,ESP_Friend博主的代码,要用到esp rainmaker功能
代码参考https://gitee.com/esp-friends/arduino_get_started/tree/master/get_weather_Rainmaker。
板子是我自己画的外接flash(原理图见附件),用esptool.py 也能正常识别到8MB外接flash
接线图和W25Q64JVSSIQ资料文件在附件里。 然后如果选择Flash Mode为QIO 80MHZ ,Flash Size为8MB就会下载报错(这里我不清楚为什么识别到8MB还不能选8MB,是我Flash Mode选错了吗)
下载成功,但是报错如下:
10:54:32.035 -> ESP-ROM:esp32s3-20210327
10:54:39.984 -> E (13) esp_rmaker_fctry: NVS Flash init failed
重新选择下载参数:(见附件)
分区表用的arduino-esp32库里自带的rainmaker分区表
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
ota_0, app, ota_0, 0x10000, 0x1E0000,
ota_1, app, ota_1, 0x1F0000, 0x1E0000,
fctry, data, nvs, 0x3D0000, 0x6000,
coredump, data, coredump, 0x3F0000, 0x10000,
下载成功,然后就会一直重启,不知道这是什么问题,是否是我的分区表有问题?
想请教一下这个问题该怎么解决
具体如下:
11:03:33.658 -> Rebooting...
11:03:33.658 -> ESP-ROM:esp32s3-20210327
11:03:33.658 -> Build:Mar 27 2021
11:03:33.658 -> rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
11:03:33.658 -> Saved PC:0x42114f16
11:03:33.658 -> SPIWP:0xee
11:03:33.658 -> mode:DIO, clock div:1
11:03:33.658 -> load:0x3fce3808,len:0x3ac
11:03:33.658 -> load:0x403c9700,len:0x9b4
11:03:33.658 -> load:0x403cc700,len:0x28d8
11:03:33.691 -> entry 0x403c98bc
11:03:34.676 -> [ 1013][RMaker.cpp:17] event_handler(): RainMaker Initialised.
11:03:34.676 -> [ 1014][WiFiProv.cpp:133] beginProvision(): Starting AP using BLE. service_name : ESP_Friend, pop : 1234567
11:03:34.709 -> btdm: bss start 0x3fcef180, len 36
11:03:33.167 -> btdm: data start 0x3fcef174, data start rom 0x40057350, len 12
11:03:33.167 -> MAGIC fadebead VERSION 00010006
11:03:33.167 -> MAGIC fadebead VERSION 00010001
11:03:33.658 ->
11:03:33.658 -> assert failed: block_trim_free heap_tlsf.c:371 (block_is_free(block) && "block must be free")
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 -> Backtrace: 0x4037727a:0x3fceb6f0 0x4037eb19:0x3fceb710 0x40385191:0x3fceb730 0x403841d6:0x3fceb860 0x40384ba9:0x3fceb880 0x40384ddc:0x3fceb8a0 0x403776c1:0x3fceb8c0 0x403776d5:0x3fceb8f0 0x42036610:0x3fceb910 0x42097de6:0x3fceb930 0x42093bfb:0x3fceb950 0x42036ac9:0x3fceb9a0 0x420446f6:0x3fceb9f0 0x4204432e:0x3fceba60 0x4203902d:0x3fcebaa0 0x42038535:0x3fcebac0 0x4200cb0e:0x3fcebc40 0x42004307:0x3fcebce0 0x4200f2ea:0x3fcebd60
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 -> ELF file SHA256: 3583f9b3e87061be
11:03:33.658 ->
11:03:33.658 -> Rebooting...
11:03:33.658 -> ESP-ROM:esp32s3-20210327
代码参考https://gitee.com/esp-friends/arduino_get_started/tree/master/get_weather_Rainmaker。
板子是我自己画的外接flash(原理图见附件),用esptool.py 也能正常识别到8MB外接flash
接线图和W25Q64JVSSIQ资料文件在附件里。 然后如果选择Flash Mode为QIO 80MHZ ,Flash Size为8MB就会下载报错(这里我不清楚为什么识别到8MB还不能选8MB,是我Flash Mode选错了吗)
下载成功,但是报错如下:
10:54:32.035 -> ESP-ROM:esp32s3-20210327
10:54:39.984 -> E (13) esp_rmaker_fctry: NVS Flash init failed
重新选择下载参数:(见附件)
分区表用的arduino-esp32库里自带的rainmaker分区表
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
ota_0, app, ota_0, 0x10000, 0x1E0000,
ota_1, app, ota_1, 0x1F0000, 0x1E0000,
fctry, data, nvs, 0x3D0000, 0x6000,
coredump, data, coredump, 0x3F0000, 0x10000,
下载成功,然后就会一直重启,不知道这是什么问题,是否是我的分区表有问题?
想请教一下这个问题该怎么解决
具体如下:
11:03:33.658 -> Rebooting...
11:03:33.658 -> ESP-ROM:esp32s3-20210327
11:03:33.658 -> Build:Mar 27 2021
11:03:33.658 -> rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
11:03:33.658 -> Saved PC:0x42114f16
11:03:33.658 -> SPIWP:0xee
11:03:33.658 -> mode:DIO, clock div:1
11:03:33.658 -> load:0x3fce3808,len:0x3ac
11:03:33.658 -> load:0x403c9700,len:0x9b4
11:03:33.658 -> load:0x403cc700,len:0x28d8
11:03:33.691 -> entry 0x403c98bc
11:03:34.676 -> [ 1013][RMaker.cpp:17] event_handler(): RainMaker Initialised.
11:03:34.676 -> [ 1014][WiFiProv.cpp:133] beginProvision(): Starting AP using BLE. service_name : ESP_Friend, pop : 1234567
11:03:34.709 -> btdm: bss start 0x3fcef180, len 36
11:03:33.167 -> btdm: data start 0x3fcef174, data start rom 0x40057350, len 12
11:03:33.167 -> MAGIC fadebead VERSION 00010006
11:03:33.167 -> MAGIC fadebead VERSION 00010001
11:03:33.658 ->
11:03:33.658 -> assert failed: block_trim_free heap_tlsf.c:371 (block_is_free(block) && "block must be free")
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 -> Backtrace: 0x4037727a:0x3fceb6f0 0x4037eb19:0x3fceb710 0x40385191:0x3fceb730 0x403841d6:0x3fceb860 0x40384ba9:0x3fceb880 0x40384ddc:0x3fceb8a0 0x403776c1:0x3fceb8c0 0x403776d5:0x3fceb8f0 0x42036610:0x3fceb910 0x42097de6:0x3fceb930 0x42093bfb:0x3fceb950 0x42036ac9:0x3fceb9a0 0x420446f6:0x3fceb9f0 0x4204432e:0x3fceba60 0x4203902d:0x3fcebaa0 0x42038535:0x3fcebac0 0x4200cb0e:0x3fcebc40 0x42004307:0x3fcebce0 0x4200f2ea:0x3fcebd60
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 ->
11:03:33.658 -> ELF file SHA256: 3583f9b3e87061be
11:03:33.658 ->
11:03:33.658 -> Rebooting...
11:03:33.658 -> ESP-ROM:esp32s3-20210327