macOS VScode 工具鏈寫芯片出錯

固件無法寫入芯片CH32v307,請教哪里問題?


正在執(zhí)行任務(wù): platformio run --target upload?

Processing genericCH32V307VCT6 (platform: ch32v; board: genericCH32V307VCT6; framework: noneos-sdk)

--------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option

CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V307VCT6.html

PLATFORM: WCH CH32V (1.0.0) > Generic CH32V307VCT6

HARDWARE: CH32V307VCT6 144MHz, 64KB RAM, 256KB Flash

DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)

PACKAGES:?

?- framework-wch-noneos-sdk @ 2.10000.0+sha.2cafe78?

?- tool-minichlink @ 0.1.0+sha.af02ba5?

?- tool-openocd-riscv-wch @ 2.1100.230329 (11.0)?

?- tool-wchisp @ 0.22.230228?

?- toolchain-riscv @ 1.80200.190731+sha.99cb62f

LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf

LDF Modes: Finder ~ chain, Compatibility ~ soft

Found 0 compatible libraries

Scanning dependencies...

No dependencies

Building in release mode

Checking size .pio/build/genericCH32V307VCT6/firmware.elf

Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"

RAM: ? [ ? ? ? ? ?] ? 3.4% (used 2220 bytes from 65536 bytes)

Flash: [ ? ? ? ? ?] ? 3.0% (used 7816 bytes from 262144 bytes)

Configuring upload protocol...

AVAILABLE: isp, minichlink, wch-link

CURRENT: upload_protocol = wch-link

Uploading .pio/build/genericCH32V307VCT6/firmware.elf

Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-03-02-19:26)

Licensed under GNU GPL v2

For bug reports, read

? ? ? ? http://openocd.org/doc/doxygen/bugs.html

debug_level: 1

Warn : Transport "sdi" was already selected

Ready for Remote Connections

Error: open failed

*** [upload] Error 1

========================== [FAILED] Took 1.10 seconds ==========================

?* ?終端進(jìn)程“platformio 'run', '--target', 'upload'”已終止,退出代碼: 1。?

?* ?終端將被任務(wù)重用,按任意鍵關(guān)閉。?


配置文件內(nèi)容

platformio.ini

[env:genericCH32V307VCT6]

platform = ch32v

board = genericCH32V307VCT6

framework = noneos-sdk


雖然但是但是雖然,線沒插好什么的也會這樣。你可以先試試重新插拔 WCHLink,重新連接 WCHLink 和板子(


您好,可以參考一下下帖回復(fù)排查一下問題,后續(xù)若有問題,可通過郵箱(lzs@wch.cn)和我具體溝通一下

http://www.findthetime.net/bbs/thread-109012-1.html

image.png?


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频