首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在m1 mac arduino上找不到Pyserial或esptool目录

在m1 mac arduino上找不到Pyserial或esptool目录
EN

Stack Overflow用户
提问于 2021-06-07 19:29:32
回答 1查看 399关注 0票数 0

我正在使用m1 MacBook pro,并尝试在ESP8266上运行arduino代码。每次它都会给我这个错误

代码语言:javascript
复制
Arduino: 1.8.13 (Mac OS X (BigSur)), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:
IROM   : 246940          - code in flash         (default or ICACHE_FLASH_ATTR) 
IRAM   : 27260   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 
DATA   : 1268  )         - initialized variables (global, static) in RAM/HEAP 
RODATA : 924   ) / 81920 - constants             (global, static) in RAM/HEAP 
BSS    : 25096 )         - zeroed variables      (global, static) in RAM/HEAP 
Sketch uses 276392 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27288 bytes (33%) of dynamic memory, leaving 54632 bytes for local variables. Maximum is 81920 bytes.
pyserial or esptool directories not found next to this upload.py tool.
An error occurred while uploading the sketch

我不知道是什么问题,我试着用我在另一个问题上找到的新文件夹来更新这两个文件夹,但没有起作用。我希望有一种方法可以运行它。否则,我尝试在Windows10虚拟机上,但它看不到一个驱动程序,所以我不能上传到那里。

EN

回答 1

Stack Overflow用户

发布于 2021-06-08 17:15:31

我找到了我的问题的答案:)它也可能取决于问题,但总的来说,你需要遵循以下步骤:

如果需要,请下载并删除它们(如果需要),然后转到~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/

  • Erase esptool和pyserial文件夹,并替换为您installed

  • Unzip installed

  • Rename

esptool (删除数字和空格)

7.重新启动Arduino,您就可以开始工作了。这里的问题是要确保你擦除了版本号,只留下了"esptool“和"pyserial”的名字,如果你不这样做,Arduino将不会识别它,并且仍然会给出错误。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67870816

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档