esp32 可以烧写入程序,但是程序不运行,反复重启

Unique
Posts: 21
Joined: Tue Jun 08, 2021 5:42 am

esp32 可以烧写入程序,但是程序不运行,反复重启

Postby Unique » Sun Sep 12, 2021 5:24 am

模块为安信可ESP32-S

串口输出如下:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, 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:6992
load:0xffffffff,len:-1


附件为原理图,麻烦帮忙看一下是不是原理图不合理影响到了运行
Schematic_ESP_Clock_2021-09-09.pdf
(235.61 KiB) Downloaded 927 times

ESP_LJH
Posts: 387
Joined: Tue May 18, 2021 9:21 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby ESP_LJH » Mon Sep 13, 2021 6:38 am

当前选择的 DCDC 电流能达到 500 mA 吗?
用的是什么烧录工具,烧写的是什么固件呢?

Unique
Posts: 21
Joined: Tue Jun 08, 2021 5:42 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby Unique » Mon Sep 13, 2021 12:49 pm

选用MD5333 LDO,输出可以到500mA
使用VSCODE 和 ESP-IDF命令行工具,eclipse都试过烧写Hello World例程,一样的现象.
Attachments
捕获.PNG
捕获.PNG (95.66 KiB) Viewed 17247 times

ESP_LJH
Posts: 387
Joined: Tue May 18, 2021 9:21 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby ESP_LJH » Wed Sep 15, 2021 11:45 am

1. 我问的是你的 DCDC,LDO 电流够,前面电流不够也没有用
2. 可以确认下比如 qio 80 mhz 这些配置,固件编译和固件烧写是一致的吗?

Unique
Posts: 21
Joined: Tue Jun 08, 2021 5:42 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby Unique » Fri Sep 17, 2021 2:55 pm

DCDC最大可以输出800mA,另外在只烧写HelloWorld时问题依旧存在,所以跟电源应该没什么关系。

ESP_LJH
Posts: 387
Joined: Tue May 18, 2021 9:21 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby ESP_LJH » Sat Sep 18, 2021 3:36 am

那配置这个你确认了吗?

Unique
Posts: 21
Joined: Tue Jun 08, 2021 5:42 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby Unique » Sat Sep 18, 2021 2:39 pm

确认过了,默认是 DIO 40MHz,烧到其他的开发板是没问题的。下面是我复制的烧写过程的LOG,可以看到烧写是成功的,但是就是不运行程序,一直重启.
附件是测试程序,就是简单的LOG输出。

esptool.py v3.1-dev
Serial port COM3
Connecting.....
Chip is ESP32-D0WD (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 94:3c:c6:10:6b:b8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00010000 to 0x00036fff...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 158624 bytes to 82728...
Wrote 158624 bytes (82728 compressed) at 0x00010000 in 2.1 seconds (effective 593.7 kbit/s)...
Hash of data verified.
Compressed 25056 bytes to 15379...
Wrote 25056 bytes (15379 compressed) at 0x00001000 in 0.6 seconds (effective 317.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 449.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Attachments
捕获.PNG
捕获.PNG (23.61 KiB) Viewed 16860 times
main.c
(637 Bytes) Downloaded 1244 times

Unique
Posts: 21
Joined: Tue Jun 08, 2021 5:42 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby Unique » Thu Sep 23, 2021 10:56 am

您好,这个问题还没有解决,请问我可以把板子发给你们帮我排查一下吗?

ESP_Eavo
Posts: 186
Joined: Tue Jun 08, 2021 6:23 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby ESP_Eavo » Thu Sep 23, 2021 11:35 am

您好,我们这边目前信息有限看不出别的问题了。

模块是 安信可 的,建议您联系模组供应商售后。

谢谢。

Unique
Posts: 21
Joined: Tue Jun 08, 2021 5:42 am

Re: esp32 可以烧写入程序,但是程序不运行,反复重启

Postby Unique » Fri Sep 24, 2021 1:47 am

好的,谢谢

Who is online

Users browsing this forum: No registered users and 50 guests