MIMXRT1964 External flash

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

MIMXRT1964 External flash

跳至解决方案
1,262 次查看
danieldc
Contributor I

Hi, I'm Daniel. I am developing an application for RT1064 and I want to use Hyper flash to store the program because the internal flash is not enough for the program.
I can do that? and also can I use the dabugger as if it were the internal flash?

Greetings Daniel

0 项奖励
1 解答
1,193 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @danieldc ,

   You are right, as the chip will boot from internal flash directly, that's why you can't debug the other flexSPI flash directly. But you can boot from the internal flash, then jump to the code in the other flash after you configure the related interface.

 

Best Regards,

Kerry

在原帖中查看解决方案

0 项奖励
8 回复数
1,243 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @danieldc ,

  As you know, the NXP MIMXRT1064-EVK already contains the hyperflash, and the SDK also provide the related code.

Please download the SDK code from this link:

https://mcuxpresso.nxp.com/

Select the RT1064 SDK and download it, then you can find the hyperflash code in this folder:

SDK_2_10_0_EVK-MIMXRT1064\boards\evkmimxrt1064\driver_examples\flexspi\hyper_flash

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

0 项奖励
1,235 次查看
danieldc
Contributor I

Thank you very much for help Kerryzhou.
In flexspi_hyper_flash_polling_transfer it is to read / write data.
What I need is to do XIP from hyperflash, that all the code of the program is in that memory and also it can be debugged as if it were the internal flash.
Is it possible to do that?

Thanks a lot...

Daniel

0 项奖励
1,228 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @danieldc 

   To RT1064, boot must be from the internal QSPI.

   Please check the RT1064RM, Table 9-1. ROM Bootloader Peripheral PinMux (continued), you can find the flexspi boot is just from FLEXSPI2 which is connected to the internal QSPI flash, thanks.

Best Regards,

Kerry

0 项奖励
1,220 次查看
danieldc
Contributor I

Thanks for your help Kerryzhou. I know that the rt1064 boots from internal flash. The question is how to make a jump to hyperflash and that mcuxpresso see it as internal flash? Is there a way to do that or do I need to change the processor?

Thanks Daniel...

0 项奖励
1,217 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @danieldc 

   As you know, the hyperflash address is from 0x60000000, it is not the same as the internal flash from 0x70000000, so you can use the related address to jump.

  About the code jump, you can refer to the SDK bootloader, it has the jump function.

 

Wish it helps you!

Best Regards,

kerry

0 项奖励
1,211 次查看
danieldc
Contributor I

Gracias por su ayuda kerry, esta claro que se puede usar flash externa para el programa cuando este terminado, pero creo que no se puede hacer debugging con mcuxpresso durante el desarrollo en la flash externa, esto es asi?

Saludos..
Daniel

0 项奖励
1,203 次查看
danieldc
Contributor I

Thanks for your help kerry, it is clear that you can use external flash for the program when it is finished, but I think you can not debug with mcuxpresso during development in external flash, is this so?

Greetings..
Daniel

0 项奖励
1,194 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @danieldc ,

   You are right, as the chip will boot from internal flash directly, that's why you can't debug the other flexSPI flash directly. But you can boot from the internal flash, then jump to the code in the other flash after you configure the related interface.

 

Best Regards,

Kerry

0 项奖励