MCU Boot utility use custom DCD.bin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCU Boot utility use custom DCD.bin

Jump to solution
1,976 Views
jingyangxie
Contributor V

我有一个自制的rt1170的板卡,SDRAM与开发板不同,按照MCU Boot utility的\NXP-MCUBootUtility-3.5.0\src\targets\MIMXRT1176\evkmimxrt1170_xip_boot_header_dcd.bin和配置的dcd.c文件,生成新的dcd.bin文件,但烧录hello world程序后,程序无法运行,链接文件使用的是hello  world这个demo 的sdram_txt.icf,我想问下,MCU BOOt Utility使用dcd.bin文件时,如何指定SDRAM的时钟,我的SDRAM运行在132MHz,不是官方开发板的198MHz,而且没有DQS信号,dcd.bin 和dcd.c见附件。

另:如果使用链接文件ram.icf ,然后在应用中对SDRAM进行初始化,是可以正常访问的,数据校验是OK的,说明硬件没问题。

0 Kudos
Reply
1 Solution
1,950 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
非常感谢使用NXP产品,很高兴为你提供技术支持!
不需要系统起来后对SDRAM再次进行初始化,我觉得你还是DCD没有配置好, 你可以通过MCUXpresso Config Tools工具调整DCD并导出DCD.bin文件。

jeremyzhou_0-1666939758668.png

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
5 Replies
1,967 Views
jingyangxie
Contributor V

经过测试发现,只要把SEMC_MCR由默认的0x10000004改为0x10000000,即禁用SDRAM的DQS信号,则生成的dcd.bin文件经MCU BootUtility导入并烧录应用程序后,程序就无法运行(在rt1170-EVK开发板上测试),请问BOOTROM在使用DCD数据初始化SDRAM时,一定要用到DQS新号吗

/* #1.128, command: write_value, address: SEMC_MCR, value: 0x10000000, size: 4 */
0x40, 0x0D, 0x40, 0x00, 0x10, 0x00, 0x00, 0x00,

0 Kudos
Reply
1,957 Views
jay_heng
NXP Employee
NXP Employee

跟 BootROM 初始化 SDRAM 时是否需要 DQS 无关,BootROM 就是单纯解析 dcd 做处理,至于是否能将 SDRAM 配置成功,BootROM 不负责。

如果不使能 DQS 信号的话,SDRAM 最高访问速度应该只有标称值的一半。

0 Kudos
Reply
1,954 Views
jingyangxie
Contributor V

也就是说可能还需要系统运行起来后对SDRAM进行初始化,是吗?如果这样的话,那代码放到SDRAM中运行不就实现不了了吗?因为SDRAM重新初始化的话,SDRAM中的代码又得重新执行了

0 Kudos
Reply
1,951 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
非常感谢使用NXP产品,很高兴为你提供技术支持!
不需要系统起来后对SDRAM再次进行初始化,我觉得你还是DCD没有配置好, 你可以通过MCUXpresso Config Tools工具调整DCD并导出DCD.bin文件。

jeremyzhou_0-1666939758668.png

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,948 Views
jingyangxie
Contributor V

确实是DCD没配置好,实现发下,MCR的DQS寄存器必须打开,即使SDRAM没有DQS信号,只要把这个值置1,即MCR为0x10000004 ,然后根据SDRAM的手册配置时序和大小,就可以了,但只要复位MCR的DQS寄存器,则烧录后无法运行

0 Kudos
Reply