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.

TMS320C6678: SPI Boot PLL 配置失败导致连接不上仿真器

Part Number: TMS320C6678


各位专家好,最近学习了C6678 的SPI boot,在论坛里找了很多帖子,按照前辈们总结的方式生成了镜像文件。因为我使用的板卡是公司自己做的,参考时钟为156.25MHz,所以我将配置boot参数表的文件nysh.spi.map改为如下:

section {
boot_mode = 50
param_index = 0
options = 1
core_freq_mhz = 1000
exe_file = "led_play.i2c.ccs"
next_dev_addr_ext = 0x0
sw_pll_prediv = 5
sw_pll_mult = 64
sw_pll_postdiv = 2
sw_pll_flags = 1
addr_width = 24
n_pins = 4
csel = 0
mode = 0
c2t_delay = 0
bus_freq_mhz = 0
bus_freq_khz = 500
}

主频=64*156.25/5/2 =1GHz;但是生成的烧写文件烧入Flash后,断电重启就发现连接不上仿真器,报的错是 core is hunged……。因为之前出现过因为主频配置不对导致连接不上仿真器的类似情况,因此我根据RBL源码,将nysh.spi.map中sw_pll_flags值改为3,即使用bypass模式,修改后重新生成文件并烧写,能够boot成功。但是我想不使用bypass模式,因为主频太低可能导致boot速度过慢,以及spi接口速率也不能配置得太高。

因为我之前找的关于spi boot的帖子都是8 9年前的帖子,芯片似乎早已改版,我也不确定我使用的nysh.spi.map文件中关于PLL配置的参数是否正确,因为我看最新的PLLi芯片手册已经删除了PREDIV register的描述,能否帮我确认下正确的PLL配置参数?