keil工程更换pack芯片方法

STM32更换芯片型号指南
本文介绍了在keil工程中更换STM32芯片型号的步骤,包括选择新设备、修改全局宏定义以及更换启动文件,确保工程适配新的STM32F103C8。

1,更换芯片型号

打开工程点击魔术棒,Options for Target的子菜单Device找到STM32F103C8,选好后按OK

2,​ 更改全局宏定义

STM32F103RC为大容量器件,HD表示,STM32F103C8为大容量器件,MD表示。同理如果为小容量器件则为LD。根据名字可以确定单片机的容量类型。参考STM32的参考手册命名规则,获得单片机的容量,在对照数据手册便可知道单片机是哪种容量类型的。

点击魔术棒,找到C/C++子菜单下的Define;.将STM32F10X_HD改为STM32F103_MD,点击OK。

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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

寒听雪落

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值