Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

TMS320F28379D: Using Matlab Simulink to run serial communication

Part Number: TMS320F28379D
Other Parts Discussed in Thread: TMDSDOCK28379D

Hi,

I'm kind of new to this forum. I'm trying to run the TMDSDOCK28379D development kit to establish a serial communication. I have to use Simulink to make it work. I just tried to run the board with a very very simple code, pull up a digital output, and I was successful. Now, I need to design a serial communication (RS422) but I can't find the proper block (SPI or SCI) in Simulink. Can you please help me out on this matter?

Thanks,

Kash

  • Hi,

    Khashayar olia said:
    Now, I need to design a serial communication (RS422) but I can't find the proper block (SPI or SCI) in Simulink. Can you please help me out on this matter?

    You can refer to this video of mine:

    SCI block above is meant for F28027 controller and you can apply the same block configuration for your device too.

    Regards,

    Gautam

  • Gautam,
    Thanks for the video. I installed Matlab 2016b and now I can build the code and run it. but there is another issue, when I unplug the controlCARD from power, it seems the flash memory gets reset and I need to reprogram it. I tried to change the "A:SW1" to "Standalone" mode (boot from Flash) but it didn't help out. do I need to program it to flash specifically?
  • In Simulink configuration did you check on the "Boot from Flash" checkbox?

  • I did but it didn't work. There is a switch called "A:SW1" which needs to be configured for "Boot from Flash". It should be ON to be programmed through Simulink and should be OFF to be able to boot as a standalone system. When I put it on OFF mode and unplug it, it never boot again.

    UPDATE: I found the problem. in the "Information guide", it's mentioned that for boot from flash A:SW1 should be DOWN (OFF) and SW1 should be as desired. but based on the schematic for boot from flash A:SW1 should be DOWN (OFF)  and the SW1 should be UP-UP (OFF-OFF). So now it boots from flash and work.

    Thanks,

    Kash

  • Great Kash!

    Goodluck & Regards,
    Gautam