我使用的esp32c3-mini-1,在网址上https://github.com/espressif/esp-at 把esp-at-2.3.0.0_esp32c3\examples\at_spi_master\spi\esp32_c_series这个工程编译下载之后,在串口调试助手log日志打印:
Rebooting...
x鴢ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x10 (RTCWDT_RTC_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x1884
load:0x403ce000,len:0xb9c
load:0x403d0000,len:0x293c
entry 0x403ce000
[0;32mI (31) boot: ESP-IDF v4.3-dirty 2nd stage bootloader[0m
[0;32mI (31) boot: compile time 14:46:07[0m
[0;32mI (31) boot: chip revision: 3[0m
[0;32mI (33) qio_mode: Enabling default flash chip QIO[0m
[0;32mI (38) boot.esp32c3: SPI Speed : 80MHz[0m
[0;32mI (43) boot.esp32c3: SPI Mode : QIO[0m
[0;32mI (48) boot.esp32c3: SPI Flash Size : 2MB[0m
[0;32mI (52) boot: Enabling RNG early entropy source...[0m
[0;32mI (58) boot: Partition Table:[0m
[0;32mI (61) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (69) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (76) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (84) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (91) boot: End of partition table[0m
[0;32mI (95) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=07c58h ( 31832) map[0m
[0;32mI (108) esp_image: segment 1: paddr=00017c80 vaddr=3fc8c800 size=03338h ( 13112) load[0m
[0;32mI (114) esp_image: segment 2: paddr=0001afc0 vaddr=40380000 size=05058h ( 20568) load[0m
[0;32mI (124) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=1a148h (106824) map[0m
[0;32mI (144) esp_image: segment 4: paddr=0003a170 vaddr=40385058 size=07754h ( 30548) load[0m
[0;32mI (149) esp_image: segment 5: paddr=000418cc vaddr=50000000 size=00010h ( 16) load[0m
[0;32mI (154) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (156) boot: Disabling RNG early entropy source...[0m
[0;32mI (173) cpu_start: Pro cpu up.[0m
[0;32mI (185) cpu_start: Pro cpu start user code[0m
[0;32mI (185) cpu_start: cpu freq: 160000000[0m
[0;32mI (185) cpu_start: Application information:[0m
[0;32mI (188) cpu_start: Project name: esp32_spi[0m
[0;32mI (193) cpu_start: App version: v4.3-dirty[0m
[0;32mI (198) cpu_start: Compile time: Jan 5 2022 14:45:32[0m
[0;32mI (204) cpu_start: ELF file SHA256: 495a065594d5f49f...[0m
[0;32mI (210) cpu_start: ESP-IDF: v4.3-dirty[0m
[0;32mI (215) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (222) heap_init: At 3FC909B0 len 0002F650 (189 KiB): DRAM[0m
[0;32mI (229) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM[0m
[0;32mI (235) heap_init: At 50000010 len 00001FF0 (7 KiB): RTCRAM[0m
[0;32mI (242) spi_flash: detected chip: generic[0m
[0;32mI (246) spi_flash: flash io: qio[0m
[0;33mW (250) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m
[0;32mI (263) sleep: Configure to isolate all GPIO pins in sleep state[0m
[0;32mI (270) sleep: Enable automatic switching of GPIO sleep configuration[0m
[0;32mI (277) cpu_start: Starting scheduler.[0m
[0;32mI (282) gpio: GPIO[4]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1 [0m
[0;31mE (291) spi: spi_bus_initialize(634): invalid dma channel, chip only support spi dma channel auto-alloc[0m
assertion "ret == ESP_OK" failed: file "../main/app_main.c", line 277, function: init_driver
abort() was called at PC 0x4200c445 on core 0
Core 0 register dump:
MEPC : 0x403850cc RA : 0x4038581a SP : 0x3fc93590 GP : 0x3fc8d000
TP : 0x3fc8bafc T0 : 0x37363534 T1 :
使用esp-AT SDK烧录,发现程序一直在重启
Moderator: ESP_XCGuang
Re: 使用esp-AT SDK烧录,发现程序一直在重启
Hi,
您可以阅读一下 esp-at-2.3.0.0_esp32c3\examples\at_spi_master\spi\esp32_c_series 这个工程的 README.md,其中使用这个示例的硬件要求部分。以及如果您想要使用 SPI AT,该链接(https://docs.espressif.com/projects/esp ... spi#spi-at)的相关资料或许可以帮助到您
您可以阅读一下 esp-at-2.3.0.0_esp32c3\examples\at_spi_master\spi\esp32_c_series 这个工程的 README.md,其中使用这个示例的硬件要求部分。以及如果您想要使用 SPI AT,该链接(https://docs.espressif.com/projects/esp ... spi#spi-at)的相关资料或许可以帮助到您
-
- Posts: 171
- Joined: Thu Sep 23, 2021 10:03 am
Re: 使用esp-AT SDK烧录,发现程序一直在重启
我不想用spi AT,我想用UART AT,有没有UART AT的SDK呢?
Re: 使用esp-AT SDK烧录,发现程序一直在重启
1. AT 工程默认配置就是 UART AT
2. 您可以先阅读下 AT 工程的文档,它可以帮助解决您在使用 AT 中遇到的大多数问题
- AT 工程文档:https://docs.espressif.com/projects/esp ... CN/latest/
- AT 工程:https://github.com/espressif/esp-at
2. 您可以先阅读下 AT 工程的文档,它可以帮助解决您在使用 AT 中遇到的大多数问题
- AT 工程文档:https://docs.espressif.com/projects/esp ... CN/latest/
- AT 工程:https://github.com/espressif/esp-at
-
- Posts: 171
- Joined: Thu Sep 23, 2021 10:03 am
Re: 使用esp-AT SDK烧录,发现程序一直在重启
AT默认的UART程序在main目录里??
Re: 使用esp-AT SDK烧录,发现程序一直在重启
esp-at 工程默认配置就是使用 UART 通信接口,如果您编译时没有更改关于通信接口的配置,那么您现在编译的 esp-at 工程就是使用的 UART 通信接口
Re: 使用esp-AT SDK烧录,发现程序一直在重启
Code: Select all
[0;31mE (291) spi: spi_bus_initialize(634): invalid dma channel, chip only support spi dma channel auto-alloc[0m
assertion "ret == ESP_OK" failed: file "../main/app_main.c", line 277, function: init_driver
abort() was called at PC 0x4200c445 on core 0
Core 0 register dump:
MEPC : 0x403850cc RA : 0x4038581a SP : 0x3fc93590 GP : 0x3fc8d000
TP : 0x3fc8bafc T0 : 0x37363534 T1
DMA初始化错误, app_main.c 第277行。
猜测:
原始工程使用的是SPI总线挂载的外部扩展flash, 你的开发板没有。
Re: 使用esp-AT SDK烧录,发现程序一直在重启
您可以先跑通基本的 esp-at 工程的编译和 AT 命令,再基于这个加入您自己的代码。如果您遇到一些问题,烦请提供一下完整的可编译的复现的代码。
Who is online
Users browsing this forum: No registered users and 12 guests