TI F28379D - SERIAL COMMUNICATION WITH SIMULINK NOT WORKING
Afficher commentaires plus anciens
I have a LaunchpadXL F28379D board and I am trying to get the serial communication working. I started my program based on the Simulink examples: 'f28377S_DCDC_Buck.slx'and the host GUI 'c2000_host_read_12M.slx' . I did change the target board and processor to match my board, but it didn't work. I removed some of the blocks to simply the interface and now I just use the Simulink host interface to switch on/off the LEDs in my board, but it is not working. I checked the COM port configuration and it is ok, as I ran the demo example that came pre-loaded in the board. I am toggling two GPIOs (8/9) every time the SCI RX interrupt happens and checking them with an oscilloscope and they are working however it seems like the SCI RCV block is not working/ processing the data or I am missing some further configuration because the board LEDs are not changing at all. I simplify the Simulink host interface so that only one data line (active load) is sent. Any idea to solve this problem would be appreciated. I am using MATLAB2017b and CCS 8.0 I attached the Simulink files (board programming and host interface)
2 commentaires
Johannes Schnabel
le 23 Mar 2018
This issue is likely explained by one or both of the two points below.
1. Pins GPIO42 and GPIO43 must support SCI_A. For this board, we expect that pins GPIO42 and GPIO43 have been configured for SCI_A communication (TX and RX, respectively). Can you please confirm that this is the case?
2. The oscillator frequency must match the LaunchPad's external oscillator frequency. While the F28379D has an internal crystal that oscillates at 20MHz, the LaunchPad also has an external oscillator that runs at 10MHz. Simulink's default value is 20MHz. This setting is appropriate when working with the F28379D alone. However, this frequency value can cause problems when using external mode on a LaunchPad. Please go to Hardware Implementation -> Device details -> Clocking and change the value of "Oscillator clock (OSCCLK) frequency in MHz" from 20 to 10.
Danilo Llano
le 26 Mar 2018
Réponses (1)
Mukul Choudhury
le 8 Mai 2026 à 8:23
0 votes
Hi,
The oscillator frequency must match the LaunchPad's external oscillator frequency. While the F28379D has an internal crystal that oscillates at 20MHz, the LaunchPad also has an external oscillator that runs at 10MHz. Simulink's default value is 20MHz. This setting is appropriate when working with the F28379D alone. However, this frequency value can cause problems when using external mode on a LaunchPad. Please go to Hardware Implementation -> Device details -> Clocking and change the value of "Oscillator clock (OSCCLK) frequency in MHz" from 20 to 10.
Thanks,
Mukul
Catégories
En savoir plus sur Texas Instruments C2000 Processors dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!