求助:掌控板2.0 上传出错

2024-02-269766
AI 快速预览详细 收起
本文讨论了使用掌控板2.0时遇到的程序上传失败问题,具体表现为生成.bin失败。通过详细的错误信息分析,确定了原因是缺少serial模块。文章提供了具体的解决步骤,包括如何安装serial模块,从而帮助用户快速解决问题,避免自行排查的时间成本。


掌控板2.0,程序无法上传,到36%就提示上传出错。生成.bin 失败。请问是怎么回事。

提示信息:
/Applications/Mind+.app/Contents/Arduino/hardware/tools/mpython/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/config -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/app_trace -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/app_update -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/asio -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/asio -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/bootloader_support -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/bt -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/coap -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/console -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/driver -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp-tls -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp32 -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp_adc_cal -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp_event -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp_http_client -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp_http_server -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp_https_ota -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp_ringbuf -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/ethernet -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/expat -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/fatfs -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/freemodbus -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/freertos -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/heap -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/idf_test -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/jsmn -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/json -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/libsodium -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/log -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/lwip -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/mbedtls -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/mdns -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/micro-ecc -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/mqtt -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/newlib -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/nghttp -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/nvs_flash -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/openssl -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/protobuf-c -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/protocomm -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/pthread -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/sdmmc -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/smartconfig_ack -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/soc -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/spi_flash -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/spiffs -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/tcp_transport -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/tcpip_adapter -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/ulp -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/vfs -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/wear_levelling -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/wifi_provisioning -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/wpa_supplicant -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/xtensa-debug-module -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp-face -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/esp32-camera -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/include/fb_gfx -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10808 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="mpython" -DESP32 -DCORE_DEBUG_LEVEL=0 -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/cores/esp32 -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/variants/mpython -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/cores/esp32 -I /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/variants/mpython /Users/stevensun/Library/DFScratch/cache/dfrobot.ino.cpp -o /Users/stevensun/Library/DFScratch/cache/dfrobot.ino.cpp.o
/Applications/Mind+.app/Contents/Arduino/hardware/tools/mpython/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -nostdlib -L /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/lib -L /Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/sdk/ld -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group /Users/stevensun/Library/DFScratch/cache/dfrobot.ino.cpp.o /Applications/Mind+.app/Contents/Arduino/static/core/mpython/core.a -lgcc -lopenssl -lbtdm_app -lfatfs -lwps -lcoexist -lwear_levelling -lesp_http_client -lprotobuf-c -lhal -lnewlib -ldriver -lbootloader_support -lpp -lfreemodbus -lmesh -lsmartconfig -ljsmn -lwpa -lethernet -lphy -lapp_trace -lconsole -lulp -lwpa_supplicant -lfreertos -lbt -lmicro-ecc -lesp32-camera -lcxx -lxtensa-debug-module -ltcp_transport -lmdns -lvfs -lesp_ringbuf -lsoc -lcore -lfb_gfx -lsdmmc -llibsodium -lcoap -ltcpip_adapter -lprotocomm -lesp_event -limage_util -lc_nano -lesp-tls -lasio -lrtc -lspi_flash -lwpa2 -lwifi_provisioning -lesp32 -lface_recognition -lapp_update -lnghttp -lspiffs -lface_detection -lespnow -lnvs_flash -lesp_adc_cal -llog -ldl_lib -lsmartconfig_ack -lexpat -lm -lfr -lmqtt -lc -lheap -lmbedtls -llwip -lnet80211 -lesp_http_server -lpthread -ljson -lesp_https_ota -lfd -lstdc++ -Wl,--end-group -Wl,-EL -o /Users/stevensun/Library/DFScratch/build/dfrobot.ino.elf
python "/Applications/Mind+.app/Contents/Arduino/hardware/tools/mpython/gen_esp32part.py" -q "/Applications/Mind+.app/Contents/Arduino/hardware/dfrobot/mpython/tools/partitions/default.csv" "/Users/stevensun/Library/DFScratch/build/dfrobot.ino.partitions.bin"
"python" "/Applications/Mind+.app/Contents/Arduino/hardware/tools/mpython/esptool.py" --chip esp32 elf2image --flash_mode "dio" --flash_freq "80m" --flash_size "4MB" -o"/Users/stevensun/Library/DFScratch/build/dfrobot.ino.bin" "/Users/stevensun/Library/DFScratch/build/dfrobot.ino.elf"
Traceback (most recent call last):
  File "/Applications/Mind+.app/Contents/Arduino/hardware/tools/mpython/esptool.py", line 42, in <module>
    import serial
ImportError: No module named serial

生成.bin失败

MonFebruary-202402262192..png (162.11 KB, 下载次数: 4440)

出错

掌控板2.0 上传出错 · 生成.bin失败解决方案_image_3.webp

创作许可协议

本项目采用 None(不开放任何权利,保留所有权利) 进行许可。

评论(4)
大芒果
大芒果
和你遇到一样的问题,我是掌控版2.2,MacOS14.7.8,m1芯片。上传模式每次都失败,最后也是显示如图
请问这个如何解决?
Stevensun
Stevensun
作者
已解决。原因是之前Mac os系统太老了,是10.12。升级了系统到10.15就可以正常使用了
Forgotten
Forgotten
尝试一下,先点击右上角切换到Python模式,然后等Python模式初始化完成之后 再切回上传模式编译。
DFEDU
DFEDU
Stevensun
Stevensun
作者
回复DFEDU
我的是在mac下。并且好像情况跟您发的链接里不太一样
- 没有更多了 -