[问答]鸿蒙开发板Hi3861烧录报错?

阅读量0
0
4
各位高手:
鸿蒙开发板烧录时出现如下错误,请问怎么解决?


> Executing task: c:usersxiexg.deveco-device-toolcoredeveco-venvscriptshos.exe run --target upload --project-dir \10.5.183.68harmonyosohos --environment hi3861 <


Processing hi3861 (platform: hisilicon; board: hi3861; framework: ohos-sources)
--------------------------------------------------------------------------------------------------------------------------------------------------Error: Traceback (most recent call last):
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformio__main__.py", line 108, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesclickcore.py", line 829, in __call__     
    return self.main(*args, **kwargs)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesclickcore.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiocommands__init__.py", line 44, in invoke
    return super(PlatformioCLI, self).invoke(ctx)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesclickcore.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesclickcore.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesclickcore.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesclickdecorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiocommandsruncommand.py", line 141, in cli
    process_env(
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiocommandsruncommand.py", line 183, in process_env      
    result = {"env": name, "duration": time(), "succeeded": ep.process()}
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiocommandsrunprocessor.py", line 71, in process
    p = PlatformFactory.newPlatform(self.options["platform"])
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiomanagersplatform.py", line 276, in newPlatform
    _instance = platform_cls(join(platform_dir, "platform.json"))
  File "C:Usersxiexg.deveco-device-toolplatformshisiliconplatform.py", line 12, in __init__
    super().__init__(manifest_path)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiomanagersplatform.py", line 570, in __init__
    self.pm = PackageManager(
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiomanagerspackage.py", line 847, in __init__
    self.hpm_packages = self.__collect_hpm_packages()
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformioutil.py", line 58, in wrapper
    self.cache[key] = (time.time(), func(*args, **kwargs))
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packagesplatformiomanagerspackage.py", line 881, in __collect_hpm_packages    hpm = hpm_adapter.Hpm()
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packageshpm_adapterhpm_adapter.py", line 59, in __init__
    self.get_config()
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packageshpm_adapterhpm_adapter.py", line 81, in get_config
    code, out, _ = self.__exec(cmd=['config'], cwd=None)
  File "c:usersxiexg.deveco-device-toolcoredeveco-venvlibsite-packageshpm_adapterhpm_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:usersxiexg.deveco-device-toolcoredeveco-venvscriptshos.exe 'run', '--target', 'upload', '--project-dir', '\10.5.183.68harmonyosohos', '--environment', 'hi3861'”已终止,退出代码: 1。


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


回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友