摘要
为实现高效的C语言代码编写,将Matlab/Simulink应用在基于ARM Cortex-M3内核STM32微控制器的嵌入式系统软件开发中。利用专门针对STM32系列微控制器开发的Simulink模块库RapidSTM32及其工具套件,对嵌入式系统进行建模与仿真。仿真成功后,在模型编译器中把其翻译成高效的MDK C语言代码,实现了STM32嵌入式系统软件代码的快速生成。实验结果表明,所生成的软件代码在STM32嵌入式目标系统中运行状况良好。该方法在软件设计效率和易维护性等方面优于手工编写的代码方法。
In order to get high efficiency of code design, Matlab/Simulink are applied to embedded system development based on STM32. A Simulink embedded target blockset and the tool kit called Rapid STM32 blockset for ARM CortemM3 STM32 microcontrollers tool box in Matlab are used to model and simulate embedded system, and then coder is used to translate the model into efficient code. The co der is used to translate model into efficient user's code of the target system based on STM32, and the code of the embedded software is rapidly generated. Experimental results show that the code works well in the STM32 embedded target system. The methods has better performance and higher code efficiency than that generated by hand.
出处
《单片机与嵌入式系统应用》
2011年第10期46-48,共3页
Microcontrollers & Embedded Systems