Vscode +Keil Assistant編譯報錯處理
1.報錯圖片內容
所在位置 行:1 字符: 25
- chcp.com 65001 -Command & c:\Users\92170.vscode\extensions\cl.keil-a …+ ~
不允許使用與號(&)。& 運算符是為將來使用而保留的;請用雙引號將與號引起來(“&”),以將其作為字符串的一部分傳遞。- CategoryInfo : ParserError: ( : ) [], ParentContainsErrorRecordException
- FullyQualifiedErrorId : AmpersandNotAllowed
PS D:\code\stm32cubemx\FLY_Remote_HAL\MDK-ARM>
2.處理方法
嘗試按照報錯提示在編譯配置文件中找有"&"的地方進行按要求修改,無法找到。
嘗試卸載vscode,卸載keil后重裝,沒用。
搜索了大量配置修改后,最終發現將選擇默認配置文件改為Windows PowerShell后編譯成功。