基于LabVIEW的实境实验环境下STM32-MCU远程烧写方法
STM32-MCU Remote Programming Method in Real-world Experimental Environment Based on LabVIEW
徐瑞洋 1陈嘉豪 1王贺杰 1游锦鹏 1陈奎2
作者信息
- 1. 徐州工程学院信息工程学院,江苏 徐州 221000
- 2. 徐州工程学院信息工程学院,江苏 徐州 221000;徐州工程学院江苏省大型工程装备检测与控制重点建设实验室,江苏 徐州 221008
- 折叠
摘要
在构建MCU嵌入式系统的远程实境实验过程中,首先要解决HEX固件文件的远程传输和烧写问题.为此,采用LabVIEW实现一个基于TCP/IP的 1-N客户机/服务器架构完成HEX文件的可靠传输和烧写过程中的信息交互,服务器端调用官方ST-LINK接口函数实现IAP方式下STM-32 MCU实际烧写过程.通过 1-N客户机/服务器架构可实现对多个STM32 设备的IAP方式的HEX烧写.实验验证表明:该程序架构能有效地实现远程实境实验所需MCU固件远程传输和烧写,进一步丰富了远程实境实验的内容.
Abstract
The process of remote programming of STM32 microcontroller units(MCUs)poses a unique challenge in the realm of remote reality experiments.In this paper,a LabVIEW-based 1-N client/server architecture using TCP/IP is pro-posed to solve the problem of reliable transmission of HEX files and information interaction during the programming process.The server utilizes the official ST-LINK interface function to implement the actual programming process of STM32 MCU in IAP mode.Through this architecture,IAP HEX programming of multiple STM32 devices can be achieved,enabling the re-mote transmission and programming of MCU firmware required for remote real-world experiments.The results of experi-ments demonstrate that this approach is effective in enriching the content of remote reality experiments.
关键词
STM32/MCU/远程烧写/实境实验/LabVIEWKey words
STM32-MCU/remote programming/real-world experiments/LabVIEW引用本文复制引用
出版年
2024