Dear All,
I have managed to run the Lab tutorial concerning the SCI from the control Suite on my custom made board with TMS320F28335 and XDS100V1. The board uses F28335 control card r2.2. I am currently using CCS6.5 under Windows 7 SP1. I also did test the communication by using the recommended software hercules_3-2-8 from the tutorial. Then I decided to move forward and make the link between the DSP and Matlab. I configured the serial port as follow:
>> s=serial('COM31', 'BaudRate', 9600, 'DataBits', 8, 'Parity', 'Odd','FlowControl', 'none','StopBits',1, 'Terminator', 'CR')
and this is what Matlab (2012b) returns:
Serial Port Object : Serial-COM31
Communication Settings
Port: COM31
BaudRate: 9600
Terminator: 'CR'
Communication State
Status: closed
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
So far, so good!
>> fopen(s) % Open the terminal
>> fprintf(s,'UP101') % send to the DSP the message UP101 and this must return the same message as the tutorial i.e." Instruments"
>> fgets(s) % reading the message
ans =
Instruments!
Again no problems.
The problem appears when I send the message again
>> fprintf(s,'UP101')
>> fgets(s)
Warning: Unexpected Warning: A timeout occurred before the Terminator was reached.
ans =
' '
>>
I did send the same message and the same answer should be expected but it did not appear correctly at all.
My question is - where and what do I do wrong?
Is this the proper set of instructions that I have to use to request and send information or not?
Best regards,
Dimitar