重新编译了Micropython提供的源码,发现在初始化串口的时候报错
Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4014670e PS : 0x00060433 A0 : 0x800d6f98 A1 : 0x3ffcee60
0x4014670e: uart_isr_register at /home/mars/esp/esp-idf_4_4/components/driver/uart.c:594
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x3ffb78c8 A5 : 0x0000040e
A6 : 0x3ffcee90 A7 : 0x3ffbf208 A8 : 0x00000000 A9 : 0x3ffcee30
A10 : 0x00000000 A11 : 0x0000040e A12 : 0x40083344 A13 : 0x00000000
0x40083344: uart_irq_handler at /home/mars/esp/micropython-1.18/ports/esp32/build/../uart.c:46
A14 : 0x3ffcee90 A15 : 0x00000000 SAR : 0x00000013 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000008 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffc
Backtrace:0x4014670b:0x3ffcee600x400d6f95:0x3ffcee90 0x400d6df6:0x3ffceec0
0x4014670b: uart_isr_register at /home/mars/esp/esp-idf_4_4/components/driver/uart.c:594
0x400d6f95: uart_init at /home/mars/esp/micropython-1.18/ports/esp32/build/../uart.c:41
0x400d6df6: mp_task at /home/mars/esp/micropython-1.18/ports/esp32/build/../main.c:101
ELF file SHA256: 910eee99fdda0f47
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_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:4344
load:0x40078000,len:13816
load:0x40080400,len:3340
0x40080400: _init at ??:?
这是什么原因造成的?
启动的时候串口初始化失败,panic'ed (StoreProhibited). Exception was unhandled
Re: 启动的时候串口初始化失败,panic'ed (StoreProhibited). Exception was unhandled
怀疑问题出在分区表上,用的是果云的开发板,他用的是ESP32F,我竟然查不到这块板的信息。
怀疑他用的Flash是2M的,而Micropython中ESP项目的分区表应该是照着4M做的
从这个方向入手,看看能否解决问题
怀疑他用的Flash是2M的,而Micropython中ESP项目的分区表应该是照着4M做的
从这个方向入手,看看能否解决问题
Who is online
Users browsing this forum: No registered users and 73 guests