Simultaneously send data over SCIA-UART port and logging data on SD-card using an TI F28P65

5 次查看(过去 30 天)
Good evening,
I am writing code in Simulink for the TI f28p65 Launchpad of Texas instruments. Over all I use the c2000 library.
Following the tutorial https://de.mathworks.com/help/ti-c2000/ug/mat-file-sd-card-logging.html I am using a Scope block to log the data via the SPI-interface. Additionally I use SCIA-UART transmit to output the data in form of a string.
Sending the data via UART works fine in case I dont enable the sd card logging.
I have checked the correct setting of the pins as well as the funcitonality of the cables.
A similar issue occured already for the microcontroller, only it was programmed in c, such that no help was given for simulink. (https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1080828/tms320f280025-uart-and-spi)
I am looking forward to hearing from you!
Cheers,
Isabella
  1 个评论
Sumukh
Sumukh 2025-8-11
编辑:Sumukh 2025-8-11
I am assuming that you are using external SD card logging with TI F28P65x Launchpad using SPI D module.
The jumper connections that are used to connect to the SD card from the launchpad will cause delays in communication between the launchpad the SD card. So, change the "SPI Baud rate setting" in SD Card logging section to "Inherit from SPI settings" instead of using the maximum acheivable SD card baud rate, and use baud rate 4Mbps or greater in the SPI D module's Configuration Parameters, as it is possible that the SD card may not be mounting correctly during initialization due to lower baud rates.
Check this in addition to the troubleshooting steps mentioned by @Madheswaran
I hope this helps.

请先登录,再进行评论。

回答(1 个)

Madheswaran
Madheswaran 2025-8-7
Hello,
I understand you are facing an issue when SD card logging is enabled while sending data using UART. As initial troubleshooting steps, I suggest you do the following:
1. Verify that the GPIO pins and SPI module dedicated to SD card logging are not being used with other peripherals. Using these pins with other peripherals will cause conflicts and the logging will fail.
2. Additionaly, if you are using the external SD card interface, ensure the connections for SPIMO, SOMI, CLK and STE pins are correct.
3. Review your GPIO pin configurations in the corresponding SPI_x pane of your configuration parameters. Please ensure that you have selected appropriate and non-conflicting GPIO pins for Peripheral in controller out pin assignment, Peripheral out controller in pin assignment, CLK pin assignment, and Chip select pin assignment. You can find more information about these settings here: https://mathworks.com/help/ti-c2000/ref/sect-hw-imp-pane-sdcard-logging.html
I hope this helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by