RT1170 Evalboard copy to SDRAM and start

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RT1170 Evalboard copy to SDRAM and start

跳至解决方案
2,032 次查看
pete2001
Contributor I

Hello,

we are evaluating the MIMXRT1170 EVK Board. The planned product should copy program and data from QSPI Flash into the extern SDRAM, and start from there. My questions:

a) Are there any KSDK examples, that demonstrates this? Can create the correct start headers and vectors at the begin of the QSPI flash, and the internal bootrom will copy a memory region to ext SDRAM and start there? Or supports the bootrom only XIP?

b) It looks like, that AN12238 ("i.MX RT Flashloader Use Case") for the RT1050 describes a similar scenario to copy the code into RAM and execute there.

I found the following: "NOTE: While RT does support booting to SDRAM using these steps, we recommend using XIP from serial NOR on the FlexSPI interface when possible. The FlexSPI controller is connected to a 64 bit internal bus, but the SEMC which is the SDRAM controller on RT uses a 32 bit bus. So XIP from FlexSPI will usually provide better performance than booting code to SDRAM."

When comparing QSPI Flash (4-bit, 133Mhz) on the RT1170 Evalboard  and the ext SDRAM (16-bit, 200Mhz) the SDRAM should be much faster. Am I correct?

Best Regards,

Peter

标记 (1)
0 项奖励
回复
1 解答
1,986 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
a) what "below figure" do you mean in your reply?
-- Sorry, I forgot to attach the below figure.

jeremyzhou_0-1620352289393.png


b) Are there really no ready KSDK examples, that include the correct linker settings, and produce a binary, that the Boot-ROM copies into the EVK SDRAM and executes there? I hoped, that there would be at least an example.
-- No, it's impossible to generate a NON-XIP boot image via configuring the linker setting, and I'd like to refer to the thread to generate a suitable boot image.
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 项奖励
回复
5 回复数
546 次查看
VineeshM
Contributor II

Hello, Do we have a solution for this thread? I mean - "copy program and data from QSPI Flash into the extern SDRAM, and start from there"

0 项奖励
回复
48 次查看
kennethkong852
Contributor I

I am also facing this challenge right now that I have spent most of my time for past week or two researching methods to do this on my i.MX RT1062 setup.

Per my understanding the suggested method of using MCUBootUtility is probably the only way to achieve this. But it may not be feasible to do that outside of the EVK, i.e. on custom boards. 

Is there perhaps any hex file that will give the proper contents for such IVT and Boot Data that would be suitable for allowing the application to be executed in RAM?  Assuming there is one, what we can do then is simply combining the application code after it to form an image to load in flash?

0 项奖励
回复
1,995 次查看
pete2001
Contributor I

Hello,
a) what "below figure" do you mean in your reply?
b) Are there really no ready KSDK examples, that include the correct linker settings, and produce a binary, that the Boot-ROM copies into the EVK SDRAM and executes there? I hoped, that there would be at least an example.

Best Regards,
Peter

0 项奖励
回复
1,987 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
a) what "below figure" do you mean in your reply?
-- Sorry, I forgot to attach the below figure.

jeremyzhou_0-1620352289393.png


b) Are there really no ready KSDK examples, that include the correct linker settings, and produce a binary, that the Boot-ROM copies into the EVK SDRAM and executes there? I hoped, that there would be at least an example.
-- No, it's impossible to generate a NON-XIP boot image via configuring the linker setting, and I'd like to refer to the thread to generate a suitable boot image.
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 项奖励
回复
2,019 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
a) Are there any KSDK examples, that demonstrates this? Can create the correct start headers and vectors at the begin of the QSPI flash, and the internal bootrom will copy a memory region to ext SDRAM and start there? Or supports the bootrom only XIP?
-- According to your proposal, the NON-XIP boot mode is suited to your application and the below figure shows the workflow of the NON-XIP boot.
b) When comparing QSPI Flash (4-bit, 133Mhz) on the RT1170 Evalboard and the ext SDRAM (16-bit, 200Mhz) the SDRAM should be much faster. Am I correct?
-- Yes, you're right.

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 项奖励
回复