查看: 1688|回复: 0

[评测分享] 【米尔-STM32MP135入门级开发板测评】 1.Ether-CAT主站

[复制链接]
  • TA的每日心情
    无聊
    2024-10-11 22:04
  • 签到天数: 67 天

    连续签到: 1 天

    [LV.6]常住居民II

    发表于 2023-9-23 11:31:59 | 显示全部楼层 |阅读模式
    分享到:
    下载EtherCAT源码:gitclone  https://github.com/OpenEtherCATsociety/SOEM
    1.png
    在终端中进入该路径,安装一下Cmake:
    2.png
    添加编译工具:
    3.png
    新建文件build_mp135输入cmake..
    4.png
    然后输入make:
    Scanning dependencies of target soem
    [ 4%] Building C object CMakeFiles/soem.dir/soem/ethercatbase.c.o
    [ 9%] Building C object CMakeFiles/soem.dir/soem/ethercatcoe.c.o
    [ 14%] Building C objectCMakeFiles/soem.dir/soem/ethercatconfig.c.o
    [ 19%] Building C objectCMakeFiles/soem.dir/soem/ethercatdc.c.o
    [ 23%] Building C object CMakeFiles/soem.dir/soem/ethercateoe.c.o
    [ 28%] Building C objectCMakeFiles/soem.dir/soem/ethercatfoe.c.o
    [ 33%] Building C objectCMakeFiles/soem.dir/soem/ethercatmain.c.o
    [ 38%] Building C objectCMakeFiles/soem.dir/soem/ethercatprint.c.o
    [ 42%] Building C object CMakeFiles/soem.dir/soem/ethercatsoe.c.o
    [ 47%] Building C objectCMakeFiles/soem.dir/osal/linux/osal.c.o
    [ 52%] Building C objectCMakeFiles/soem.dir/oshw/linux/nicdrv.c.o
    [ 57%] Building C objectCMakeFiles/soem.dir/oshw/linux/oshw.c.o
    [ 61%] Linking C static library libsoem.a
    [ 61%] Built target soem
    Scanning dependencies of target simple_ng
    [ 66%] Building C objecttest/simple_ng/CMakeFiles/simple_ng.dir/simple_ng.c.o
    [ 71%] Linking C executable simple_ng
    [ 71%] Built target simple_ng
    Scanning dependencies of target slaveinfo
    [ 76%] Building C objecttest/linux/slaveinfo/CMakeFiles/slaveinfo.dir/slaveinfo.c.o
    [ 80%] Linking C executable slaveinfo
    [ 80%] Built target slaveinfo
    Scanning dependencies of target eepromtool
    [ 85%] Building C objecttest/linux/eepromtool/CMakeFiles/eepromtool.dir/eepromtool.c.o
    [ 90%] Linking C executable eepromtool
    [ 90%] Built target eepromtool
    Scanning dependencies of target simple_test
    [ 95%] Building C objecttest/linux/simple_test/CMakeFiles/simple_test.dir/simple_test.c.o
    [100%] Linking C executable simple_test
    [100%] Built target simple_test
    打开MobaXterm,通过SSH连接到开发板,手动设置:
    5.png
    SSH与开发连接:
    6.png
    将编译的文件放到开发板的/mnt/d路径下,如下所示:
    7.png
    添加运行权限:
    8.png
    运行:

    9.png


    回复

    使用道具 举报

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

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    手机版|小黑屋|与非网

    GMT+8, 2024-11-22 10:07 , Processed in 0.114098 second(s), 17 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.