完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
想知道是否有人可以帮我解决这个问题。这是我的示例代码。我已尽可能简单地将其分解以消除潜在原因:
一旦我启用 PSRAM,我得到这个输出: 代码:全选 I (27) boot: ESP-IDF v5.0 2nd stage bootloader I (27) boot: compile time 11:28:30 I (27) boot: chip revision: v3.0 I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0 I (37) boot.esp32: SPI Speed : 40MHz I (42) boot.esp32: SPI Mode : DIO I (46) boot.esp32: SPI Flash Size : 2MB I (51) boot: Enabling RNG early entropy source... I (56) boot: Partition Table: I (60) boot: ## Label Usage Type ST Offset Length I (67) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (75) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (82) boot: 2 factory factory app 00 00 00010000 00100000 I (90) boot: End of partition table I (94) boot_comm: chip revision: 3, min. application chip revision: 0 I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0e48ch ( 58508) map I (131) esp_image: segment 1: paddr=0001e4b4 vaddr=3ffb0000 size=01b64h ( 7012) load I (134) esp_image: segment 2: paddr=00020020 vaddr=400d0020 size=1f420h (128032) map I (183) esp_image: segment 3: paddr=0003f448 vaddr=3ffb1b64 size=00ed4h ( 3796) load I (184) esp_image: segment 4: paddr=00040324 vaddr=40080000 size=10054h ( 65620) load I (215) esp_image: segment 5: paddr=00050380 vaddr=50000000 size=00010h ( 16) load I (224) boot: Loaded app from partition at offset 0x10000 I (224) boot: Disabling RNG early entropy source... I (236) quad_psram: This chip is ESP32-D0WD I (238) esp_psram: Found 8MB PSRAM device I (238) esp_psram: Speed: 40MHz I (240) esp_psram: PSRAM initialized, cache is in low/high (2-core) mode. W (247) esp_psram: Virtual address not enough for PSRAM, map as much as we can. 4MB is mapped I (256) cpu_start: Pro cpu up. I (260) cpu_start: Starting app cpu, entry point is 0x400812d8 0x400812d8: call_start_cpu1 at C:/Users/mcmil/esp/esp-idf/components/esp_system/port/cpu_start.c:142 I (253) cpu_start: App cpu up. I (1172) esp_psram: SPI SRAM memory test OK I (1180) cpu_start: Pro cpu start user code I (1180) cpu_start: cpu freq: 160000000 Hz I (1180) cpu_start: Application information: I (1184) cpu_start: Project name: motor_test I (1189) cpu_start: App version: 1 I (1193) cpu_start: Compile time: Feb 27 2023 16:25:40 I (1200) cpu_start: ELF file SHA256: 07d7022c92f125ad... I (1206) cpu_start: ESP-IDF: v5.0 I (1211) heap_init: Initializing. RAM available for dynamic allocation: I (1218) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (1224) heap_init: At 3FFB3428 len 0002CBD8 (178 KiB): DRAM I (1230) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (1237) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (1243) heap_init: At 40090054 len 0000FFAC (63 KiB): IRAM I (1250) esp_psram: Adding pool of 4096K of PSRAM memory to heap allocator I (1258) spi_flash: detected chip: generic I (1262) spi_flash: flash io: dio W (1266) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (1280) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1290) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations I (1300) example: Create DC motor I (1300) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 I (1310) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0 register dump: PC : 0x400dbdd9 PS : 0x00060c30 A0 : 0x800da756 A1 : 0x3ffb5e50 0x400dbdd9: mcpwm_generator_set_actions_on_timer_event at C:/Users/mcmil/esp/esp-idf/components/driver/mcpwm/mcpwm_gen.c:155 (discriminator 2) A2 : 0x3f800994 A3 : 0x00000000 A4 : 0x00000000 A5 : 0xffffffff A6 : 0x00000000 A7 : 0x3f40ae7c A8 : 0x800dbaf6 A9 : 0x3ffb5e60 A10 : 0x3ff44570 A11 : 0x00000021 A12 : 0x0ffd114c A13 : 0x00000000 A14 : 0x00000000 A15 : 0x00010000 SAR : 0x00000010 EXCCAUSE: 0x0000001c EXCVADDR: 0x00000003 LBEG : 0x40087ea1 LEND : 0x40087eb1 LCOUNT : 0xfffffffe 0x40087ea1: strlen at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:84 0x40087eb1: strlen at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:96 Backtrace: 0x400dbdd6:0x3ffb5e50 0x400da753:0x3ffb5ee0 0x400da09d:0x3ffb5fa0 0x400ef248:0x3ffb5fe0 0x4008c4b9:0x3ffb6010 0x400dbdd6: mcpwm_generator_set_actions_on_timer_event at C:/Users/mcmil/esp/esp-idf/components/driver/mcpwm/mcpwm_gen.c:154 (discriminator 2) 0x400da753: bdc_motor_new_mcpwm_device at C:/Users/mcmil/motor_test/managed_components/espressif__bdc_motor/src/bdc_motor_mcpwm_impl.c:138 (discriminator 2) 0x400da09d: app_main at C:/Users/mcmil/motor_test/main/test.c:36 0x400ef248: main_task at C:/Users/mcmil/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/port_common.c:131 (discriminator 2) 0x4008c4b9: vPortTaskWrapper at C:/Users/mcmil/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:151 |
|
相关推荐 |
|
只有小组成员才能发言,加入小组>>
1932个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
36421 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
4867 浏览 1 评论
6108 浏览 1 评论
6818 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
4249 浏览 0 评论
645浏览 2评论
求助,S32G上Core M启动后如何让Core A在Flash指定位置加载uboot?
643浏览 2评论
ESP32-WROVER-IE + LAN8720以太网,GPIO0电压只有1.6v,无法正常进入spi flash boot模式如何解决?
645浏览 2评论
求分享适用于PN7160 Android的NFC工厂测试应用程序
729浏览 2评论
844浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 18:55 , Processed in 5.659676 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号