自制ESP32-C3板 烧入例程Hello-World卡在软复位上

Bosspoipoi
Posts: 6
Joined: Mon Sep 27, 2021 1:36 pm

自制ESP32-C3板 烧入例程Hello-World卡在软复位上

Postby Bosspoipoi » Wed Dec 08, 2021 5:00 am

自制ESP32-C3板,下载调试均采用USB接口,无串口转USB的芯片。
menuconfig中已经修改了控制台的默认输出为USB/J-TAG 模式。

ESP-IDF版本:master
芯片硬件版本:V3

下载后打印如下:
in the binary image header(2048k). Using the size in the binary ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0xf (SPI_FAST_FLASH_BOOT)
Saved PC:0x42006c06
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x1740
load:0x403ce000,len:0x91c
load:0x403d0000,len:0x2d24
entry 0x403ce000
I (24) boot: ESP-IDF v5.0-dev-621-g4143a3f572 2nd stage bootloader
I (24) boot: compile time 12:40:42
I (25) boot: chip revision: 3
I (28) boot.esp32c3: SPI Speed : 80MHz
I (32) boot.esp32c3: SPI Mode : DIO
I (37) boot.esp32c3: SPI Flash Size : 2MB
I (42) boot: Enabling RNG early entropy source...
I (47) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (80) boot: End of partition table
I (85) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=06868h ( 26728) map
I (97) esp_image: segment 1: paddr=00016890 vaddr=3fc89c00 size=013d4h ( 5076) load
I (102) esp_image: segment 2: paddr=00017c6c vaddr=40380000 size=083ach ( 33708) load
I (116) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=109f4h ( 68084) map
I (129) esp_image: segment 4: paddr=00030a1c vaddr=403883ac size=01758h ( 5976) load
I (130) esp_image: segment 5: paddr=0003217c vaddr=50000000 size=00010h ( 16) load
I (138) boot: Loaded app from partition at offset 0x10000
I (141) boot: Disabling RNG early entropy source...
I (147) cpu_start: Pro cpu up.
I (162) cpu_start: Pro cpu start user code
I (162) cpu_start: cpu freq: 160000000 Hz
I (162) cpu_start: Application information:
I (165) cpu_start: Project name: hello_world
I (171) cpu_start: App version: v5.0-dev-621-g4143a3f572
I (177) cpu_start: Compile time: Dec 8 2021 12:40:17
I (183) cpu_start: ELF file SHA256: f1666f0e1fff66e3...
I (189) cpu_start: ESP-IDF: v5.0-dev-621-g4143a3f572
I (196) heap_init: Initializing. RAM available for dynamic allocation:
I (203) heap_init: At 3FC8BE30 len 000341D0 (208 KiB): DRAM
I (209) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (216) heap_init: At 50000010 len 00001FF0 (7 KiB): RTCRAM
I (222) spi_flash: detected chip: generic
I (223) spi_flash: flash io: dio
W (223) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (235) sleep: Configure to isolate all GPIO pins in sleep state
I (236) sleep: Enable automatic switching of GPIO sleep configuration
I (236) cpu_start: Starting scheduler.
Hello world!
This is esp32c3 chip with 1 CPU core(s), WiFi/BLE, silicon revision 3, 2MB external flash
Minimum free heap size: 331020 bytes
Restarting in 10 seconds...
Restarting in 9 seconds...
Restarting in 8 seconds...
Restarting in 7 seconds...
Restarting in 6 seconds...
Restarting in 5 seconds...
Restarting in 4 seconds...
Restarting in 3 seconds...
Restarting in 2 seconds...
Restarting in 1 seconds...
Restarting in 0 seconds...
Restarting now.

之后就没打印了,这是正常的吗?以前用ESP32 会不断重启打印的。
请问应该考虑哪方面的原因?

Bosspoipoi
Posts: 6
Joined: Mon Sep 27, 2021 1:36 pm

Re: 自制ESP32-C3板 烧入例程Hello-World卡在软复位上

Postby Bosspoipoi » Wed Dec 08, 2021 3:04 pm

补充说明:
芯片版本:内置FLASH版本,芯片是V3的

我量了下UART0 也就是IO21,在执行esp_restart后有明显的波形,说明IO21也就是UART0是有输出的。
但是我已经在menconfig中将打印输出设置为了USB_JTAG接口,而不是UART0

Who is online

Users browsing this forum: No registered users and 13 guests