MBD for MPC5744P

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

MBD for MPC5744P

Jump to solution
2,922 Views
jasonhd
Contributor III

Is the environment variable set in windows or matlab?

pastedImage_1.png

pastedImage_6.png

Is it in this position?

After setting, I always report errors when loading the model to the board:

=== Build (Elapsed: 28 sec) ===
### Starting build procedure for: uart_hello_world_mpc574xP
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\uart_hello_world_mpc574xP_mbd_rtw
Warning:警告: 未找到文件 'codedescriptor.dmr'。
Warning:警告: 未找到文件 'codedescriptor.dmr'。
Warning:警告: 未找到文件 'codedescriptor.dmr'。
Warning:警告: 未找到文件 'codedescriptor.dmr'。
### Invoking Target Language Compiler on uart_hello_world_mpc574xP.rtw
### Using System Target File: C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\mbdtbx_mpc574x\mbdtbx_mpc574x\mbd_mpc574x.tlc
### Using Model-Based Design Toolbox for MPC57xx Series 3.1.0 (R2016a-R2019b) 16-Dec-2019
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file uart_hello_world_mpc574xP_types.h
### Writing header file uart_hello_world_mpc574xP.h
### Writing header file rtwtypes.h
.
### Writing source file uart_hello_world_mpc574xP.c
### Writing header file uart_hello_world_mpc574xP_private.h
### Writing source file uart_hello_world_mpc574xP_data.c
### Writing source file mbd_main.c
### TLC code generation complete.
Warning:警告: 目录已存在。
Warning:警告: 目录已存在。
Warning:警告: 目录已存在。
Warning:警告: 目录已存在。
Warning:警告: 目录已存在。
Warning:警告: 目录已存在。
Warning:警告: 目录已存在。
.
### Processing Template Makefile: C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\mbdtbx_mpc574x\mbdtbx_mpc574x\mbd_mpc574x.tmf
Warning:Found legacy make variables |>START_MDLREFINC_EXPAND_INCLUDES<|, |>END_MDLREFINC_EXPAND_INCLUDES<|, |>MODELREF_INC_PATH<| in the template makefile C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\mbdtbx_mpc574x\mbdtbx_mpc574x\mbd_mpc574x.tmf. The variables are no longer required. You can remove the variables.
Warning:Found legacy make variables |>S_FUNCTIONS<|, |>S_FUNCTIONS_OBJ<| in the template makefile C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\mbdtbx_mpc574x\mbdtbx_mpc574x\mbd_mpc574x.tmf. The variables are no longer required. You can remove the variables.
Warning:Found legacy make variables |>SHARED_BIN_DIR<|, |>SHARED_LIB<|, |>SHARED_SRC<|, |>SHARED_SRC_DIR<| in the template makefile C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\mbdtbx_mpc574x\mbdtbx_mpc574x\mbd_mpc574x.tmf. The variables are no longer required. You can remove the variables.
### C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\uart_hello_world_mpc574xP_mbd_rtw\uart_hello_world_mpc574xP.mk which is generated from C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\mbdtbx_mpc574x\mbdtbx_mpc574x\mbd_mpc574x.tmf is up to date
### Building uart_hello_world_mpc574xP: .\uart_hello_world_mpc574xP.bat
### Build procedure for uart_hello_world_mpc574xP aborted due to an error.
Error:
C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\uart_hello_world_mpc574xP_mbd_rtw>set MATLAB=D:\Program\Polyspace\R2020a

