tljk / youdao_wordbook

基于微雪2.13in墨水屏模块实现的单词本
35 stars 8 forks source link

似乎内存不足&有模块导入失败,原因未知 #2

Closed BlitherBoom812 closed 2 years ago

BlitherBoom812 commented 2 years ago

Traceback (most recent call last): File "boot.py", line 1, in File "main.py", line 21, in MemoryError: memory allocation failed, allocating 1707 bytes Traceback (most recent call last): File "main.py", line 21, in ImportError: can't import name EPD_2in13_V3 MicroPython v1.17 on 2021-09-22; ESP32 module with ESP32 Type "help()" for more information.

tljk commented 2 years ago
BlitherBoom812 commented 2 years ago
  • 至少4m内存
  • 尝试重启
  • 使用mpy-cross编译除boot.py外的所以py文件,win请直接使用build.bat一键编译

解决了,感谢!发现mpy-cross的版本必须是1.17,才能编译出mpy v5,和板子上的micropython版本适配,如果用最新版1.19编译出mpy v6就会不兼容。

INPEIU commented 2 years ago

我的问题与你一样,但是怎么更换mpy-cross的版本?