一种支持Cortex-M3的Simulink自定义目标系统设计
DOI:
CSTR:
作者:
作者单位:

海军工程大学动力工程学院

作者简介:

通讯作者:

中图分类号:

TP273

基金项目:

国家自然科学基金 (51579242)


A design of Simulink custom target system supporting Cortex-M3
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    在基于模型的嵌入式控制系统设计开发中,利用Simulink Coder和Embedded Coder等工具为控制算法、系统模型等自动生成嵌入式代码被证实是一种高效、可靠、便捷的方法。Mathworks为自带的Simulink模块和MTALAB函数的目标代码生成提供了支持,缺乏的是对于嵌入式开发中目标外围功能的直接支持,比如数字、模拟输入/输出,网络通信以及其它微控制器自身功能,而这对于嵌入式系统开发往往是不可缺少的重要部分。针对工业级嵌入式产品领域应用广泛的Cortex-M3内核微控制器这一目标,设计开发了支持常用外围功能的STM32F1XTarget目标系统以及配套的嵌入式控制板,详细阐述了STM32F1XTarget的工作流程和自定义设备驱动模块设计原理。设计的目标系统支持由系统模型到应用程序下载的一键式操作,这将算法设计和产品开发无缝连接到一起,大大加速了嵌入式控制系统的开发流程,降低了成本,最后在倒立摆嵌入式控制系统开发中进行了实验验证,检验了该目标的有效性和可靠性。

    Abstract:

    In the design and development of model-based Embedded control system, it has been proved to be an efficient, reliable and convenient method to automatically generate Embedded codes for control algorithms and system models by using Simulink Coder and Embedded Coder tools. Mathworks for built-in Simulink module and target code generation of MTALAB function provides support, lack of is a target for embedded development in direct support of peripheral functions, such as digital and analog input/output, network communications and other function of micro-controller itself, and that for embedded system development is often an important and indispensable part. In order to achieve the goal of Cortex-M3 kernel micro-controller which is widely used in the field of industrial embedded products, the STM32F1XTarget target system supporting common peripheral functions and the matching embedded control board are designed and developed, and the work flow of STM32F1XTarget and the design principle of custom device driver module are described in detail. Design target system supported by the system model to the application download one-click operation, the algorithm design and product development of seamless connection together, greatly accelerated the development process of embedded control system, reduce the cost and the last in the inverted pendulum embedded control system development experimental verification, test the validity and reliability of the target.

    参考文献
    相似文献
    引证文献
引用本文

常广晖,陈诚,吴越,王宇欣,刘树勇.一种支持Cortex-M3的Simulink自定义目标系统设计计算机测量与控制[J].,2021,29(8):190-195.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2021-05-14
  • 最后修改日期:2021-06-23
  • 录用日期:2021-06-23
  • 在线发布日期: 2021-08-19
  • 出版日期:
文章二维码