C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\uart_hello_world_mpc574xP_mbd_rtw>"D:\Program\Polyspace\R2020a\bin\win64\gmake" -f uart_hello_world_mpc574xP.mk GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 ISPROTECTINGMODEL=NOTPROTECTING OPTS="-DTID01EQ=0"
Cleaning...
RELATIVE_PATH_TO_ANCHOR is ..
==== Removing object files from build directory ====
Copying necessary files to build directory...
Compiler details : "C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/powerpc-eabivle-4_9/bin/powerpc-eabivle-gcc" -DCPU_MPC5744P -mcpu=e200z4 -DSTART_FROM_FLASH --sysroot="C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/e200_ewl2" -g3 -mbig -mvle -O1 -mregnames -mlsp -specs=ewl_c9x.specs -mhard-float -Wall -c -std=c99 -fdata-sections -ffunction-sections -funsigned-char -fmessage-length=0 -nostdinc -fno-jump-tables -DTURN_ON_CPU0 -mlsp -DTURN_ON_CPU0 -I. -I.. -I.. -I"D:\Program\Polyspace\R2020a\simulink\include" -I"D:\Program\Polyspace\R2020a\extern\include" -I"D:\Program\Polyspace\R2020a\rtw\c\src" -I"D:\Program\Polyspace\R2020a\rtw\c\libsrc" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\common" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\tcpip" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\serial" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\custom" -IC:\Users\WQC\AppData\Roaming\MATHWO~1\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx -IC:\Users\WQC\AppData\Roaming\MATHWO~1\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\uart_hello_world_mpc574xP_mbd_rtw -ID:\Program\POLYSP~1\R2020a\extern\include -ID:\Program\POLYSP~1\R2020a\simulink\include -ID:\Program\POLYSP~1\R2020a\rtw\c\src -ID:\Program\POLYSP~1\R2020a\rtw\c\src\ext_mode\common -ID:\Program\POLYSP~1\R2020a\rtw\c\ert -I"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/e200_ewl2/EWL_C/include" -I"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/e200_ewl2/EWL_C/include/pa" -I"./common" -I"./inc" -I"./src/clock/MPC57xx" -I"./src/clock/MPC5777C" -I"./src/sim/MPC5744P" -I"./src/power/MPC57xx" -I"./src/pins/siul2" -I"./src/pins/siu" -I"./MPC5744P/include" -I"../common" -I"../inc" -I"../src/clock/MPC57xx" -I"../src/clock/MPC5777C" -I"../src/sim/MPC5744P" -I"../src/power/MPC57xx" -I"../src/pins/siul2" -I"../src/pins/siu" -I"../MPC5744P/include" -I"../instrumented/common" -I"../instrumented/inc" -I"../instrumented/src/clock/MPC57xx" -I"../instrumented/src/sim/MPC5744P" -I"../instrumented/src/power/MPC57xx" -I"../instrumented/src/pins/siul2" -I"../instrumented/MPC5744P/include" -DTID01EQ=0
Assembler details : "C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/powerpc-eabivle-4_9/bin/powerpc-eabivle-gcc" -c -g3 -mbig -mvle -mregnames -O1 -DTURN_ON_CPU0 -mhard-float -mlsp -DTURN_ON_CPU0
Product: uart_hello_world_mpc574xP.mot
Build product type: executable
Building file core0_intc_sw_handlers.o...
"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/powerpc-eabivle-4_9/bin/powerpc-eabivle-gcc" -c -g3 -mbig -mvle -mregnames -O1 -DTURN_ON_CPU0 -mhard-float -mlsp -DTURN_ON_CPU0 -I.. -o core0_intc_sw_handlers.o core0_intc_sw_handlers.S
Building file interrupt_vectors.o...
"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/powerpc-eabivle-4_9/bin/powerpc-eabivle-gcc" -c -g3 -mbig -mvle -mregnames -O1 -DTURN_ON_CPU0 -mhard-float -mlsp -DTURN_ON_CPU0 -I.. -o interrupt_vectors.o interrupt_vectors.S
Building file startup_MPC5744P.o...
"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/powerpc-eabivle-4_9/bin/powerpc-eabivle-gcc" -c -g3 -mbig -mvle -mregnames -O1 -DTURN_ON_CPU0 -mhard-float -mlsp -DTURN_ON_CPU0 -I.. -o startup_MPC5744P.o startup_MPC5744P.S
Building file clock_MPC57xx.o...
"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/powerpc-eabivle-4_9/bin/powerpc-eabivle-gcc" -DCPU_MPC5744P -mcpu=e200z4 -DSTART_FROM_FLASH --sysroot="C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/e200_ewl2" -g3 -mbig -mvle -O1 -mregnames -mlsp -specs=ewl_c9x.specs -mhard-float -Wall -c -std=c99 -fdata-sections -ffunction-sections -funsigned-char -fmessage-length=0 -nostdinc -fno-jump-tables -DTURN_ON_CPU0 -mlsp -DTURN_ON_CPU0 -I. -I.. -I.. -I"D:\Program\Polyspace\R2020a\simulink\include" -I"D:\Program\Polyspace\R2020a\extern\include" -I"D:\Program\Polyspace\R2020a\rtw\c\src" -I"D:\Program\Polyspace\R2020a\rtw\c\libsrc" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\common" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\tcpip" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\serial" -I"D:\Program\Polyspace\R2020a\rtw\c\src\ext_mode\custom" -IC:\Users\WQC\AppData\Roaming\MATHWO~1\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx -IC:\Users\WQC\AppData\Roaming\MATHWO~1\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\uart_hello_world_mpc574xP_mbd_rtw -ID:\Program\POLYSP~1\R2020a\extern\include -ID:\Program\POLYSP~1\R2020a\simulink\include -ID:\Program\POLYSP~1\R2020a\rtw\c\src -ID:\Program\POLYSP~1\R2020a\rtw\c\src\ext_mode\common -ID:\Program\POLYSP~1\R2020a\rtw\c\ert -I"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/e200_ewl2/EWL_C/include" -I"C:\Users\WQC\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\tools/S32DS/build_tools/e200_ewl2/EWL_C/include/pa" -I"./common" -I"./inc" -I"./src/clock/MPC57xx" -I"./src/clock/MPC5777C" -I"./src/sim/MPC5744P" -I"./src/power/MPC57xx" -I"./src/pins/siul2" -I"./src/pins/siu" -I"./MPC5744P/include" -I"../common" -I"../inc" -I"../src/clock/MPC57xx" -I"../src/clock/MPC5777C" -I"../src/sim/MPC5744P" -I"../src/power/MPC57xx" -I"../src/pins/siul2" -I"../src/pins/siu" -I"../MPC5744P/include" -I"../instrumented/common" -I"../instrumented/inc" -I"../instrumented/src/clock/MPC57xx" -I"../instrumented/src/sim/MPC5744P" -I"../instrumented/src/power/MPC57xx" -I"../instrumented/src/pins/siul2" -I"../instrumented/MPC5744P/include" -DTID01EQ=0 -o clock_MPC57xx.o clock_MPC57xx.c
powerpc-eabivle-gcc: error: Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx: No such file or directory
powerpc-eabivle-gcc: error: Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\uart_hello_world_mpc574xP_mbd_rtw: No such file or directory
gmake: *** [clock_MPC57xx.o] Error 1

