AnsweredAssumed Answered

PIL TEST

Question asked by kp g on Jun 18, 2019
Latest reply on Jun 18, 2019 by kp g

Hi, MBDTeam, I have a S32K118 Board, When I Open the example in "NXP_MBDToolbox_S32K1xx"  folder, I want to make the PIL test, but I get the follows messages on the "Diagnostic View"

 

### Generating code into build folder: C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\slprj\mbd_s32k14\sim_pil_target_AMMCLIB_s32k14x ### Invoking Target Language Compiler on sim_pil_target_AMMCLIB_s32k14x.rtw ### Using System Target File: C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\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 sim_pil_target_AMMCLIB_s32k14x_types.h ### Writing header file sim_pil_target_AMMCLIB_s32k14x.h . ### Writing source file sim_pil_target_AMMCLIB_s32k14x.c ### Writing header file sim_pil_target_AMMCLIB_s32k14x_private.h ### Writing header file rtiostream_uart_init.h ### Writing source file rtiostream_uart_init.c ### Writing source file mbd_hw_init.c ### TLC code generation complete. CGIR assertion 'begin != 0' failed in 'b:\matlab\toolbox\coder\trace\src\trace\traceutil.cpp:302' [ 0] 0x000000011f9feabf bin\win64\libmwtrace.dll+00191167 mwboost::archive::codecvt_null<wchar_t>::codecvt_null<wchar_t>+00002783 [ 1] 0x000000011faa761b bin\win64\libmwtrace.dll+00882203 coder::trace::TraceInfoBuilder::setTraceDelim+00088731 [ 2] 0x000000011fa9d8c0 bin\win64\libmwtrace.dll+00841920 coder::trace::TraceInfoBuilder::setTraceDelim+00048448 [ 3] 0x000000011fa7fbf7 bin\win64\libmwtrace.dll+00719863 coder::trace::TraceInfoBuilder::extractTraceInfo+00000263 [ 4] 0x000000011fac6706 bin\win64\libmwtrace.dll+01009414 coder::trace::TraceInfoBuilder::setTraceDelim+00215942 [ 5] 0x000000001cb93c60 bin\win64\pgo\mcos_impl.dll+00408672 [ 6] 0x000000001cb93232 bin\win64\pgo\mcos_impl.dll+00406066 [ 7] 0x000000001cb9234b bin\win64\pgo\mcos_impl.dll+00402251 [ 8] 0x000000001cb90d12 bin\win64\pgo\mcos_impl.dll+00396562 [ 9] 0x000000001cbe6f30 bin\win64\pgo\mcos_impl.dll+00749360 [ 10] 0x000000001cde3585 bin\win64\pgo\mcos_impl.dll+02831749 mwboost::serialization::singleton_module::unlock+01534417 [ 11] 0x000000001cdecf01 bin\win64\pgo\mcos_impl.dll+02871041 mwboost::serialization::singleton_module::unlock+01573709 [ 12] 0x0000000006cc3655 bin\win64\mcos.dll+00144981 omDirectCallMethod+00000069 [ 13] 0x0000000015af75c2 bin\win64\pgo\libmwlxeindexing.dll+00357826 MathWorks::lxe::MatrixModuleImplementation::SetHeterogeneousArray+00014702 [ 14] 0x0000000015b78936 bin\win64\pgo\libmwlxeindexing.dll+00887094 MathWorks::lxe::assign_paren_shared_xvalue_ptr_uninitialized_to_struct+00006890 [ 15] 0x0000000015aac70f bin\win64\pgo\libmwlxeindexing.dll+00050959 MathWorks::lxe::at_rbrace_nargout+00006831 CGIR assertion 'begin != 0' failed in 'b:\matlab\toolbox\coder\trace\src\trace\traceutil.cpp:302' [ 0] 0x000000011f9feabf bin\win64\libmwtrace.dll+00191167 mwboost::archive::codecvt_null<wchar_t>::codecvt_null<wchar_t>+00002783 [ 1] 0x000000011faa761b bin\win64\libmwtrace.dll+00882203 coder::trace::TraceInfoBuilder::setTraceDelim+00088731 [ 2] 0x000000011fa9d8c0 bin\win64\libmwtrace.dll+00841920 coder::trace::TraceInfoBuilder::setTraceDelim+00048448 [ 3] 0x000000011fa7fbf7 bin\win64\libmwtrace.dll+00719863 coder::trace::TraceInfoBuilder::extractTraceInfo+00000263 [ 4] 0x000000011fac6706 bin\win64\libmwtrace.dll+01009414 coder::trace::TraceInfoBuilder::setTraceDelim+00215942 [ 5] 0x000000001cb93c60 bin\win64\pgo\mcos_impl.dll+00408672 [ 6] 0x000000001cb93232 bin\win64\pgo\mcos_impl.dll+00406066 [ 7] 0x000000001cb9234b bin\win64\pgo\mcos_impl.dll+00402251 [ 8] 0x000000001cb90d12 bin\win64\pgo\mcos_impl.dll+00396562 [ 9] 0x000000001cbe6f30 bin\win64\pgo\mcos_impl.dll+00749360 [ 10] 0x000000001cde3585 bin\win64\pgo\mcos_impl.dll+02831749 mwboost::serialization::singleton_module::unlock+01534417 [ 11] 0x000000001cdecf01 bin\win64\pgo\mcos_impl.dll+02871041 mwboost::serialization::singleton_module::unlock+01573709 [ 12] 0x0000000006cc3655 bin\win64\mcos.dll+00144981 omDirectCallMethod+00000069 [ 13] 0x0000000015af75c2 bin\win64\pgo\libmwlxeindexing.dll+00357826 MathWorks::lxe::MatrixModuleImplementation::SetHeterogeneousArray+00014702 [ 14] 0x0000000015b78936 bin\win64\pgo\libmwlxeindexing.dll+00887094 MathWorks::lxe::assign_paren_shared_xvalue_ptr_uninitialized_to_struct+00006890 [ 15] 0x0000000015aac70f bin\win64\pgo\libmwlxeindexing.dll+00050959 MathWorks::lxe::at_rbrace_nargout+00006831 CGIR assertion 'begin != 0' failed in 'b:\matlab\toolbox\coder\trace\src\trace\traceutil.cpp:302' [ 0] 0x000000011f9feabf bin\win64\libmwtrace.dll+00191167 mwboost::archive::codecvt_null<wchar_t>::codecvt_null<wchar_t>+00002783 [ 1] 0x000000011faa761b bin\win64\libmwtrace.dll+00882203 coder::trace::TraceInfoBuilder::setTraceDelim+00088731 [ 2] 0x000000011fa9d8c0 bin\win64\libmwtrace.dll+00841920 coder::trace::TraceInfoBuilder::setTraceDelim+00048448 [ 3] 0x000000011fa7fbf7 bin\win64\libmwtrace.dll+00719863 coder::trace::TraceInfoBuilder::extractTraceInfo+00000263 [ 4] 0x000000011fac6706 bin\win64\libmwtrace.dll+01009414 coder::trace::TraceInfoBuilder::setTraceDelim+00215942 [ 5] 0x000000001cb93c60 bin\win64\pgo\mcos_impl.dll+00408672 [ 6] 0x000000001cb93232 bin\win64\pgo\mcos_impl.dll+00406066 [ 7] 0x000000001cb9234b bin\win64\pgo\mcos_impl.dll+00402251 [ 8] 0x000000001cb90d12 bin\win64\pgo\mcos_impl.dll+00396562 [ 9] 0x000000001cbe6f30 bin\win64\pgo\mcos_impl.dll+00749360 [ 10] 0x000000001cde3585 bin\win64\pgo\mcos_impl.dll+02831749 mwboost::serialization::singleton_module::unlock+01534417 [ 11] 0x000000001cdecf01 bin\win64\pgo\mcos_impl.dll+02871041 mwboost::serialization::singleton_module::unlock+01573709 [ 12] 0x0000000006cc3655 bin\win64\mcos.dll+00144981 omDirectCallMethod+00000069 [ 13] 0x0000000015af75c2 bin\win64\pgo\libmwlxeindexing.dll+00357826 MathWorks::lxe::MatrixModuleImplementation::SetHeterogeneousArray+00014702 [ 14] 0x0000000015b78936 bin\win64\pgo\libmwlxeindexing.dll+00887094 MathWorks::lxe::assign_paren_shared_xvalue_ptr_uninitialized_to_struct+00006890 [ 15] 0x0000000015aac70f bin\win64\pgo\libmwlxeindexing.dll+00050959 MathWorks::lxe::at_rbrace_nargout+00006831 CGIR assertion 'begin != 0' failed in 'b:\matlab\toolbox\coder\trace\src\trace\traceutil.cpp:302' [ 0] 0x000000011f9feabf bin\win64\libmwtrace.dll+00191167 mwboost::archive::codecvt_null<wchar_t>::codecvt_null<wchar_t>+00002783 [ 1] 0x000000011faa761b bin\win64\libmwtrace.dll+00882203 coder::trace::TraceInfoBuilder::setTraceDelim+00088731 [ 2] 0x000000011fa9d8c0 bin\win64\libmwtrace.dll+00841920 coder::trace::TraceInfoBuilder::setTraceDelim+00048448 [ 3] 0x000000011fa7fbf7 bin\win64\libmwtrace.dll+00719863 coder::trace::TraceInfoBuilder::extractTraceInfo+00000263 [ 4] 0x000000011fac6706 bin\win64\libmwtrace.dll+01009414 coder::trace::TraceInfoBuilder::setTraceDelim+00215942 [ 5] 0x000000001cb93c60 bin\win64\pgo\mcos_impl.dll+00408672 [ 6] 0x000000001cb93232 bin\win64\pgo\mcos_impl.dll+00406066 [ 7] 0x000000001cb9234b bin\win64\pgo\mcos_impl.dll+00402251 [ 8] 0x000000001cb90d12 bin\win64\pgo\mcos_impl.dll+00396562 [ 9] 0x000000001cbe6f30 bin\win64\pgo\mcos_impl.dll+00749360 [ 10] 0x000000001cde3585 bin\win64\pgo\mcos_impl.dll+02831749 mwboost::serialization::singleton_module::unlock+01534417 [ 11] 0x000000001cdecf01 bin\win64\pgo\mcos_impl.dll+02871041 mwboost::serialization::singleton_module::unlock+01573709 [ 12] 0x0000000006cc3655 bin\win64\mcos.dll+00144981 omDirectCallMethod+00000069 [ 13] 0x0000000015af75c2 bin\win64\pgo\libmwlxeindexing.dll+00357826 MathWorks::lxe::MatrixModuleImplementation::SetHeterogeneousArray+00014702 [ 14] 0x0000000015b78936 bin\win64\pgo\libmwlxeindexing.dll+00887094 MathWorks::lxe::assign_paren_shared_xvalue_ptr_uninitialized_to_struct+00006890 [ 15] 0x0000000015aac70f bin\win64\pgo\libmwlxeindexing.dll+00050959 MathWorks::lxe::at_rbrace_nargout+00006831 . ### Processing Template Makefile: C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k14x\mbdtbx_s32k14x\mbd_s32k14.tmf ### Creating sim_pil_target_AMMCLIB_s32k14x.mk from C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k14x\mbdtbx_s32k14x\mbd_s32k14.tmf ### Building sim_pil_target_AMMCLIB_s32k14x: .\sim_pil_target_AMMCLIB_s32k14x.bat C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\slprj\mbd_s32k14\sim_pil_target_AMMCLIB_s32k14x\instrumented>set MATLAB=C:\Program Files\MATLAB\R2018b C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\slprj\mbd_s32k14\sim_pil_target_AMMCLIB_s32k14x\instrumented>"C:\Program Files\MATLAB\R2018b\bin\win64\gmake" -f sim_pil_target_AMMCLIB_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\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\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_S32K144HFT0VLLT -I. -I.. -I..\..\..\.. -I"C:\Program Files\MATLAB\R2018b\simulink\include" -I"C:\Program Files\MATLAB\R2018b\extern\include" -I"C:\Program Files\MATLAB\R2018b\rtw\c\src" -I"C:\Program Files\MATLAB\R2018b\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2018b\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2018b\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2018b\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2018b\rtw\c\src\ext_mode\custom" -IC:\Users\YCHI~1\AppData\Roaming\MATHWO~1\MATLAB~1\TOOLBO~1\NXP_MB~1 -IC:\Users\YCHI~1\AppData\Roaming\MATHWO~1\MATLAB~1\TOOLBO~1\NXP_MB~1\slprj\mbd_s32k14\sim_pil_target_AMMCLIB_s32k14x -IC:\Users\YCHI~1\AppData\Roaming\MATHWO~1\MATLAB~1\TOOLBO~1\NXP_MB~1\S32_Examples\common\pil -IC:\PROGRA~1\MATLAB\R2018b\extern\include -IC:\PROGRA~1\MATLAB\R2018b\simulink\include -IC:\PROGRA~1\MATLAB\R2018b\rtw\c\src -IC:\PROGRA~1\MATLAB\R2018b\rtw\c\src\ext_mode\common -IC:\PROGRA~1\MATLAB\R2018b\rtw\c\ert -IC:\Users\YCHI~1\AppData\Roaming\MATHWO~1\MATLAB~1\TOOLBO~1\NXP_MB~1\slprj\mbd_s32k14\_sharedutils -I"C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\tools\gcc-6.3-arm32-eabi/arm-none-eabi/include" -I..\..\..\..\slprj\mbd_s32k14\_sharedutils -I"./common" -I"./inc" -I"./src/clock/S32K1xx" -I"./src/sim/S32K144" -I"./src/power/S32K1xx" -I"./S32K144/include" -I"../common" -I"../inc" -I"../src/clock/S32K1xx" -I"../src/sim/S32K144" -I"../src/power/S32K1xx" -I"../S32K144/include" Assembler details : "C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\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: sim_pil_target_AMMCLIB_s32k14x_rtwlib.lib Build product type: library Building file ..\startup_S32K144.o... "C:\Users\y chi\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\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_S32K144.o ..\startup_S32K144.s gmake: *** [..\startup_S32K144.o] Error 1
### Build procedure for model: 'sim_pil_target_AMMCLIB_s32k14x' aborted due to an error.
Error(s) encountered while building "sim_pil_target_AMMCLIB_s32k14x"
I am just beginning to learn MBD and Embedded coder , So, I want to get some supports !  Thanks !

Outcomes