mbd_s32k_copy_required_files and mbd_s32k_copy_required_files have failures

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

mbd_s32k_copy_required_files and mbd_s32k_copy_required_files have failures

707 Views
geertvenken
Contributor I

Using Matlab-Simulink-Embedded coder with the NXP_MBDToolbox_S32K1xx 4.2.0.

Generating code gives failures in mbd_s32k_copy_required_files and mbd_s32k_copy_required_files:

Failure in mbd_s32k_copy_required_files: Index exceeds the number of array elements (0).
Failure in mbd_s32k_make_rtw_hook: SWITCH expression must be a scalar or a character vector.

See complete log of diagnostic viewer in HWIntegration_build_202202022_115135.txt .

This results in an incomplete makefile with following user defined tokens not correctly filled:

#---------------------- User defined tokens ------------------------------------

TARGET_MCU = |>TARGET_MCU<|
SDK_TARGET_MCU = |>SDK_TARGET_MCU<|
TARGET_COMPILER = |>TARGET_COMPILER<|
TARGET_MEMORY = |>TARGET_MEMORY<|
FPU_USED = |>TARGET_FPU<|
TARGET_LINKER = |>TARGET_LINKER<|
TARGET_MC_LIB = |>TARGET_MC_LIB<|
TBX_SRCS =
TBX_VPATH = |>TBX_VPATH<|
TBX_INCLUDES = |>TBX_INCLUDES<|

#--------------------------- GCC -----------------------
GCC_TARGET_CC_OPTS = |>GCC_TARGET_CC_OPTS<|
GCC_TARGET_ASM_OPTS = |>GCC_TARGET_ASM_OPTS<|
GCC_TARGET_LINK_OPTS = |>GCC_TARGET_LINK_OPTS<|
GCC_TARGET_LIB_OPTS = |>GCC_TARGET_LIB_OPTS<|
#--------------------------- GHS -----------------------
GHS_TARGET_CC_OPTS = |>GHS_TARGET_CC_OPTS<|
GHS_TARGET_ASM_OPTS = |>GHS_TARGET_ASM_OPTS<|
GHS_TARGET_LINK_OPTS = |>GHS_TARGET_LINK_OPTS<|
GHS_TARGET_LIB_OPTS = |>GHS_TARGET_LIB_OPTS<|
#--------------------------- IAR -----------------------
IAR_TARGET_CC_OPTS = |>IAR_TARGET_CC_OPTS<|
IAR_TARGET_ASM_OPTS = |>IAR_TARGET_ASM_OPTS<|
IAR_TARGET_LINK_OPTS = |>IAR_TARGET_LINK_OPTS<|
IAR_TARGET_LIB_OPTS = |>IAR_TARGET_LIB_OPTS<|

The incorrect makefile is also attached.

The model is bases on the Battery Management system example and so contains referenced models (like Balancing_logic, SOC_Estimation, State_Machine....) .  Generating the makefile of Balancing logic goes wrong as shown above, all other referenced models are generated correctly and can be build. The complete model and all referenced models use the same configuration which is referenced and is available in a shared sldd data source file.

Please advise how to solve this issue.

Kind regards,

Geert Venken

Tags (1)
0 Kudos
0 Replies