Error(s) encountered while building "uart_hello_world_mpc574xP".

Does anyone know why?

Labels (1)
0 Kudos
1 Solution
2,882 Views
jasonhd
Contributor III

The final solution: the problem of system environment variable configuration-the configuration is the S32DS installation directory, not the directory in the toolbox.

As shown below:

jasonhd_0-1598921857861.png

jasonhd_1-1598922015322.png

 

View solution in original post

0 Kudos
2 Replies
2,883 Views
constantinrazva
NXP Employee
NXP Employee

Hello jasonhd ,

Can you let me know what version of the toolbox you are using? You can find it easily by looking into Add-on Manager from MATLAB or by running the following command:

ver

If you want to use the default compiler (gcc), it already comes shipped with our toolbox; if you don't have any environment variable defined, the toolbox will automatically set it up for you to the gcc we ship.

As for the variable, you can set it in windows or in MATLAB; but if you choose the 2nd option, you should set it every time you open MATLAB.

As for the error, can you attach the model you are building so we can test it on our end? 

One more thing I want to mention is that it is recommended you install the toolbox in a path with no spaces.

Kind regards,

Razvan.

0 Kudos
2,883 Views
jasonhd
Contributor III

The final solution: the problem of system environment variable configuration-the configuration is the S32DS installation directory, not the directory in the toolbox.

As shown below:

jasonhd_0-1598921857861.png

jasonhd_1-1598922015322.png

 

0 Kudos