使用eide+pyocd 调试AT32F421芯片的时候发现pyocd 报错 看起来是因为雅特力的型号前面有个横杠- 被识别成参数了 而不是器件型号导致报错 问了下朋友 说可以把型号用双引号包起来 但是在eide界面不能手动输入 只能在筛选栏选择 这个场合应该怎么弄
usage: pyocd load [-h] [-v] [-q] [-L LOGGERS=LEVEL] [--color [{always,auto,never}]] [-j PATH] [--config PATH] [--no-config] [--script PATH] [-O OPTION=VALUE]
[-da DAPARG [DAPARG ...]] [--pack PATH] [-u UNIQUE_ID] [-t TARGET] [-f FREQUENCY] [-W] [-M MODE] [-e {auto,chip,sector}] [-a ADDR] [--trust-crc]
[--format {bin,hex,elf}] [--skip BYTES] [--no-reset]
<file-path> [<file-path> ...]
pyocd load: error: argument -t/--target: expected one argument
- 终端进程“cmd.exe /C "pyocd flash -t "-at32f421c8t7" --config g:\OneDrive\Documents\MCU\PROJECT\XXX\YY\ZZZZZ\code\XJ_ScrewFeeder\AT32F421C8T7_ScrewFeeder.eide\at32f421c8t7_screwfeeder.pyocd.yaml -t -at32f421c8t7 -f 4M g:\OneDrive\Documents\MCU\PROJECT\XXX\YY\ZZZZZ\code\XJ_ScrewFeeder\AT32F421C8T7_ScrewFeeder\build\AT32F421C8T7_ScrewFeeder\AT32F421C8T7_ScrewFeeder.hex"”已终止,退出代码: 2。