platformIO开发ESP32-MINI-1U上电不断复位

我认真712
Posts: 4
Joined: Tue Aug 01, 2023 6:08 am

platformIO开发ESP32-MINI-1U上电不断复位

Postby 我认真712 » Tue Aug 01, 2023 6:15 am

模组:ESP32-MINI-1U
开发环境:VScode+platformIO
上电复位log信息:
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13192
load:0x40080400,len:3028
entry 0x400805e4
E (137) cpu_start: Running on single core variant of a chip, but app is built with multi-core support.
E (137) cpu_start: Check that CONFIG_FREERTOS_UNICORE is enabled in menuconfig

abort() was called at PC 0x400829b9 on core 0

Backtrace: 0x400833dd:0x3ffe3b80 0x40087f2d:0x3ffe3ba0 0x4008d17d:0x3ffe3bc0 0x400829b9:0x3ffe3c40 0x40079266:0x3ffe3c90 |<-CORRUPTED

ELF file SHA256: be3eba0c5a16fa63

E (162) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...

试了网上的替换安装的ESP32 SDK里的相应文件 以及 重新烧写 esp32-idf3-20200902-v1.13.bin 均无效
各位大佬能帮忙看下如何解答下吗?困扰了几天了

我认真712
Posts: 4
Joined: Tue Aug 01, 2023 6:08 am

Re: platformIO开发ESP32-MINI-1U上电不断复位

Postby 我认真712 » Wed Aug 02, 2023 7:27 am

Arduino IDE平台下替换SDK文件夹下问题解决,运行正常,要注意替换时ESP32-SOLO版本号要对应,但PlatformIO平台下替换不起效,也没找到对应的版本号,这个有大佬了解吗?希望帮忙解答,感谢

ESP_Zombie
Posts: 20
Joined: Tue Mar 15, 2022 6:15 am

Re: platformIO开发ESP32-MINI-1U上电不断复位

Postby ESP_Zombie » Wed Aug 02, 2023 8:08 am

您好,

E (137) cpu_start: Running on single core variant of a chip, but app is built with multi-core support.
E (137) cpu_start: Check that CONFIG_FREERTOS_UNICORE is enabled in menuconfig

这里的 log 反映了根本原因是:您的固件是双核的,但是想把双核固件跑在您的单核 ESP32-SOLO 上。

如果是第三方 IDE ,一定要在编译前选择正确的单核芯片版本。或者某些 IDE 可以进行项目配置,使能 sdkconfig 里的 CONFIG_FREERTOS_UNICORE 选项即可。

我认真712
Posts: 4
Joined: Tue Aug 01, 2023 6:08 am

Re: platformIO开发ESP32-MINI-1U上电不断复位

Postby 我认真712 » Wed Aug 02, 2023 8:30 am

感谢回复!
我使用时VScode+PlatformIO插件开发,在C:\Users\xxx\.platformio\packages\framework-arduinoespressif32\tools\sdk目录下有个sdkconfig文件,按照如下修改了:
#
# FreeRTOS
#

CONFIG_FREERTOS_UNICORE=y
CONFIG_FREERTOS_NO_AFFINITY=0x7FFFFFFF
CONFIG_FREERTOS_TICK_SUPPORT_CORETIMER=y
CONFIG_FREERTOS_CORETIMER_0=y
# CONFIG_FREERTOS_CORETIMER_1 is not set
CONFIG_FREERTOS_SYSTICK_USES_CCOUNT=y
CONFIG_FREERTOS_HZ=1000
# CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION is not set
# CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE is not set
# CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL is not set
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y
.....

但是试下来还是不行,好像没起作用 是还有其他地方需要修改吗?

ESP_Zombie
Posts: 20
Joined: Tue Mar 15, 2022 6:15 am

Re: platformIO开发ESP32-MINI-1U上电不断复位

Postby ESP_Zombie » Tue Aug 08, 2023 7:22 am

看起来您没有在正确的地方修改单核配置。

由于 platformIO 不是由乐鑫官方维护,目前我们在 platformIO 官方 github 里搜素到了如何进行 menuconfig 配置,或者如何进行 sdkconfig 预配置,您可以进行参考:https://github.com/platformio/platform- ... ssues/1036

我认真712
Posts: 4
Joined: Tue Aug 01, 2023 6:08 am

Re: platformIO开发ESP32-MINI-1U上电不断复位

Postby 我认真712 » Tue Aug 08, 2023 7:28 am

感谢!我再试一下

eqqqqq
Posts: 2
Joined: Sun Oct 08, 2023 1:51 am

Re: platformIO开发ESP32-MINI-1U上电不断复位

Postby eqqqqq » Sun Oct 08, 2023 3:07 am

请问解决了吗

Who is online

Users browsing this forum: No registered users and 44 guests