This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problems with SCI Communication on HVMTR with F28069M and F28027

Other Parts Discussed in Thread: TMDSHVMTRINSPIN, CONTROLSUITE

Hello,

I'm using a TMDSHVMTRINSPIN Kit(Rev 1p1) with a TMS320F28069MPZT controlCard and a TMS320F28027FPTT controlCard. At the moment I'm trying to use a SCI Communication to send and recieve data via Simulink Embedded Coder Toolbox with a USB connection. As a beginning I'm trying to send a constant via SCI to the board and send that constant back to Simulink via SCI. At the moment this is not working with either controlCard. I also tried to only send from the controlCard to Simulink or send from Simulink to the controlCard to drive a ePWM. Non of these operations are working.

Independent from Simulink, I wanted to ask if it is actually possible to do this with this hardware configuration? After I researched in the TI documentation, I'm a bit confussd to be honest. 

If I read the documentation correct, You cannot use the SCI(UART) of the HVMTR with the F28069M because of a problem with the isolated USB emulator of the controlCard and the UART of the board. Is this correct? Is there a way to use the UART Connection to Recieve and Transmit on SCI with the F28069M?

Switchsettings of the F28069M at the moment are: SW1: P1 on, P2 on; SW2: P1 off, P2 off; SW3: P1 on, P2 on.

Jummpersettings of the HVMTR: J5 populated, J9 not populated.

When using the F28027, I get the same results. But after researching the TI documentation, I found that it should work in general. What I didn't fully understand is the use of resistor R10 on the ontrolCard. In the HVMTR Quick Start Guide it is stated that R10 needs to be depopulated to use the UART of the HVMTR. In the HW Guide for the F28027 it is stated, that if R10 is populated the oncard tranciever is conected while if R10 is depopulated the RX pin can be controlled by the baseboard. The latter is said to be default, but on the card I'm using there is clearly something populating R10. Do we have to detach that to be able to communicat via SCI(UART)?

Switchsettings of the F28027 at the moment are: SW1: P1 on, P2 on; SW2: P1 off, P2 off; SW3: P1 off, P2 off; SW4: P1 off, P2 off.

Jumpersettings of the HVMTR: J5 not populated, J9 populated.

Maybe to add, both ontrolCards are working fine when I load a program to blink a LED or drive a ePWM directly using Simulink Embedded Coder to generate Code and CCS 6.1.

Can somebody help me straighten out these Problems? I'm trying to work my way up from hardware to software to find possible mistakes. Thanks in advance.

Kind Regads

Martin Rupp

  • Hi Martin,

    As a 1st step I am going to focus my response on establish an SCI (UART) link with your controlCARD. It is clear you using the TMDSCNCD28069MISO controlCARD that has the TMS320F28069MPZT MCU onboard.

    This cCARD has the isolated USB interface to the FTDI chip that provides both isolated JTAG and isolated SCI communications through the single USB connection on the cCARD. Your SW3 settings (ON, ON) confirm that you have the cCARD's FTDI configured to use both JTAG and SCI.

    Have you tried using a terminal program to verify the serial communications using the example SCI software in ControlSUITE (C:\TI\controlSUITE\device_support\f2806x\v150\F2806x_examples_ccsv5\sci_echoback)? This would be a good place to start, establishing UART communications with the cCARD.

    Jeff
  • Hi Jeff,

    thank you for your reply. No, I didn't try the sci_echoback example yet. I also have to say, that I'm not very knowledgeable with C Coding. I'm more of a Matlab/Simulink kind of guy but I will definitely have a look into this when I can get back to the hardware on Tuesday.

    I also should say that I actually detached the R10 resistor on the F28027 controlCard and now I can use SCI on this Card with the HVMTR Board. But I would like to use the floating point option with the F28069M. So I will try the sci_echoback example and report back.

    Thanks again Jeff.

    Kind Regards

    Martin

  • Hello,

    I tried again with the F28069M, first the sci_echoback example and after that in Simulink. In both cases I now got a strange result.

    If i start the sci_echoback example, I recieve "Hello World! You will enter a character and the DSP will anser it back! Enter a character:" As you would expect. But when i type a character, I don't revieve an answer. I must say, that I have to use PuTTy and not HyperTerminal. I thought it might be wrong setting that deleted what I wrote, so I tried in Simulink.

    First, I tried to send a constant through SCI from the F28069M to the Host, which worked even I thought I did the same thing as last time where I didn't recieve anything but ok, I thought I had solved it. But If I try to take a constant and send ist to the card and recieve it back(like the echoback) I don't get that constant. Same result if I try to send a constant to set the duty cycle of a ePWM.

    So basically, I can recieve data from the F28069M, but I can't send to the F28069M. I don't know If this is important, but both blue LEDs on the Card are flashing while the Program is running. I thought that ment that it sends AND recieves data, but it seems it means ist sends and WAITS for data. Is that correct.

    Kind Regards

    Martin