Part Number: TMS320F28P650DK
Tool/software:
Hi experts
I have a question regarding configuring a project using .syscfg. When using SCI, I want to set the baud rate to 2.5M. With the default LSPCLK (50M), calculating 2.5M is not feasible, so I need to modify LSPCLK to 100M. Here are my attempts:
1. I used the LED code from the dual-core example and modified LOSPCP. When checking via debugging, the changes did not take effect. I found the issue shown in the figure below: in the dual-core example with failed frequency division, although clocktree.h was generated, it did not use DEVICE_LSPCLK_FREQ from clocktree.h; instead, it used DEVICE_LSPCLK_FREQ from device.h, causing the SCI baud rate of 2.5M to be incorrect.
When I used the SCI code from the single-core example and modified the LSPCLK allocation, debugging showed that DEVICE_LSPCLK_FREQ called the value from clocktree.h, and the SCI-generated baud rate of 2.5M was correct. Both are official examples, and I only modified the LSPCLK prescale without making any other changes.


2. In the LED code of the dual-core example, I manually modified the LSPCLK prescale in device.c as shown in the figure below. The SCI baud rate of 2.5M was successfully configured, but when I added other peripherals (e.g., CAN), the system failed to run (I understand that LSPCLK is only related to SCI and SPI, not CAN).

