Code generation for STM32F4 boards with Modelica device drivers

L. Berger, Martin Sjölund, Bernhard Thiele
{"title":"Code generation for STM32F4 boards with Modelica device drivers","authors":"L. Berger, Martin Sjölund, Bernhard Thiele","doi":"10.1145/3158191.3158204","DOIUrl":null,"url":null,"abstract":"With the modeling, simulation and code generation of mixed continuous/discrete models in Modelica, a development approach becomes feasible which addresses one of the core challenges in cyber-physical systems. The aim is to achieve a simulation of the embedded system model in a physical environment model, before its deployment on real hardware. Based on the already existing support for Arduino boards, an effort has been started for supporting code-generation from Modelica models for STM32F4 boards. In this paper the concept will be explained. Basically Modelica's C-interface and the experimental low-footprint embedded code generation of OpenModelica is used for generating code for the main function. The support for the STM32F4 family is realized with the C-interface functions using the hardware abstraction layer (HAL) application programming interface (API) STM32F4CUBE from ST Microelectronics.","PeriodicalId":261856,"journal":{"name":"Proceedings of the 8th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools","volume":"17 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 8th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3158191.3158204","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

With the modeling, simulation and code generation of mixed continuous/discrete models in Modelica, a development approach becomes feasible which addresses one of the core challenges in cyber-physical systems. The aim is to achieve a simulation of the embedded system model in a physical environment model, before its deployment on real hardware. Based on the already existing support for Arduino boards, an effort has been started for supporting code-generation from Modelica models for STM32F4 boards. In this paper the concept will be explained. Basically Modelica's C-interface and the experimental low-footprint embedded code generation of OpenModelica is used for generating code for the main function. The support for the STM32F4 family is realized with the C-interface functions using the hardware abstraction layer (HAL) application programming interface (API) STM32F4CUBE from ST Microelectronics.
带有Modelica设备驱动程序的STM32F4板的代码生成
借助Modelica中混合连续/离散模型的建模、仿真和代码生成,一种解决网络物理系统核心挑战之一的开发方法变得可行。其目的是在将嵌入式系统模型部署到实际硬件之前,在物理环境模型中实现嵌入式系统模型的仿真。基于已经存在的对Arduino板的支持,已经开始努力支持从STM32F4板的Modelica模型生成代码。本文将对这一概念进行解释。基本上,Modelica的c接口和实验性的OpenModelica低占用的嵌入式代码生成用于生成主函数的代码。采用意法半导体的硬件抽象层(HAL)应用编程接口(API) STM32F4CUBE,实现了c接口功能对STM32F4系列的支持。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信