V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sebastianwade
V2EX  ›  嵌入式开发

站里有没有懂 esp32 + micropython 的,有偿请教几个问题?

  •  
  •   sebastianwade · 2021-12-15 10:39:46 +08:00 · 1412 次点击
    这是一个创建于 1104 天前的主题,其中的信息可能已经有所发展或是发生改变。

    手头有个安信可 esp-12k 的板子,flash 能烧录上去,但是就是没法远程连接和下载。

    flash 编译命令:

    . esp-idf/export.sh && \
        cd micropython && \
        make -C mpy-cross && \
        make -C ports/esp32 submodules && \
        make -C ports/esp32 BOARD=GENERIC_S2
    

    其他命令:

    ➜  esp32 git:(master) esptool.py --chip esp32s2 -p /dev/cu.wchusbserial1420 flash_id
    esptool.py v3.1-dev
    Serial port /dev/cu.wchusbserial1420
    Connecting........____
    Chip is ESP32-S2
    Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
    Crystal is 40MHz
    MAC: 84:f7:03:7a:e1:58
    Uploading stub...
    Running stub...
    Stub running...
    Manufacturer: 5e
    Device: 4016
    Detected flash size: 4MB
    Hard resetting via RTS pin...
    ➜ esp32 git:(master) /Users/Works/.espressif/python_env/idf4.3_py3.9_env/bin/python ../../../../../../esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/cu.wchusbserial1420 -b 460800 --before default_reset --after hard_reset --chip esp32s2  write_flash --flash_mode qio --flash_size detect --flash_freq 40m 0x1000 build-GENERIC_S2/bootloader/bootloader.bin 0x8000 build-GENERIC_S2/partition_table/partition-table.bin 0x10000 build-GENERIC_S2/micropython.bin
    
    esptool.py v3.1-dev
    Serial port /dev/cu.wchusbserial1420
    Connecting........_____.....____
    Chip is ESP32-S2
    Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
    Crystal is 40MHz
    MAC: 84:f7:03:7a:e1:58
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 460800
    Changed.
    Configuring flash size...
    Auto-detected Flash size: 4MB
    Flash will be erased from 0x00001000 to 0x00004fff...
    Flash will be erased from 0x00008000 to 0x00008fff...
    Flash will be erased from 0x00010000 to 0x00128fff...
    Flash params set to 0x0020
    Compressed 16352 bytes to 10401...
    Wrote 16352 bytes (10401 compressed) at 0x00001000 in 0.4 seconds (effective 306.3 kbit/s)...
    Hash of data verified.
    Compressed 3072 bytes to 115...
    Wrote 3072 bytes (115 compressed) at 0x00008000 in 0.1 seconds (effective 373.7 kbit/s)...
    Hash of data verified.
    Compressed 1148752 bytes to 781514...
    Wrote 1148752 bytes (781514 compressed) at 0x00010000 in 18.9 seconds (effective 486.7 kbit/s)...
    Hash of data verified.
    
    Leaving...
    Hard resetting via RTS pin...
    ➜  esp32 git:(master) rshell --buffer-size=30 -p /dev/cu.wchusbserial1420 -d ls
    Debug = True
    Port = /dev/cu.wchusbserial1420
    Baud = 115200
    User = micro
    Password = python
    Wait = 0
    List = 0
    nocolor = 0
    ascii = 0
    Timing = 0
    Quiet = 0
    BUFFER_SIZE = 30
    Cmd = [ls]
    Using buffer-size of 30
    Connecting to /dev/cu.wchusbserial1420 (buffer-size 30)...
    Trying to connect to REPL ....................Unable to connect to REPL
    
    No MicroPython boards connected - use the connect command to add one
    

    esp-12k!

    2 条回复    2022-11-29 22:11:08 +08:00
    fox0001
        1
    fox0001  
       2022-05-21 21:08:57 +08:00 via Android
    建议楼主不要自己编译,应该有编译好的固件可以直接下载
    volvo007
        2
    volvo007  
       2022-11-29 22:11:08 +08:00
    -b 460800 改 115200 试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1055 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:07 · PVG 04:07 · LAX 12:07 · JFK 15:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.