Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hi,
I'm trying to work through the People Counting lab. I'm having trouble getting people counting to work when I'm launching from within CCS in Debug mode. I've followed the instructions in the Resource Explorer User Guide and advice on the forum. I've successfully built local versions of the MSS and DSS projects and when I upload the resulting binary using Uniflow, it works fine with the Matlab GUI. However, when I switch to trying to run in debug mode the GUI typically fails. I've had a couple times where I launched only from the DSS (by right clicking on the dss project and selecting 'debug as') and everything worked, but a) i couldn't reliably repeat getting it running and b) that only lets me debug one core anyway and duel core debugging will presumably be useful in future. As reiterated below, I've tried launching the code on both cores as described in the User Guide but that has yet to succeed- when I try to connect the GUI times out and crashes.
Any advice on how to get things running and why it is currently failing is much appreciated.
Thanks!
My environement: Windows 7, MMwave_industrial_toolbox_3_4_0, mmwave_sdk_03_01_01_02, ccs 9.1, compiling DSS using TI v7.4.16, compiling MSS using TI v18.12.1.LTS.
I have followed the instructions from the User Guide:
1) reflashed using Uniflash with 'xwr68_ccsdebug.bin'
2) lauched a target configuration as instructed with both processors
3) connected to both processors and loaded the relevant .xer4f/,xe674 files.
4) ran both files.
This is what I get from the terminal after launching, followed by what I get in Matlab (similar outcomes launching .exe vs within Matlab):
[Cortex_R4_0] **********************************************
Debug: Launching the Millimeter Wave Demo
**********************************************
Debug: MMWDemoMSS Launched the Initialization Task
[C674X_0] Debug: Logging UART Instance @00815800 has been opened successfully
Debug: DSS Mailbox Handle @0080c838
Debug: MMWDemoDSS create event handle succeeded
[Cortex_R4_0] Debug: System Heap (TCM): Size: 98304, Used = 4904, Free = 93400 bytes
[C674X_0] Debug: MMWDemoDSS mmWave Control Initialization succeeded
[Cortex_R4_0] Debug: MMWDemoMSS mmWave Control Initialization was successful
[C674X_0] Debug: MMWDemoDSS ADCBUF Instance(0) @008157e8 has been opened successfully
Debug: MMWDemoDSS Data Path init succeeded
Debug: MMWDemoDSS initTask exit
[Cortex_R4_0] Debug: CLI is operational
Debug: Heap before creating a tracker
Debug: System Heap (TCM): Size: 98304, Used = 30016, Free = 68288 bytes
Debug: (GtrackModuleInstance *)0x8009448
Debug: System Heap (TCM): Size: 98304, Used = 55088, Free = 43216 bytes
Debug: Heap before creating a tracker
Debug: System Heap (TCM): Size: 98304, Used = 55088, Free = 43216 bytes
Debug: (GtrackModuleInstance *)0x8009448
Debug: System Heap (TCM): Size: 98304, Used = 55088, Free = 43216 bytes
------------------- Matlab output ---------------------
Warning: MATLAB has disabled some advanced graphics rendering features by
switching to software OpenGL. For more information, click here.
hObject =
UIControl (editUART) with properties:
Style: 'edit'
String: 'COM3'
BackgroundColor: [1 1 1]
Callback: [function_handle]
Value: 0
Position: [0.3046 0.7262 0.2831 0.2857]
Units: 'normalized'
Show all properties
Opening configuration file ../chirp_cfg/mmw_pplcount_demo_default.cfg ...
trackingCfg specifies -6.981317e-01.
GUI specifies 0. 90 will be used for azimuth in cfg.
Sending configuration from ../chirp_cfg/mmw_pplcount_demo_default.cfg file to IWR16xx ...
Serial Port Object : Serial-COM3
Communication Settings
Port: COM3
BaudRate: 115200
Terminator: 'LF'
Communication State
Status: open
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
flushCfg
dfeDataOutputMode 1
channelCfg 15 5 0
adcCfg 2 1
adcbufCfg 0 1 1 1
profileCfg 0 60.6 30 10 62 0 0 53 1 128 2500 0 0 30
chirpCfg 0 0 0 0 0 0 0 1
chirpCfg 1 1 0 0 0 0 0 4
frameCfg 0 1 128 0 50 1 0
lowPower 0 1
guiMonitor 1 1 0 0
cfarCfg 6 4 4 4 4 16 16 4 4 55 67 0
doaCfg 600 1875 30 1 1 0
SceneryParam -6 6 0.5 6
GatingParam 3 2 2 0
StateParam 10 5 100 100 5
AllocationParam 250 250 0.25 30 1 2
AccelerationParam 1 1 1
trackingCfg 1 2 250 20 52 82 50 90
Warning: A timeout occurred before the Terminator was reached.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
Warning: The specified amount of data was not returned within the Timeout
period.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
sensorStart
Warning: A timeout occurred before the Terminator was reached.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
Warning: A timeout occurred before the Terminator was reached.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
Warning: The specified amount of data was not returned within the Timeout
period.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
Warning: A timeout occurred before the Terminator was reached.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
Warning: A timeout occurred before the Terminator was reached.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
left wall: -6
R wall: 6
front wall: 6
back wall: 0
Opening configuration file ../chirp_cfg/mmw_pplcount_demo_default.cfg ...
------------------
Warning: The specified amount of data was not returned within the Timeout
period.
'serial' unable to read any data. For more information on possible reasons,
see Serial Read Warnings.
Index exceeds the number of array elements (0).
Error in main_pplcount_viz>pplcount_gui (line 512)
magicBytes = typecast(uint8(rxHeader(1:8)), 'uint64');
Error in main_pplcount_viz (line 1)
pplcount_gui();