AnsweredAssumed Answered

Matlab R2018a - S32K148EVB - Model build problem

Question asked by Mohammed Farag on Oct 15, 2018
Latest reply on Oct 16, 2018 by Mohammed Farag

Hi all,

 

I have a problem with flashing the S32K148EVB with Simulink auto code generation toolbox. 

 

I followed the steps proposed in the "Model_Based_Design_Toolbox_Quick_Start.pdf" and was trying to flash the hello world UART example. I always get the following error.

 

Can someone help?

 

 

--------------------------------------------------------------------------------------------------------------------------------------------------------

### Starting build procedure for model: lpuart_hello_world_s32k14x
### Generating code and artifacts to 'Model specific' folder structure


### Generating code into build folder: C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\lpuart_hello_world_s32k14x_mbd_rtw
Warning: This concatenation operation includes an empty array with an incorrect number of rows.
Concatenation including empty arrays will require all arrays to have the same number of rows in a future release. [7 similar]
### Invoking Target Language Compiler on lpuart_hello_world_s32k14x.rtw
### Using System Target File: C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\mbdtbx_s32k14x\mbdtbx_s32k14x\mbd_s32k14.tlc
### Using Model-Based Design Toolbox for S32K1xx Series 2018.R1 (R2016b-R2018a) 23-Jul-2018
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file lpuart_hello_world_s32k14x_types.h
.
### Writing source file lpuart_hello_world_s32k14x.c
### Writing header file lpuart_hello_world_s32k14x_private.h
### Writing header file lpuart_hello_world_s32k14x.h
### Writing header file rtwtypes.h
### Writing source file lpuart_hello_world_s32k14x_data.c
.
### Writing source file mbd_main.c
### TLC code generation complete.
.
### Processing Template Makefile: C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\mbdtbx_s32k14x\mbdtbx_s32k14x\mbd_s32k14.tmf
### Creating lpuart_hello_world_s32k14x.mk from C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\mbdtbx_s32k14x\mbdtbx_s32k14x\mbd_s32k14.tmf
### Building lpuart_hello_world_s32k14x: .\lpuart_hello_world_s32k14x.bat
C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\lpuart_hello_world_s32k14x_mbd_rtw>set MATLAB=C:\Program Files\MATLAB\R2018a
C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\lpuart_hello_world_s32k14x_mbd_rtw>"C:\Program Files\MATLAB\R2018a\bin\win64\gmake" -f lpuart_hello_world_s32k14x.mk COPY_MDLREF_INCLUDES=0 GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 ISPROTECTINGMODEL=NOTPROTECTING
Cleaning...
RELATIVE_PATH_TO_ANCHOR is ..
==== Removing object files from build directory ====
Copying necessary files to build directory...
Compiler details : "C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\tools\gcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc" -c -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O1 -g -gstrict-dwarf -DARM_MATH_CM4 -D__FPU_PRESENT=1 -D__FPU_USED=1 -D__NVIC_PRIO_BITS=FEATURE_NVIC_PRIO_BITS -o SetupFiles -DCPU_S32K148 -I. -I.. -I.. -I"C:\Program Files\MATLAB\R2018a\simulink\include" -I"C:\Program Files\MATLAB\R2018a\extern\include" -I"C:\Program Files\MATLAB\R2018a\rtw\c\src" -I"C:\Program Files\MATLAB\R2018a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2018a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2018a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2018a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2018a\rtw\c\src\ext_mode\custom" -IC:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code -IC:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\lpuart_hello_world_s32k14x_mbd_rtw -IC:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\S32_Examples\common\lpuart -I"C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\tools\gcc-6.3-arm32-eabi/arm-none-eabi/include" -I"./common" -I"./inc" -I"./src/clock/S32K1xx" -I"./src/sim/S32K148" -I"./src/power/S32K1xx" -I"./S32K148/include" -I"../common" -I"../inc" -I"../src/clock/S32K1xx" -I"../src/sim/S32K148" -I"../src/power/S32K1xx" -I"../S32K148/include"
Assembler details : "C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\tools\gcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc" -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -x assembler-with-cpp -o SetupFiles
Product: lpuart_hello_world_s32k14x.mot
Build product type: executable
Building file startup_S32K148.o...
"C:\Users\MMM\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\tools\gcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc" -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -x assembler-with-cpp -o startup_S32K148.o startup_S32K148.s
gmake: *** [startup_S32K148.o] Error 1

 

### Build procedure for model: 'lpuart_hello_world_s32k14x' aborted due to an error.

 

Error(s) encountered while building "lpuart_hello_world_s32k14x"

Outcomes