MBD for MPC5744P Code Compiler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MBD for MPC5744P Code Compiler

445 Views
xingzhenlei
Contributor II

 

Using the MPC5744P development board, I recently utilized the official Simulink model examples provided for this board. Through these models, I was able to generate C code, which was then compiled into a series of binary files, as shown in the image below.

xingzhenlei_0-1725549226981.png

What kind of compiler should I use to compile the above code? I tried using Visual Studio 2019, but it seems to be unsuccessful. The errors I encountered are as follows:

xingzhenlei_1-1725549499086.png

My question is about how to compile the above C code. If there's a specific way, please provide detailed steps. Thank you.

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

395 Views
xingzhenlei
Contributor II

Problem 1: As shown in the figure below, why can't I see the source code for some functions? Is it because they are encapsulated in the "MPC574xP_AMMCLIB.a" file? Where can I find specific function comments and calling methods?

xingzhenlei_0-1725807992649.png

Problem 2: If they are indeed encapsulated in the aforementioned file and I cannot see the comments or calling methods, what materials should I use to write my own library files?

0 Kudos
Reply

350 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Problem 1: As shown in the figure below, why can't I see the source code for some functions? Is it because they are encapsulated in the "MPC574xP_AMMCLIB.a" file? Where can I find specific function comments and calling methods?

AMMCLIB is povided in two variants:

1. object code only - which is available free on our web

2. source code - which is licensed and paid.

Problem 2: If they are indeed encapsulated in the aforementioned file and I cannot see the comments or calling methods, what materials should I use to write my own library files?

It does not make a sense to me. The API of AMMClib is described in manual and supplied header files. i dont understand why you are interested in our internal commends in code.

best regards,

Peter

 

0 Kudos
Reply

424 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The supported compilers are specified in release notes:

petervlna_0-1725601399452.png

Best regards,
Peter

 

0 Kudos
Reply