HarmonyOS鸿蒙Next中HI3861烧写失败

HarmonyOS鸿蒙Next中HI3861烧写失败 严格安装文档操作

> Executing task in folder HI3861: hpm run 'upload' 

internal/validators.js:120
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefined
    at validateString (internal/validators.js:120:11)
    at Module.require (internal/modules/cjs/loader.js:1018:3)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\Users\the_r\.deveco\ohos_bundles@huawei\deveco_config\scripts\upload.js:8:22)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'ERR_INVALID_ARG_TYPE'
}
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command hpm run 'upload'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

更多关于HarmonyOS鸿蒙Next中HI3861烧写失败的实战教程也可以访问 https://www.itying.com/category-93-b0.html

10 回复

我也遇到同样的问题,一路下来真不容易啊,问题真多。

更多关于HarmonyOS鸿蒙Next中HI3861烧写失败的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


您好,您也遇到和楼主同样的问题么?能否详细描述下?

出错的现场截图,方便的话发出来看下

环境已经弄好了,没有记录了。我搭建了几遍环境(没有用到vs code),没有再碰到问题。

板子设置:

| hi3861 | risc-v开发板 | Disable |
|--------|--------------|---------|

Burn:
Burning Mode hiburn-jlink-upload

Burn Files:Mode hiburn

有要学HarmonyOS AI的同学吗,联系我:https://www.itying.com/goods-1206.html

可能当前项目中生成的bundle.json文件中的“board”字段的值与你当前选择的开发板类型不匹配(Board对应的值),
从而导致当前执行的各种操作找不到对应的脚本文件。
你试着点击“Board”重新选择开发板类型,此时重新点击烧录试一下。

亲爱滴开发者 ,这个问题已经在处理中啦,稍后答复你哟 ,么么哒

在HarmonyOS鸿蒙Next中,HI3861烧写失败可能由以下原因导致:

  1. 硬件连接问题:检查开发板与电脑的连接是否稳定,确保USB线缆和接口无损坏。
  2. 驱动未正确安装:确认HI3861的驱动程序已正确安装,设备管理器中应显示正常连接的设备。
  3. 烧写工具配置错误:确保烧写工具(如Hiburn)的配置参数正确,包括波特率、芯片型号、串口号等。
  4. 固件文件损坏:验证烧写的固件文件是否完整,建议重新下载或生成固件。
  5. 电源问题:检查供电是否稳定,HI3861开发板可能需要外部电源支持。
  6. 烧写模式未正确进入:确认HI3861已正确进入烧写模式,通常需要按住特定按键再上电。
  7. 烧写工具版本不匹配:确保使用的烧写工具版本与HI3861芯片兼容。

若以上步骤均无误,仍无法解决,建议检查日志文件或尝试其他烧写工具。

在HarmonyOS鸿蒙Next中,HI3861烧写失败可能由以下原因导致:

  1. 驱动问题:确保USB转串口驱动已正确安装。
  2. 接线错误:检查开发板与电脑的连接线是否接触良好。
  3. 烧录工具配置错误:确认烧录工具中的串口号、波特率等参数设置正确。
  4. 固件版本不匹配:确保烧录的固件版本与开发板兼容。
  5. 电源问题:确保开发板供电稳定。

建议逐一排查,必要时参考官方文档或技术支持。

回到顶部