NodeMCU在BigSur系統下燒錄問題(ArduinoIDE)
問題描述:
Executable segment sizes:
IROM : 232856 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26888 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1248 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 728 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24928 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 261720 bytes (25%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26904 bytes (32%) of dynamic memory, leaving 55016 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
環境:
Arduino IDE version: 1.8.13
esp8266 Core version: 2.7.4
解決方法:
1.- 找到list_ports_osx.py ~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial/serial/tools/list_ports_osx.py
2.- 註解掉29與30行,並新增下面兩行:
iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')
