Hallo,
ich habe dieses Board: HVP-MC3PH: High-Voltage Development Platform
und diese Controller Karte: HVP-KV46F150M mit diesem Controller: MKV46F256VLL16
Ich möchte ein simples Simulink Modell auf die Hardware laden, das schlägt mit folgender Meldung im Build Report fehl:
(I want to load a simple Simulink model to the hardware, which fails with the following message in the build Report):
### Successful completion of build procedure for model: NXP_LED
COPY CATCH: Error using fileattrib
Das System kann die angegebene Datei nicht finden.
In der Modellkonfiguration ist mir noch folgendes aufgefallen:
Auf der Controller Karte ist ein MKV46F256VLL16 verbaut, diesen kann ich aber nicht einstellen sondern nur MKV46F256VLL15. Macht dies einen Unterschied ?
(In the model configuration I noticed the following:
On the controller card is an MKV46F256VLL16 installed, but this I can not adjustin the config. Here only MKV46F256VLL15 is possible. Does this make a difference?)
Hallo dumitru-daniel.popa,
the installation path from MATLAB is this: C:\Program Files\MATLAB
The Toolbox is installed here: C:\MCToolbox
Which options I have to configure ??
Here is the comoplete build report:
=== Build (Elapsed: 35 sec) ===
Error mcd_kv4xf_consistency_check: exception id MATLAB:badsubscriptmessage Index exceeds matrix dimensions.
### Starting build procedure for model: NXP_LED
### Generating code into build folder: H:\MATLAB Projekte\FPA\NXP LED\NXP_LED_mcd_rtw
Error mcd_kv4xf_consistency_check: exception id MATLAB:badsubscriptmessage Index exceeds matrix dimensions.
### Generated code for 'NXP_LED' is up to date because no structural, parameter or code replacement library changes were found.
.
### Processing Template Makefile: C:\MCToolbox\mctbx_Kinetis\mctbx_kv4xf\mctbx_kv4xf\mcd_kv4xf.tmf
### NXP_LED.mk which is generated from C:\MCToolbox\mctbx_Kinetis\mctbx_kv4xf\mctbx_kv4xf\mcd_kv4xf.tmf is up to date
### Building NXP_LED: .\NXP_LED.bat
H:\MATLAB Projekte\FPA\NXP LED\NXP_LED_mcd_rtw>set MATLAB=C:\Program Files\MATLAB\R2017a
H:\MATLAB Projekte\FPA\NXP LED\NXP_LED_mcd_rtw>"C:\Program Files\MATLAB\R2017a\bin\win64\gmake" -f NXP_LED.mk COPY_MDLREF_INCLUDES=0 CMSIS_NEED=0 CMSIS_LIB= ISPROTECTINGMODEL=NOTPROTECTING GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 TARGET_SYSTEM_CLOCK="120" MCU_CRYSTAL_FREQ="External 8" GCC_TARGET_DEFAULT_LCF=1 GCC_TARGET_USER_LCF="MKV46F256xxx15_flash.ld" IAR_TARGET_DEFAULT_LCF=1 IAR_TARGET_USER_LCF="MKV46F256xxx15_flash.icf" PIL_DOWNLOAD=0 RBL_DOWNLOAD=1
Cleaning...
RELATIVE_PATH_TO_ANCHOR is ..
==== Removing object files from build directory ====
Copying necessary files to build directory...
Compiler details : "C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o SetupFiles -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15"
Assembler details :
Building file startup_MKV46F15.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iasmarm" --cpu Cortex-M4F --fpu VFPv4_sp startup_MKV46F15.s
IAR Assembler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Errors: 0
Warnings: 0
Bytes: 1128
Building file NXP_LED.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o NXP_LED.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" NXP_LED.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
178 bytes of CODE memory
4 bytes of CONST memory
8 bytes of DATA memory
Errors: none
Warnings: none
Building file fsl_clock_manager.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_clock_manager.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_clock_manager.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
656 bytes of CODE memory
8 bytes of CONST memory
92 bytes of DATA memory
Errors: none
Warnings: none
Building file fsl_gpio_common.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_gpio_common.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_gpio_common.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
48 bytes of CONST memory
Errors: none
Warnings: none
Building file fsl_gpio_driver.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_gpio_driver.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_gpio_driver.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
504 bytes of CODE memory
Errors: none
Warnings: none
Building file fsl_gpio_hal.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_gpio_hal.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_gpio_hal.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
46 bytes of CODE memory
Errors: none
Warnings: none
Building file fsl_gpio_irq.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_gpio_irq.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_gpio_irq.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
254 bytes of CODE memory
640 bytes of DATA memory
Errors: none
Warnings: none
Building file fsl_interrupt_manager.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_interrupt_manager.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_interrupt_manager.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
46 bytes of CODE memory
4 bytes of DATA memory
Errors: none
Warnings: none
Building file fsl_mcg_hal.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_mcg_hal.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_mcg_hal.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
380 bytes of CODE memory
Errors: none
Warnings: none
Building file fsl_sim_clock_module_names_MKV46F15.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_sim_clock_module_names_MKV46F15.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_sim_clock_module_names_MKV46F15.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
504 bytes of CONST memory
76 bytes of DATA memory
Errors: none
Warnings: none
Building file fsl_sim_hal.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o fsl_sim_hal.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" fsl_sim_hal.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
710 bytes of CODE memory
Errors: none
Warnings: none
Building file mcd_main.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o mcd_main.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" mcd_main.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
86 bytes of CODE memory
4 bytes of DATA memory
Errors: none
Warnings: none
Building file startup.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o startup.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" startup.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
84 bytes of CODE memory
Errors: none
Warnings: none
Building file system_MKV46F15.o...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/iccarm" --cpu=Cortex-M4F --fpu=VFPv4_sp -e --debug --dlib_config normal -Oh -DARM_MATH_CM4 -o system_MKV46F15.o -DCPU_MKV46F256VLL15 -I. -I.. -IH:\MATLAB~1\FPA\NXPLED~1 -IH:\MATLAB~1\FPA\NXPLED~1\NXP_LED_mcd_rtw -I"C:\Program Files\MATLAB\R2017a\simulink\include" -I"C:\Program Files\MATLAB\R2017a\extern\include" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src" -I"C:\Program Files\MATLAB\R2017a\rtw\c\libsrc" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\tcpip" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\serial" -I"C:\Program Files\MATLAB\R2017a\rtw\c\src\ext_mode\custom" -I".\CMSIS\Include" -I".\CMSIS\Include\device" -I".\CMSIS\Include\device\MKV46F15" -I"..\CMSIS\Include" -I"..\CMSIS\Include\device" -I"..\CMSIS\Include\device\MKV46F15" system_MKV46F15.c
IAR ANSI C/C++ Compiler V8.11.3.13950/W32 for ARM
Copyright 1999-2017 IAR Systems AB.
Standalone license - IAR Embedded Workbench for ARM, 32K Kickstart Edition 8.11
596 bytes of CODE memory
4 bytes of DATA memory
Errors: none
Warnings: none
==== Creating NXP_LED.elf from obj files ====
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/ilinkarm" --config MKV4xF.icf --no_exceptions --vfe --inline startup_MKV46F15.o NXP_LED.o fsl_clock_manager.o fsl_gpio_common.o fsl_gpio_driver.o fsl_gpio_hal.o fsl_gpio_irq.o fsl_interrupt_manager.o fsl_mcg_hal.o fsl_sim_clock_module_names_MKV46F15.o fsl_sim_hal.o mcd_main.o startup.o system_MKV46F15.o "CM4_MMCLIB_IAR.a" --map NXP_LED.map -o NXP_LED.elf
IAR ELF Linker V8.11.3.13950/W32 for ARM
Copyright 2007-2017 IAR Systems AB.
3 074 bytes of readonly code memory
542 bytes of readonly data memory
1 724 bytes of readwrite data memory
Errors: none
Warnings: none
Link time: 0.12 (CPU) 0.77 (elapsed)
Created executable: NXP_LED.elf
Generating S-record...
"C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0//arm/bin/ielftool" NXP_LED.elf NXP_LED.mot --srec --silent
Created S-record: NXP_LED.mot
Building target all
*** Created executable: NXP_LED.mot
### Successful completion of build procedure for model: NXP_LED
COPY CATCH: Error using fileattrib
Das System kann den angegebenen Pfad nicht finden.
Can't download the file to the board.
Hi lethuer,
It seems that the elf and the corresponding mot files have been created successful - therefore is not an issue with the compiler toolchain.
In general the " Can't download the file to the board." appears when the communication with the board is not set correctly: protocol or/and port/drive letter
Only if i mess up the communication ports i could reproduce your issue:
COPY CATCH: Error using fileattrib
The system cannot find the path specified.
Can't download the file to the board.
Let me know if you have managed to fix it by double checking your connection to the board settings.
Hope this helps!
Daniel
I've checked the configuration again and it is like yours.
Anyway I guess the Bitlocker on my System could be the reason.
Hi lethuer,
Yes, that's most likely be the culprit. I guess the bitlocker is disabling the mass storage. Without the mass storage mapped in your system there is no way for the toolbox to copy the mot file to the destination - hence the error.
Can you address this limitation with your IT department ?
Best regards,
Daniel
Hallo lethuer,
For question #1:
Can you please copy-paste the entire Simulink console log message ?
Do you have the toolbox and/or Matlab installed in a path that contains space characters (e.g. "Program Files") That might cause such issue is the system is not configured correctly (e.g. 8dot3 option disabled)
For question #2:
Long story short: by the release time of the toolbox the MKV46F256VLL16 part did not existed. It was later on marketed as the MKV46F256VLL15 part but with higher frequency 150MHz -> 168MHz.
The configuration between MKV46F256VLL16 and MKV46F256VLL15 is the same the only limitation is that you can not setup the clock to the maximum 168MHz.
As long as you do not need the max frequency and 150Mhz is good enough for you then you can use the MKV46F256VLL15 selection.
Best regards,
Daniel