【问题标题】:VScode Exit with code=3 when uploading sketch上传草图时VScode退出代码= 3
【发布时间】:2022-08-14 07:12:25
【问题描述】:

我开始使用 VScode 使用 XIAO nRF52840 进行我的 arduino 编码。我安装了 Arduino for VS Code。 当我上传代码(main.ino)时,我得到以下代码。

[Starting] Uploading sketch \'main\\main.ino\'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
Loading configuration...
Initialising packages...
Preparing boards...
Error: nrf52: Unknown architecture
[Warning] Failed to generate IntelliSense configuration.
[Error] Uploading sketch \'main\\main.ino\': Exit with code=3

任何代码都会发生这种情况。它可以与 Arduino IDE 一起使用,没有任何问题。假设环境中有问题。

\"arduino.ignoreBoards\": [
],
\"arduino.path\": \"C:/Program Files (x86)/Arduino\",
\"arduino.commandPath\": \"arduino_debug.exe\",
\"arduino.logLevel\": \"info\",
\"arduino.enableUSBDetection\": true,
\"arduino.disableTestingOpen\": false,
\"arduino.skipHeaderProvider\": false,
\"arduino.additionalUrls\": [
    \"https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json\",
],
\"arduino.defaultBaudRate\": 9600,

有人能找出问题所在吗?

  • Error: nrf52: Unknown architecture

标签: visual-studio-code arduino


【解决方案1】:
Error: nrf52 :Unknown architecture

确保你在 Vscode 中选择了正确的架构,很明显你没有为你的微控制器使用正确的架构

https://i.imgur.com/WmpS0A7.png

如果您使用的是 PlatformIO,则在创建项目时选择板子或

您可以将新板添加为环境变量

https://i.imgur.com/gLqUhUn.png

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-09-17
    • 1970-01-01
    • 1970-01-01
    • 2021-05-11
    • 2013-08-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多