谭文阳,李军伟*,朱青松
山东理工大学交通与车辆工程学院,山东淄博255049
摘要:针对重型拖拉机控制器的升级维护问题,采用32位微控制器MPC5744P,开发基于控制器局域网络总线技术的引导加载程序,设计上位机。依据引导加载程序的需求开发FlexCAN模块、Flash模块的底层驱动程序及S19文件的解析代码。为了实现对程序的在线更新,利用Python的外部工具PyQt5设计相应的上位机。为验证系统性能,通过上位机对MPC5744P开发板进行程序升级,对引导加载程序进行测试。测试结果表明:设计的引导加载程序能够通过与上位机的交互准确实现应用程序的在线升级,符合设计要求。
关键词:引导加载程序;重型拖拉机控制器;Flash驱动;FlexCAN通信;上位机设计
Abstract:In order to facilitate the upgrade and maintenance of automobile controller, MPC5744P CAN bus based bootloader and PyQt5 based upper computer are designed and developed.The program update of microcontroller MPC5744P is completed through the configuration of FlexCAN communication module, the design ofFlash driver, the analysis of S19 file.PyQt5, an external Python tool, is used to design the corresponding upper computer in order to update the program online.In order to verify the system performance,the bootloader is tested by upgrading the program of MPC5744P development board which use the upper computer.The test results show that the bootloader can accurately realize the online upgrade of the application program through the interaction with the upper computer, which meets the design requirements.
Keywords:bootloader;heavy tractor controller;the Flash driver;FlexCAN communication;upper computer design
|