摘要
针对DSP嵌入式系统利用仿真器烧写程序不利于后期软件维护升级的难题,提出了一种基于RS422的TMS320F2812软件在线加载方法,该方法由通用的升级程序和应用程序两部分组成。升级程序根据DSP片内FLASH存储的加载标志实现软件代码的加载、CRC校验及程序跳转等,并考虑掉电、通信数据错误等异常工况下的容错处理。该方法已在某航空机载电机驱动器上得到应用,能够保证加载代码的正确性、可靠性,具有一定的工程应用价值。
Aiming at the problem of using simulator to write program in embedded system of DSP,which is not conducive to software maintenance and upgrade in later period,an online loading method of TMS320F2812 software based on RS422 is designed.This method consists of two parts:general upgrade program and application program.The upgrade program realizes software code loading,CRC verification and process according to the loading mark stored in FLASH of DSP chip.Sequence jump and other abnormal conditions such as power failure,communication data errors are considered for fault-tolerant processing.This method has been applied to an airborne motor driver,which can ensure the correctness and reliability of the loading code and has certain engineering application value.
作者
刘政华
常培平
Liu Zhenghua;Chang Peiping(Guizhou Aerospace Linquan Motor Co.,Ltd.,Guiyang 550081,China;North Navigation and Control Technology Limited Ltd)
出处
《单片机与嵌入式系统应用》
2019年第5期63-66,共4页
Microcontrollers & Embedded Systems