Re: 用ESP32加LittlevGL库DIY一个回流焊炉
发表于 : 2020年 9月 30日 17:21
根据使用不带psram的esp32的用户反馈,使用中会因为内存耗尽而死机,怀疑跟温度曲线的绘制有关。现代码做了一些优化,可以减少内存使用,但是否能避免死机,还需测试。已经更新到beta2的分支里。
MicroPython、microbit、makecode、开源技术交流,使用技巧
http://www.micropython.org.cn/forum/
http://www.micropython.org.cn/forum/viewtopic.php?f=6&t=1051
代码: 全选
Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x401521a8: 00000004 15500444 10051004
Core 1 register dump:
PC : 0x401521ac PS : 0x00050d30 A0 : 0x800f492b A1 : 0x3ffcd050
A2 : 0x00000007 A3 : 0x00000000 A4 : 0x40150cad A5 : 0x00000003
A6 : 0x3f4227f4 A7 : 0x00000000 A8 : 0x3ff4409c A9 : 0x00000004
A10 : 0x00000000 A11 : 0x00000007 A12 : 0x00000000 A13 : 0x00000000
A14 : 0x00000001 A15 : 0x00000027 SAR : 0x00000019 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
ELF file SHA256: 0000000000000001000040155045050000000000000000000000000000000000
Backtrace: 0x401521ac:0x3ffcd050 0x400f4928:0x3ffcd080 0x400f49dd:0x3ffcd0b0 0x400e8696:0x3ffcd0e0 0x400df071:0x3ffcd100 0x400ec875:0x3ffcd120 0x400e3200:0x3ffcd1c0 0x400df071:0x3ffcd230 0x400df09e:0x3ffcd250 0x4014283d:0x3ffcd270 0x40142981:0x3ffcd310 0x400f3fb8:0x3ffcd340 0x4008f52d:0x3ffcd370
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:0x3fff0018,len:4
load:0x3fff001c,len:4824
load:0x40078000,len:9652
load:0x40080400,len:6200
entry 0x400806f0
W (325) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.
MicroPython v1.9.4-2072-gf89c8c48c-dirty on 2020-01-17; ESP32 module with ESP32
Type "help()" for more information.
代码: 全选
import time
from machine import *
p7 = Pin(7, Pin.OUT)
P8 = Pin(8, Pin.OUT)
for i in range(20):
p7.value(0)
p8.value(1)
time.sleep_ms(1000)
p7.value(1)
p8.value(0)
time.sleep_ms(1000)