hongjin zeng

MPC5643L download error

Discussion created by hongjin zeng on Jan 14, 2017
Latest reply on Jan 16, 2017 by Radu-marian Ivan

Hi everyone,

  While I build the DigitalIO_block_demo,an error occur.

### Generating code into build folder: D:\matlab_work\DigitalIO_block_demo_rappid_rtw ### Generated code for 'DigitalIO_block_demo' is up to date because no structural, parameter or code replacement library changes were found.

### Evaluating PostCodeGenCommand specified in the model

### Processing Template Makefile: C:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw_2013.tmf

### DigitalIO_block_demo.mk which is generated from C:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw_2013.tmf is up to date

### Building DigitalIO_block_demo: .\DigitalIO_block_demo.bat

D:\matlab_work\DigitalIO_block_demo_rappid_rtw>set MATLAB=C:\Program Files\MATLAB\R2014a

D:\matlab_work\DigitalIO_block_demo_rappid_rtw>"C:\Program Files\MATLAB\R2014a\bin\win32\gmake" -f DigitalIO_block_demo.mk GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 clean

RELATIVE_PATH_TO_ANCHOR is ..

==== Removing object files from build directory ====

Copying necessary files to build directory...

Compiler details : "C:/Freescale/CW MCU v10.7/MCU/PA_Tools/Command_Line_Tools/mwcceppc" -vle -DVLE_IS_ON -gdwarf-2 -fp spfp_only -spe_vector -char unsigned -proc Zen -gccincludes -nostdinc -nosyspath -ansi off -opt all -bool on -Cpp_exceptions off -prefix "C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/EWL_C/include/lib_ewl.prefix" -I. -I.. -I"C:\Program Files\MATLAB\R2014a"\simulink\include -I"C:\Program Files\MATLAB\R2014a"\extern\include -I"C:\Program Files\MATLAB\R2014a"\rtw\c\src -I"C:\Program Files\MATLAB\R2014a"\rtw\c\libsrc -I"C:\Program Files\MATLAB\R2014a"\rtw\c\src\ext_mode\common -I"C:\Program Files\MATLAB\R2014a"\rtw\c\src\ext_mode\tcpip -I"C:\Program Files\MATLAB\R2014a"\rtw\c\src\ext_mode\serial -I"C:\Program Files\MATLAB\R2014a"\rtw\c\src\ext_mode\custom -I"C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/EWL_Runtime/Runtime_PA/Include" -I"C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/EWL_Runtime/Runtime_PA/Source" -I"C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/lib" -I"C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/EWL_C/include" -I"C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/EWL_C++/include" -ID:\matlab_work\DigitalIO_block_demo_rappid_rtw -ID:\matlab_work -DUSE_RTMODEL -DMODEL=DigitalIO_block_demo -DREAL_T=float -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -c Assembler details : "C:/Freescale/CW MCU v10.7/MCU/PA_Tools/Command_Line_Tools/mwasmeppc" -vle -DVLE_IS_ON -proc Zen -list -gccincludes -nostdinc -c

Building assembly file crt0.o...

Building assembly file sw_handlers.o...

Building assembly file excep_handler.o...

Building file DigitalIO_block_demo.o...

Building file gpio_564xl_library.o...

Building file gt_pf.o...

Building file intc_init.o...

Building file intc_sw_vectable.o...

Building file pit_ch1_isr.o...

Building file pit_ch2_isr.o...

Building file pit_ch3_isr.o...

Building file pit_timer_564xl_library.o...

Building file profile_buffer.o...

Building file rappid_main.o...

Building file rappid_utils.o...

Building file siu_init.o...

Building file sys_init.o...

Building file sysclk_init.o...

==== Creating DigitalIO_block_demo.out from obj files ====

"C:/Freescale/CW MCU v10.7/MCU/PA_Tools/Command_Line_Tools/mwldeppc" crt0.o sw_handlers.o excep_handler.o DigitalIO_block_demo.o gpio_564xl_library.o gt_pf.o intc_init.o intc_sw_vectable.o pit_ch1_isr.o pit_ch2_isr.o pit_ch3_isr.o pit_timer_564xl_library.o profile_buffer.o rappid_main.o rappid_utils.o siu_init.o sys_init.o sysclk_init.o -o DigitalIO_block_demo.elf -gdwarf-2 -fp spfp_only -char unsigned -proc Zen -m _start -nostdlib -srec -lcf MPC564xLRAM.lcf "MCLIB_MPC564xL.PPCEABI.V.UC.a" "C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/lib/libc_E200z446_VLE_SPFP_Only.a" "C:/Freescale/CW MCU v10.7/MCU/PA_Support/ewl/lib/librt_E200z446_VLE_SPFP_Only.a" -Map DigitalIO_block_demo.map

Created executable: DigitalIO_block_demo.elf

Building target all

*** Created executable: DigitalIO_block_demo.elf

### Successful completion of build procedure for model: DigitalIO_block_demo

 

D:\matlab_work>"C:\MCToolbox\rappid564xl\tools\BootLoader\RAppID_BL.exe" "C:\MCToolbox\rappid564xl\tools\BootLoader\\" "D:\matlab_work\DigitalIO_block_demo_rappid_rtw\DigitalIO_block_demo.rbl"

An unhandled exception occurred: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: startIndex

In System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)

In System.Convert.ToInt32(String value, Int32 fromBase)

In RAppID_BL.GUI_Driver.GetCommChannel()

In RAppID_BL.GUI_Driver.StartBTL(String homeDir, Boolean showProgBar)

In RAppID_BL.MainProgram.Main(String[] args)

Build process completed successfully

Outcomes