Other Parts Discussed in Thread: C2000WARE
Tool/software:
Dear Texas Instruments Support,
I am currently working with the TMS320F28P65X microcontroller and testing the flash serial programming example using serial_flash_programmer.exe. The process is functional; however, I am experiencing extremely slow transfer speeds while loading the flash kernel into RAM via SCI boot mode.
Observations:
- Kernel Load Time: ~8 minutes
- Application Load Time: <1 minute
- Measured Transfer Speeds:
- At >38400 baud, transfer could not be established.
- At 38400 baud, effective transfer rate: 500 bits/s
- At 9600 baud, effective transfer rate: 404 bits/s
- Bottleneck Identified:
- Using a logic analyzer, I observed that the flash kernel is being transferred byte by byte, with a minimum delay of 16ms between each byte.
- The time between bytes persists even after adjusting COM port configurations.
Hardware Setup:
To troubleshoot the issue, I modified my setup by connecting the XDS110 application/user COM UART to SCIA through the XDS110 Target Interface connector and GPIO12 and GPIO13.
Command used: serial_flash_programmer.exe -d f28p65x -a led_ex1_c28x_dual_blinky_cpu1.txt -n led_ex1_c28x_dual_blinky_cpu2.txt -b 34800 -p COM4 -v
Questions:
- Expected Bootloader Timing: Is the 16ms inter-byte delay caused by the serial_flash_programmer.exe, or is this caused by external factors?
- Optimizing Transfer Speed: Are there any recommended settings, flow control mechanisms, or USB-to-serial adapters that would improve performance?
Next Steps:
My final goal is to download the flash kernel to Flash, so that the microcontroller can always boot from Flash instead of requiring loading the kernel. Once I have the kernel in Flash, I plan to modify both the flash kernel and the flash serial application to use the custom protocol already implemented in my powertrain system for compatibility.
Any guidance on reducing the kernel load time, optimizing the bootloader process, and implementing a Flash-based boot approach would be greatly appreciated.
Best regards,
Luciano Vittori