ST FOC 5.0说明书 快速入门 SDK v5.0.pdf
ST FOC 5.0说明书 配合 开源库 https://download.csdn.net/download/hxinstar/10322042使用UM2374List of tablesList of tablesTable 1. List of acronymsTable 2Document revision history..23UM2374 Rey 13/24List of figuresUM2374List of figuresFigure 1. ST MC Workbench -Icon and installation folder treeFigure 2. ST MC Workbench-GUI expanded top viewFigure 3. ST Motor Profiler-GUI889Figure 5. ST Motor Profiler-SM-PMSM parameters exampleFigure 4. ST Motor Profiler- Hardware setup list examples1011Figure 6. ST Motor Profiler-l-PMSM parameters exampleFigure 7. ST Motor Profiler-Measurement results12Figure 8. ST Motor Profiler-Save window13Figure 9. ST MC Workbench - New Project window14Figure 10. ST MC Workbench -New Project Info window14Figure 11. ST MC Workbench -Project Settings15Figure 12. ST MC Workbench-Project Settings window.15Figure 13. ST MC Workbench -Project generation button16Figure 14. ST MC Workbench -Workspace selectionFigure 15. ST MC Workbench -Project generation build infoFigure19. ST MC Workbench- Use of the motor control and monitoring.∴、∴,"…,,∴…….17Figure 16. IDE-MC Project view example18Figure 17. STMC Workbench-Motor monitoring button.19Figure 18. ST MC Workbench -Motor monitoring GUI204/24UM2374 Rey 1/UM2374General informationGeneral informationThe Mc sDK is used for the development of motor-control applications running on STM3232-bit microcontrollers based on the arm Cortex-M processorTable 1 presents the definition of acronyms that are relevant for a better understanding ofthis documentTable 1. List of acronymsAcronymDescriptionGUIGraphical user interfaceIDEIntegrated development environmentFOCField-oriented controlFWFirmwareMotor controlMC WBMotor control Workbench(STMicroelectronics sw tool)MPMotor Profiler(STMicroelectronics software tool)PMSMPermanent-magnet synchronous motorPWMPulse-width modulationSDKSoftware development kitVCVector controlMore information about ST MC Workbench is provided in the stm32 motor control SDKv5.0toolsusermanual(um2380)availableatwww.st.comarmUM2374 Rey 15/24Motor control ecosystem setupUM23742Motor control ecosystem setupA suitable ST Motor Control ecosystem environment includesA PC running the needed Mc software toolsA third-party IDEa third-party ANSI C-compilerA JTAG/SWD interface for debugging and programmingAn STMicroelectronics application board with one of the STM32 microcontrollerssupported. It drives the power stage and featuresPWM outputs to gate driverADC channels to measure currentsDC bus voltageA three-phase PMsM motol· A power supplyRefer to the STM32 motor control software development kit(Mc sDk data brief(DB3548)atwww.st.comandtothereleasenoteformoredetails2.1Software tool setupThe STMicroelectronics motor-control ecosystem runs on a pc with Windows7The following Pc software tools are correctly installedST MC Workbench (v5.0.0 or later)STM32CubeMX(v4 24.0 or later)ST-LINK/2(v4.0.0 or later)Any supported IDEIAR Embedded Workbench@ for Arm(v7.80.4Keil MDK tools (v5.24.2 or later)Ac6 System Workbench(v2.3.0 or later)(a)Refer to the respective user manuals for proper installation. STMicroelectronics documentsareavailablefromtheinternetsiteatwwwst.comSTM32 motor control SDK v5.0 tools user manual (UM2380STM32 CubeMX for STM32 configuration and initialization c code generation usermanual (UM1718)STM32 ST-LINK utility software description user manual(UM0892)The AC6 tool framework is not supported in SDK v5.0 but in later versions6/24UM2374 Rey 1/UM2374Motor control ecosystem setup22Hardware setupThe connection of the STMicroelectronics application board to the pc requires a USBType-A connector. Refer to the description of the application board for details on the USBcableA dedicated description card is delivered with each STMicroelectronics application board forproper installation For more details, refer to the user manual of the board available atwww.st.comThe selected hardware can be one of the three setups· The complete MC KitOne of the complete inverter boardsAny STM32 evaluation board combined with one of the ST evaluation power stagesthat include the mc connectorUM2374 Rey 17/24Getting StartedUM23743Getting StartedWarning: Check that the board is correctly configured for the motorcontrol application and supplied with the expected inputvoltageNoteRefer to the user manual of the related hardware to setup the correct configuration, voltagerange, serial communication capabilities, and programming/debugging interface3.1Hardware connectionConnect a uSb cable between the pc and the stmicroelectronics application board andthe JTAG/SWD programming cable if it is different from the USB cable3.2Motor profilingLaunch the ST MC Workbench software tool either byclicking on its iconrunning it directly from the installation folder treeBoth ways of launching the ST MC Workbench are illustrated in Figure 1Figure 1. ST MC Workbench- Icon and installation folder treeI STMicroelectrorics感FOC SDKLv.3.0MotorControlv500WorkBenchST Motor Control Workbenchd ST Motor profileren the st motor profiler tool either byUsing its dedicated button in the St Mc Workbench GUl as illustrated in Figure 2Running it directly from the installation folder tree as illustrated in Figure 1Figure 2. ST MC Workbench-GUl expanded top viewFile Tools Help Documet ta ionNew ProjectLoad Project4 About HelpMotor ProfilRcGert ProJEcts己tdbrsDRpower board8/24UM2374 Rey 1/UM2374Getting StartedClick on the Select Boards button to display the list of supported boards as shown onFigure 3 and select the STMicroelectronics application board setup. Figure 4 on page 10presents examples from this listNoteThe ST Motor Profiler tool may be used only with ST hardware in the list of supportedsetups.Figure 3. ST Motor Profiler-GUI2 ST Motor Profile.l:e augmentedMotor ProfilersPole pairsPe row to detecbeed and Current /mitsMaκSpet1600FPMn7 Select Board∧pk02530pkMagnetic: SM-PMSN○-NSMMechanIcal mode lO CenElectrical modelOW000UM2374 Rey 19/24Getting StartedUM2374Figure 4. ST Motor Profiler-Hardware setup list examplesE ST Motor ProfiY Hideabsolete boarde arch Control board by narSe arch power boac bv nareControl boardower BoardxCancelHide boards with warningNUCLEO-F302R8X-NUCLEO-HMOTM1 3shNUCLEO-F302R8X-NUCLEO-HMOBM1 3shT2F302R8T6L6230PDSTM32F302R8T6STL22ON6FT●Acf8m:m3SELNRV2 Emiol connectorC Product Web PageG Product Web PageC Product Web PageC Product Web PageNUCLEO-F303RESTEVAL-IPMO5F 3ShNUCLEO.F303RESTEVAL-IPM108 3sh●Aiv命Ativ● Ac livSn Ngor ombreI connectorST-LINKV2C Product Web PageC Product Web PageC Product Web PageC Product Web PageClick on the sTmicroelectronics hardware setup to select it and configure the st motorProfiler toolAs an example, Figure 4 shows the selection of the P-NUCLEO-IHM001 motor controlNucleo pack with NucLEo-F302R8 and X-NUCLEO-IHMO7M1After hardware setup selection, fill in the parameter fields with the motor informationThe number of pole pairs of the motor(mandatory fieldThe Max Speed of the motor(optional field)by default, the st Motor Profiler tool searches for the maximum allowed speedmatching the motor and the hardware setup usedThe Max Current allowed by the motor(optional field)By default, it is the maximum peak current deliverable by the hardware setupThe nominal dC bus voltage used by the hardware setup(optional field)By default, it is the power supply stage as either the bus voltage for low voltageapplications(DC voltage), or the RMs value for high voltage application(Ac voltage)The magnetic built-in type(mandatory field)By default, the SM-PMSM is selectedThe Ld/Lq ratio(mandatory field only when l-PMSM built-in is selected as shown inFigure 6 on page 1110/24UM2374 Rey 1/
- 2020-11-29下载
- 积分:1
基于AUTOSAR规范的车用电机控制器软件开发.pdf
同济大学出版的基于AUTOSAR规范的车用电机控制器软件开发,书中有英飞凌AURIX多核单片机的介绍、AUTOSAR基础理论介绍、AUTOSAR开方工具 Davinci Developer的介绍等内容仅供个人学习使用!!不允许被用作商业,更加不允许大面积宣传!!损害作者的利益!!基于 AUTOSAR规范的车用电机控制器软件开发朱元陆科吴志红著同大学出版社TONGJI UNIVERSITY PRI内容提要本书主要介绍了汽车电子的最新规范 AUTOSAR,以及如何开发符合 AUTOSAR规范的电机控制器软件的详细过程。全书分为基础篇和实战篇:基础篇介绍汽车电子软件开发趋势,以及多核单片机和AUTOSAR的相关概念;实战篇介绍了利用 Vector工具链基于 AURIX单片机开发电机控制器的思路和步骤。本书在编写中,力求内容正确,所有的内容都经过相关专家审阅,并经作者测试,步骤清晰,配图丰富。本书适合具有一定嵌入式软件开发基础知识的读者,可作为高等院校本科生、研究生学习嵌入式软件开发的参考书,也可供汽车电子行业软件工程师学习和参考。图书在版编目(CIP)数据基于 AUTOSAR规范的车用电机控制器软件开发/朱元陆科,吴志红著.-上海:同济大学出版社,2017.8ISBN978-7-5608-7134-9I.①基…Ⅱ.①朱…②陆…③吴…Ⅲ.①汽车电子系统一应用软件一高等学校一教材Ⅳ.①U463.6中国版本图书馆CIP数据核字(2017)第159351号基于 AUTOSAR规范的车用电机控制器软件开发朱元陆科吴志红著策划编辑赵泽毓责任编辑朱勇责任校对徐春莲封面设计陈益平出版发行同济大学出版社www.tongjipress.com.cn(地址:上海市四平路1239号邮编:200092电话:021-65985622)经销全国各地新华书店印刷常熟市大宏印刷有限公司开本787mm×1092mm1/16印张12.75字数318000版次2017年8月第1版2017年8月第1次印刷书号ISBN978-7-5608-7134-9定价56.00元本书若有印装质量问题,请向本社发行部调换版权所有侵权必究ForewordDear Readers.AUTOSAR is“ Today”,not“ Tomorrow”Automotive OEMs, suppliers, semi-conductor manufacturers and providers for basic software andrelated tools contributed a lot of effort on AUTOSAR in the past years. The goal is to introduce anew development methodology, a new architecture and new functionalities to face the challenge ofthe increasing complexity of Automotive E&.E. I am glad that AuTOSaR grows step by step andis accepted by automotive industry more and more. AUTOSAR achieved success in Europe firstly,and then was recognized by USA and Japan. Now it is ChinaThe good thing is: now the engineers in Europe, USA, Japan and China are usingAUTOSAR or studying autosar because they know it will be useful tomorrow. Moreand more Chinese engineers want to know AUTOSAR in detailed and practically. The badthing is: the tremendous growth of functionality from AUTSOAR release 1.0 to 4.3 reflectsthe complex requirements of automotive electronics and their fast increase directly. Thee newtechnologies like Multi-core, Functional Safety, Ethernet and Security raise the entry levelof AUTOSAR. The beginners may feel confused and painfulI totally understand the importance of native language to ease the access to new technologiesSo i really appreciate the work by Dr. Zhu Yuan, Dr. Wu Zhihong, Mr. Lu Ke and theirteam at CDHK Tongji University- Vector Automotive Technology Joint Laboratory. IaImsure that the first Chinese AUTOSaR book written by Dr. Zhu Yuan, Dr. Wu ZhihongMr. Lu Ke and their team is great news for Chinese engineers and students. With the help ofthis book, readers will get the system overview of AUtOSaR and learn how to create anAUTOSAR project with OS, BSWM, ECUM and so on. In the same time, I also thankInfineon Technologies and Shanghai Dajun Technologies, Inc. for their great supportI wish all readers a lot of fun reading this book and a lot of success when implementing theAUTOSAR approach in their projectsDr. Gunther HelingDirector for Embedded Software and SystemsVector Informatik gmbh前言为应对日益复杂的汽车电子软件开发、更新和维护的问题, AUTOSARAUTomotiveOpen System ARchitecture(汽车开放系统架构)联盟应运而生。在 AUTOSAR分层模型中软件模块及软件模块之间的接口定义更加标准化,使得整车厂、供应商、科硏机构之间可以方便地实现软件联合开发,为汽车工业的软件系统框架建立了一套开放的标准。与此同时,汽车电子控制单元对单片机的性能要求不断提高,车用32位多核处理器自2012年面世以来已逐渐广泛应用于汽车电子控制单元中。英飞凌科技和维克多( Vector)公司均为 AUTOSAR联盟的高级成员。英飞凌全新的32位多核架构单片机— AURIX引领全球最先进的车用微处理器技术,满足现在及未来汽车安全和安防所需要的应用要求; Vector在汽车电子开发工具、嵌入式软件组件和技术服务等方面具有领先地位。在上海大郡动力控制技术有限公司及徐性怡总裁的支持下,恰逢在国家重点研发计划资助课题——“电机控制器功能安全”(2016YFBO100804)中编者选用了英飞凌 AURIX产品家族系列中的单片机(TC275)和 Vector公司 AUTOSAR软件产品及工具来开发电机控制器软件系统。基于上述课题的研发经历及软件设计成果编著此书,旨在国内推广和普及遵循AUTOSAR规范的软件开发技术。本书分为基础篇和实战篇。基础篇包含1~3章。第1章概述了当前汽车电子软件的开发特点和趋势;第2章对比了多核单片机和单核单片机的特点,分析了多核单片机的优势和软件开发中的挑战;第3章介绍了 AUTOSAR的概念和架构,详细介绍了 AUTOSAR的基础软件层、实时运行环境层和应用层。实战篇包含4~9章,主要讲述基于 AURIX和 AUTOSAR的新能源汽车电机控制器的开发。其中,第4章介绍了新能源汽车发展趋势和电机控制器的开发方法,分别从控制算法、硬件结构和软件架构方面进行讲述;第5章介绍使用 VectorDa Vinci Developer开发电机控制器的软件架构,给出了配置SWC模块的实例;第6章介绍如何使用 Simulink进行应用层软件(例如控制算法)建模以及代码生成的相关内容;第7章介绍了使用 Vectorυ a Vinci Configurator Pro配置电机控制器的基础软件的详细步骤,包括CAN通信配置、MCAL配置以及其他基础软件模块配置等内容;第8章介绍了电机控制器算法的运行实体配置、 AUTOSAR多核OS设计和代码生成的相关内容;第9章介绍了软件代码的集成及其测试验证的相关内容本书由同济大学中德学院一维克多汽车技术联合实验室,同济大学一英飞凌汽车电子联合实验室编写。基础篇主要由朱元、吴志红编写,实战篇由朱元、陆科编写。全书由朱元组织统稿, Vector公司高路博士审阅。本书编写过程中得到了英飞凌科技和 Vector公司的大力支持,编者在此特别对英飞凌科技(中国)有限公司的徐辉女士、 Dirk geiger先生、杜曦先生、张立红先生、徐晶女士、陈汉顺先生,维克多汽车技术(上海)有限公司高路博士表示衷心的感谢。同时真挚地感谢 Math Works公司杜建福博士百忙之中为本书6.1和6.2章节提供了素材,并亲自编写了部分初稿。最后感谢本实验室胡力兴、赵建宁、李清晨、罗梦、王磊、董涛、王惜嘉、顾尉松、李超、张翟辉、仇里森、牛佳辉、周东东、韩光江等同学的资料整理、录人工作。本书适合具有一定嵌入式软件开发基础知识的读者,可作为高等院校本科生、研究生学习嵌入式软件开发的参考书,也可供汽车电子行业软件工程师学习和参考本书在编写过程中力求内容正确,书中所有的内容都经过英飞凌科技和 Vector专家审阅,也经过作者测试,并在科研项目中得到实际的应用。但由于我们的水平有限,编写时间紧张,缺点和错误之处在所难免,敬请读者指正著者2017年5月于同济大学目录目录Foreword前言基础篇第1章汽车电子的软件开发………………………………………………………………………………………31.1汽车电子系统简介…31.1.1概念1.1.2分类1.1.3工作原理1.1.4发展情况…………………………1.2汽车电子系统的开发…1.2.1汽车电子的组成部分:硬件和软件1.2.2硬件的开发方法5666781.2.3软件的开发方法1.3基于 AUTOSAR自顶向下地开发电机控制器1.4汽车电子系统的安全性第2章多核单片机在汽车电子系统中的应用……………………………………112.1单核单片机在汽车电子系统中的应用及局限性………………………………112.2多核单片机在汽车电子系统中的优势和软件开发中的挑战112.2.1多核处理器的优势…112.2.2多核软件开发所面临的问题122.2.3 AUTOSAR规范的应用……………………………………………………………122.3英飞凌 AURIX单片机的特点介绍132.3.1 AURIX系列单片机简介…132.3.2 AURIX的整体架构……………………142.3.3 AURIX系列单片机特色模块介绍…………………………………………………15第3章 AUTOSAR理论基础233.1 AUTOSAR简介…233.1.1目标……………………………………………………………………243.1.2、方法论263.2 AUTOSAR基础软件层…283.2.1微控制器抽象层…30基于 AUTOSAR规范的车用电机控制器软件开发3.2.2ECU抽象层……………………373.2.3服务层……………………………………………………………………………393.2.4 AUTOSAR操作系统183.2.5复杂驱动…………………………………………563.3 AUTOSAR运行时环境…………583.4 AUTOSAR应用层593.4.1 AUTOSAR软件组件593.4.2 AUTOSAR通信61实战篇第4章新能源汽车电机控制器…654.1新能源汽车及发展趋势…………………………………………………………………654.2电机控制器的开发…………………………………………………………………674.2.1控制算法674.2.2硬件结构…·:·4.2.3软件框架第5章使用 Da vinci Developer开发电机控制器软件架构………765.1 Vector相关工具链介绍5.2 Da Vinci Developer简介775.3 Da Vinci Developer入门……………785.3.1 Da vinci Developer安装方法5.3.2 Da vinci Developer界面说明……………………………………835.4使用 Da Vinci Developer配置SWC…5.4.1软件组件设计……………………………………………………………………………875.4.2通信接口设计…895.4.3通信端口设计………………………………………………………………915.4.4运行实体设计…………………………………………………………………935.4.5函数间变量设计…………………………………………………………………………95第6章使用 Simulink开发应用层6.1 MATLAR/ Simulink和 Embedded coder工具链介绍976.1.1 MATLAB/ Simulink基于模型的设计工具……76.1.2 Stateflow-建模和仿真决策工具986.1.3 Embedded coder代码生成和优化工具…………………………………996.2开发符合 AUTOSAR规范的应用层……………………………………………1006.2.1 AUTOSAR客户端、服务器…………1006.2.2 AUTOSAR标定参数…1036.2.3 AUTOSAR组件行为……………………………………………………………105
- 2021-05-06下载
- 积分:1