Development, compilation and configuration of MACL and EB based on MPC5744P

Publisher:心语乐章Latest update time:2023-10-03 Source: elecfansKeywords:MPC5744P Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Summary

This note mainly records the development, compilation and configuration of MACL and EB based on MPC5744P.


Preparation

Prepare a project configured under EB. Here we take a routine as an example to illustrate.

Install and configure the compiler GreenHills or other compilers. Here we take GreenHills as an example.

Import routine

Open the EB tool, import the routine, click file->import and import according to the path. I have imported it here

603771c6-9197-11ec-952b-dac502259ad0.png

Compile project:

604f7154-9197-11ec-952b-dac502259ad0.png

The generated configuration code is under the file configured in EB, which is the output folder of the project.

605fb50a-9197-11ec-952b-dac502259ad0.png

6073fad8-9197-11ec-952b-dac502259ad0.png

608d12e8-9197-11ec-952b-dac502259ad0.png

This is code generated based on AUTOSAR 4.0.3. These codes can be used by compiling them with the upper-level code. Here, we use the command line to compile together with the application code of the routine.

Let’s take a look at the routine folder first

60a36bec-9197-11ec-952b-dac502259ad0.png

60b45bbe-9197-11ec-952b-dac502259ad0.png

The toolchains folder toolchains contains

60cb9860-9197-11ec-952b-dac502259ad0.png

If there is no build.bat in the project, we need to create a new one and add the following content to copy the code generated by EB to the cfg directory.

60e3b472-9197-11ec-952b-dac502259ad0.png

Build.bat will call launch.bat

60f5dbac-9197-11ec-952b-dac502259ad0.png

Here we need to modify launch.bat

According to the instructions, if there are no paths to these tools in the environment variables, you need to modify the EB and compiler paths. If these already exist in the environment variables, there is no need.

61154f82-9197-11ec-952b-dac502259ad0.png

Open the command line window, go to the project directory, execute build.bat, and compile.

6126acaa-9197-11ec-952b-dac502259ad0.png

If everything is configured correctly, the elf file will be generated after compilation is completed,

613b6dac-9197-11ec-952b-dac502259ad0.png

These intermediate generated .o files, the final elf file and the map file are all located in the bin directory.

6171cd5c-9197-11ec-952b-dac502259ad0.png

You can modify the configuration and recompile to adapt to your own board. At this point, the entire process has been introduced.


Keywords:MPC5744P Reference address:Development, compilation and configuration of MACL and EB based on MPC5744P

Previous article:Development of SAE J1939 protocol stack based on NXP MPC5744P
Next article:Preparations for development based on MBD toolbox on NXP MPC5744P

Recommended posts

Current sensing resistors in lithium-ion battery formation and capacity test equipment
Chemicalcompositionduringbatterymanufacturingisatime-consumingprocessinvolvingmultiplecharginganddischargingtoactivatethebattery'schemicalproperties,andisparticularlycriticaltoensuringtheconsistency,safetyandh
FSHY威世通电子 Industrial Control Electronics
[AI Challenge Camp Second Stop] Algorithm Engineering Deployment Packaged into SDK
EventOverview:EmbeddedEngineerAIChallengeCamp(Beginner):BasedonRV1106,hands-ondeploymentofhandwrittendigitrecognition Modeltraining:AftercompletingthehandwrittendigitalmodeltrainingonthePC,ifwewanttofinallyd
nmg Embedded System
How much do you know about the performance improvement of Wi-Fi 6 routers?
Comparedtosimilarproducts,FEMsoffer40%greaterenergyefficiencyand20%greatercoverage,andFEMproductscanadvanceconnectivitybyincreasingthenumberofconnecteddevicesby4timesathigherdatarates.Howaboutsuchaproduct? 这
alan000345 RF/Wirelessly
PCB Design Safety Regulations | Key Points on Clearance and Creepage Distance
InPCBdesign,creepagedistanceandclearancearetwoveryimportantsafetyrequirements.TheybothinvolvethesafedistancebetweencomponentsonthePCBtoensurethatnoshortcircuitorothersafetyissueswilloccurwhenacomponentfails.
aleksib Domestic Chip Exchange
What does the filter coefficient in the inverter function code mean?
Someparametersintheinverterparameterfunctioncodearefiltercoefficients,whichareforterminalfunctionfilteringanddisplayparameterfilteringcoefficients.Howisthisfilteringfunctionimplementedintheinvertersoftware?Canyouexp
乱世煮酒论天下 Motor Drive Control(Motor Control)
What is the reason for the big difference between current clamps and Rogowski coils?
ThecurrentclampisFlukei1000s,andtheRogowskicoilisaRogowskicoilfromPuyuan.WhenmeasuringthecurrentwaveformoftheinverterIGBTshortcircuit,thepeakvaluemeasuredbythecurrentclampisonly240-270A,whilethepeakvaluemeas
乱世煮酒论天下 Test/Measurement
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号