build openPOWERLINK + spartan6

本文展示了使用Xilinx MicroBlaze处理器进行嵌入式系统开发的具体步骤,包括配置开发环境、设置工具链文件、编译源代码及安装过程等关键技术环节。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1,>bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/hardware/build/xilinx-microblaze$ source /opt/Xilinx/14.7/ISE_DS/settings64.sh

2,>bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/hardware/build/xilinx-microblaze$ cmake -DCAMKE_TOOLCHAIN_FILE=../../../cmake/toolchain-xilinx-ise-microblaze-gnu.cmake ../..

 >bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/hardware/build/xilinx-microblaze$ cmake ../.. -DCMAKE_BUILD_TYPE=Debug -DDEMO_S6PLKEB_CN_SINGLE_GPIO=ON

  >bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/hardware/build/xilinx-microblaze$ make

  >bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/hardware/build/xilinx-microblaze$ make install

3,>bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/stack/build/xilinx-microblaze$ cmake -DCMAKE_TOOLCHAIN_FILE=../../../cmake/toolchain-xilinx-ise-microblaze-gnu.cmake ../.. -DCMAKE_BUILD_TYPE=Debug -DCFG_COMPILE_LIB_CN=ON -DCFG_COMPILE_LIB_CN_HW_LIB_DIR=~/openPOWERLINK/v2.6.2.noos/hardware/lib/generic/microblazeise/avnet-s6plkeb/cn-single-gpio

  >bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/hardware/build/xilinx-microblaze$ make

 >bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/hardware/build/xilinx-microblaze$ make install

4,>bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/apps/demo_cn_embedded/build/xilinx-microblaze$ cmake -DCMAKE_TOOLCHAIN_FILE=../../../../cmake/toolchain-xilinx-ise-microblaze-gnu.cmake ../.. -CMAKE_BUILD_TYPE=Debug

>bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/apps/demo_cn_embedded/build/xilinx-microblaze$ make

>bruce@bruce-Lenovo-IdeaPad-V450:~/openPOWERLINK/v2.6.2.noos/apps/demo_cn_embedded/build/xilinx-microblaze$ make install

1 Introduction......................................................................................... 1 1.1 Ethernet POWERLINK................................................................ 1 1.2 Key Features................................................................................. 2 1.3 Supported object dictionary entries .............................................. 2 2 Application Programming Interface ................................................. 4 2.1 Software Structure........................................................................ 4 2.1.1 Directory Structure .......................................................... 5 2.1.2 Module Structure............................................................. 6 2.1.3 Header files ..................................................................... 7 2.1.4 Target dependant modules .............................................. 7 2.2 Data types ..................................................................................... 7 2.3 Functions .................................................................................... 14 2.3.1 EPL API Layer .............................................................. 14 2.3.1.1 Event callback function tEplApiCbEvent ...... 14 2.3.1.2 Sync callback function tEplApiCbSync......... 31 2.3.1.3 Function EplApiInitialize() ............................ 32 2.3.1.4 Function EplApiShutDown() ......................... 35 2.3.1.5 Function EplApiExecNmtCommand() .......... 36 2.3.1.6 Function EplApiMnTriggerStateChange() .... 37 2.3.1.7 Function EplApiReadObject() ....................... 38 2.3.1.8 Function EplApiWriteObject() ...................... 41 2.3.1.9 Function EplApiFreeSdoChannel() ............... 42 2.3.1.10 Function EplApiReadLocalObject() .............. 43 2.3.1.11 Function EplApiWriteLocalObject() ............. 44 2.3.1.12 Function EplApiLinkObject() ........................ 44 2.3.1.13 Function EplApiProcess() .............................. 45 2.3.1.14 Function EplApiProcessImageSetup() ........... 46 2.3.1.15 Function EplApiProcessImageExchangeIn() . 47 2.3.1.16 Function EplApiProcessImageExchangeOut() ........................................................................ 48 2.3.2 Edrv module .................................................................. 49 2.3.2.1 Callback Function tEdrvRxHandler() ............ 49 2.3.2.2 Callback Function tEdrvTxHandler() ............ 51 2.3.2.3 Function EdrvInit() ........................................ 52 2.3.2.4 Function EdrvShutdown().............................. 52 2.3.2.5 Function EdrvDefineRxMacAddrEntry() ...... 53 2.3.2.6 Function EdrvUndefineRxMacAddrEntry() .. 53 2.3.2.7 Function EdrvAllocTxMsgBuffer() ............... 54 2.3.2.8 Function EdrvReleaseTxMsgBuffer() ........... 54 2.3.2.9 Function EdrvSendTxMsg() .......................... 55 2.3.2.10 Function EdrvTxMsgReady() ........................ 55 openPOWERLINK: Ethernet POWERLINK Protocol Stack © SYS TEC electronic GmbH 2008 L-1098e_2 2.3.2.11 Function EdrvTxMsgStart()........................... 56 3 Object Dictionary.............................................................................. 57 3.1 Fundamentals ............................................................................. 57 3.2 Structure of an OD, Standardized Profiles................................. 57 3.2.1 Communication Profile ................................................. 58 3.2.2 Device Profiles.............................................................. 58 3.3 Object Dictionary Structure ....................................................... 58 3.4 Object Dictionary Definition...................................................... 59 3.5 Example...................................................................................... 66 4 Configuration and Scaling ............................................................... 68 4.1 General configuration of the EPL stack..................................... 68 4.2 Ethernet driver............................................................................ 69 4.3 DLL module ............................................................................... 70 4.4 OBD module .............................................................................. 70 4.5 SDO modules ............................................................................. 71 4.6 Timer module ............................................................................. 71 4.7 EPL API Layer ........................................................................... 72 Glossary ...................................................................................................... 73 References................................................................................................... 75
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值