摘要
针对CAN总线上节点模块的程序更新需求,研究了STM32从节点模块的应用编程(IAP)技术及设计方法。根据IAP技术的特点规划了STM32的Flash存储器分区,设计了用户Bootloader程序。另外采用Visual Studio C#设计了上位机用户界面程序,通过RS232转CAN接口实现了PC上位机与STM32节点模块的CAN通信。通过上位机和下位机的通信交互,论述了基于CAN总线的STM32节点模块应用编程技术及具体实现方法。
Due to the requirement of on-line programming for node modules on CAN bus,this article introduces the in application programming( IAP) technology and design method of STM32 slave node.According to the characteristics of IAP,the STM32 Flash area is allocated and Bootloader software is designed. In addition,user interface software is designed using Visual Studio C# and CAN communication is realized between PC and STM32 node module via the RS232 to CAN conversion interface. Through the interactive communication of master computer and slave node,the STM32 in application programming technology and concrete realization method is presented.
出处
《信息技术》
2015年第10期49-52,共4页
Information Technology
基金
国家"863"高技术项目(2006AA03Z348)
教育部科技研究重点项目资助(207033)