[问答]

鸿蒙开发板Hi3861烧录报错?

323 HarmonyOS
分享
各位高手:
鸿蒙开发板烧录时出现如下错误,请问怎么解决?


> Executing task: c:\users\xiexg\.deveco-device-tool\core\deveco-venv\scripts\hos.exe run --target upload --project-dir \\10.5.183.68\HarmonyOS\ohos --environment hi3861 <


Processing hi3861 (platform: hisilicon; board: hi3861; framework: ohos-sources)
--------------------------------------------------------------------------------------------------------------------------------------------------Error: Traceback (most recent call last):
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\__main__.py", line 108, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\click\core.py", line 829, in __call__     
    return self.main(*args, **kwargs)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\commands\__init__.py", line 44, in invoke
    return super(PlatformioCLI, self).invoke(ctx)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\click\decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\commands\run\command.py", line 141, in cli
    process_env(
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\commands\run\command.py", line 183, in process_env      
    result = {"env": name, "duration": time(), "succeeded": ep.process()}
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\commands\run\processor.py", line 71, in process
    p = PlatformFactory.newPlatform(self.options["platform"])
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\managers\platform.py", line 276, in newPlatform
    _instance = platform_cls(join(platform_dir, "platform.json"))
  File "C:\Users\xiexg\.deveco-device-tool\platforms\hisilicon\platform.py", line 12, in __init__
    super().__init__(manifest_path)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\managers\platform.py", line 570, in __init__
    self.pm = PackageManager(
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\managers\package.py", line 847, in __init__
    self.hpm_packages = self.__collect_hpm_packages()
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\util.py", line 58, in wrapper
    self.cache[key] = (time.time(), func(*args, **kwargs))
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\platformio\managers\package.py", line 881, in __collect_hpm_packages    hpm = hpm_adapter.Hpm()
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\hpm_adapter\hpm_adapter.py", line 59, in __init__
    self.get_config()
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\hpm_adapter\hpm_adapter.py", line 81, in get_config
    code, out, _ = self.__exec(cmd=['config'], cwd=None)
  File "c:\users\xiexg\.deveco-device-tool\core\deveco-venv\lib\site-packages\hpm_adapter\hpm_adapter.py", line 44, in __exec
    err = err.decode()
UnicodeDecodeError: 'utf-8' Codec can't decode byte 0xd3 in position 32: invalid continuation byte


============================================================


An unexpected error occurred. Please report this error to
developers:
  https://devecostudio.rnd.huawei.com/download/embedded-studio


============================================================


终端进程“c:\users\xiexg\.deveco-device-tool\core\deveco-venv\scripts\hos.exe 'run', '--target', 'upload', '--project-dir', '\\10.5.183.68\harmonyos\ohos', '--environment', 'hi3861'”已终止,退出代码: 1。


终端将被任务重用,按任意键关闭。


4
2021-5-18 15:18:43   评论 分享淘帖 邀请回答
2个回答
2021-5-18 18:53:35 评论

举报

请参考官方VScode环境配置说明
https://device.harmonyos.com/cn/docs/ide/user-guides/install_windows-0000001050164976
3816烧录说明
https://device.harmonyos.com/cn/docs/ide/user-guides/hi3861_upload-0000001051668683

如果还搞不定可以换成hitool 烧录方式
2021-5-19 08:08:04 评论

举报

撰写答案

你正在撰写答案

如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。

您需要登录后才可以回帖 登录 | 注册

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
我要提问
快速回复
扫一扫分享
返回顶部 返回列表