Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    新手求教,hello_word编译好并下载到板子了,但是运行出错“可执行文件格式错误”

    MR Series
    2
    3
    1329
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hhxxttxs LV 2 last edited by whycan

      如题,前面基本都是按照 https://d1.docs.aw-ol.com/study/study_6helloword/ 这里的教程做的,但是编译好了也下载到板子了,但是不能执行
      db2a8e04-53e6-49e2-bb16-2dc573b83f53-image.png

      whycan 1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 @hhxxttxs last edited by

        @hhxxttxs
        板子接上串口连接电脑,打开电脑串口终端,输入 该文件的完整路径即可执行。

        1 Reply Last reply Reply Quote Share 0
        • H
          hhxxttxs LV 2 last edited by

          经群里大佬指点,解决了,谢谢大家。

          前情是我之前已经连接好板子并且把编译好的文件成功下载到板子上了,然后执行的部分出了错。应该在adb push这句后先执行

          adb shell
          

          再

          chmod +x hello_word
          ./hello_word
          

          就好了
          2fb98757-2d92-48d4-8981-26103f77f91b-image.png

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策