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
Compile project:
The generated configuration code is under the file configured in EB, which is the output folder of the project.
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
The toolchains folder toolchains contains
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.
Build.bat will call launch.bat
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.
Open the command line window, go to the project directory, execute build.bat, and compile.
If everything is configured correctly, the elf file will be generated after compilation is completed,
These intermediate generated .o files, the final elf file and the map file are all located in the bin directory.
You can modify the configuration and recompile to adapt to your own board. At this point, the entire process has been introduced.
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
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- Matching between microphone and microphone preamplifier
- Solve the problem of "PL2303HXA has been discontinued since 2012, please contact the supplier" USB not recognized
- The focus of future mobile phone development is here, take a look quickly!
- Additional Noise Reduction Design Strategies
- [Qinheng Trial] Suggestions and Getting Started for the First Time
- Tesla Robot Optimus Prime Conference Uncut 4K HD Episode 3
- Communication Level Translation Guidelines
- micropython update: 2021.6
- Application Note (AN4866) Waterproof Function
- Average current control mode