Other Parts Discussed in Thread: HALCOGEN
Hi,
I am trying to run a PIL simulation in Matlab Simulink ( Matlab 2017a) with an TMS570 MCU development kit .However, after following all the instructions for PIL setup settings required for TMS570 , I get an error message (Timeout problem ) in Matlab Command window as described below and I have tried commenting out the SCIInit() function in the rtIOStream close function - but I have the same error.
Please your support
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
"### Creating standalone executable "ex1_fir_mdl.out" ..."
C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl -z -m"TI_HerculesPilSerial.map" -i"C:/ti/ccsv5/tools/compiler/arm_5.1.1/lib" -i"C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --rom_model --stack=0 --be32 "C:/TI_Hercules_PIL_Target_for_RM48/code/src/MY_HERCULES\halcogen\source\sys_link.cmd" --output_file=ex1_fir_mdl.out xil_interface_lib.obj xil_data_stream.obj xil_services.obj xil_interface.obj xilcomms_rtiostream.obj xil_rtiostream.obj rtiostream_utils.obj coder_assumptions_app.obj coder_assumptions_data_stream.obj coder_assumptions_hwimpl.obj ex1_fir_mdl_ca.obj coder_assumptions_rtiostream.obj pil_main.obj adc.obj can.obj esm.obj gio.obj het.obj notification.obj rti.obj sci.obj spi.obj sys_phantom.obj sys_startup.obj system.obj sys_core.obj sys_intvecs.obj sys_memory.obj sys_mpu.obj sys_pmu.obj TI_RM48HDKSerialRtiostream-Rtiostream.obj xil_instrumentation.obj codeinstr_data_stream.obj codeinstr_rtiostream.obj C:/Users/Al/Desktop/TI_Hercules_PIL_Target_for_RM48/code/examples/slprj/ert/ex1_fir_mdl/pil/../instrumented/ex1_fir_mdl_rtwlib.lib "C:/ti/ccsv5/tools/compiler/arm_5.1.1/lib\rtsv7R4_T_be_v3D16_eabi.lib"
<Linking>
"### Created: ex1_fir_mdl.out"
"### Successfully generated all binary outputs."
gmake: Leaving directory `C:/Users/Al/Desktop/TI_Hercules_PIL_Target_for_RM48/code/examples/slprj/ert/ex1_fir_mdl/pil'
C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\examples\slprj\ert\ex1_fir_mdl\pil>exit /B 0
### Starting application: 'slprj\ert\ex1_fir_mdl\pil\ex1_fir_mdl.out'
Begin communication with RM48
Launching loadti to download C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\examples\slprj\ert\ex1_fir_mdl\pil\ex1_fir_mdl.out
Launcher command string: C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\utils\loader\loadti
Launcher command arguments: C:\ti\ccsv5\ccs_base\DebugServer C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\utils\loader -r -a -c "C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\src\MY_HERCULES\TMS570LS20216SPGE.ccxml" -x "C:\Temp\tp9fc38eaf_cc2c_47b1_9f15_1a2292033aae_loadti_log.xml" "C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\examples\slprj\ert\ex1_fir_mdl\pil\ex1_fir_mdl.out"
***** DSS Generic Loader *****
START: 12:40:59 GMT+0200 (MESZ)
Configuring Debug Server for specified target...
Done
TARGET: Texas Instruments XDS100v2 USB Emulator
Connecting to target...
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0
Resetting target...
testEnv.outFiles: C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\examples\slprj\ert\ex1_fir_mdl\pil\ex1_fir_mdl.out
Loading C:\Users\Al\Desktop\TI_Hercules_PIL_Target_for_RM48\code\examples\slprj\ert\ex1_fir_mdl\pil\ex1_fir_mdl.out
Done
Target running...
END: 12:41:15 GMT+0200 (MESZ)
Pausing 3 Seconds
Error using ex1_fir_filter (line 199)
Error due to multiple causes.
Caused by:
Error using ex1_fir_filter (line 199)
The timeout of 60 seconds for receiving data from the rtiostream interface has been exceeded. There might be multiple reasons for this failure.
You should:
(a) Check that the target hardware configuration is correct, for example, check that the byte ordering is correct.
(b) Confirm that the target is running.
(c) Consider the possibility of application run-time failures (e.g. divide by zero exceptions, incorrect custom code integration, etc.).
Note (c): To identify possible reasons for the run-time failure, consider using SIL, which supports signal handlers and debugging.
If you cannot find a solution, consider using the method setTimeoutRecvSecs of rtw.connectivity.RtIOStreamHostCommunicator to increase the timeout value. Error using
ex1_fir_filter (line 199)
Output argument "lSections" (and maybe others) not assigned during call to "coder.profile.ExecutionTime/get.Sections".
Thanks in advance.
Best Regards,
Hussein

