RT1060: Serial Downloader mode + max code size

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

RT1060: Serial Downloader mode + max code size

629 Views
timmek
Contributor I

My question is related to:MIMXRT1062CVJ5B

  • RAM size: 1024kB
  • BOOT ROM size: 128 kB
  • external NOR Flash 8MB (FlexSPI).

I would like to load my program using MCU Boot Utility software.
What is the maxium size of my code to be loaded using XIP and without using XIP?

Is it posiible to turn off/on XIP? Or XIP is always enabled when NOR Flash via FlexSPI is being used?

Thank you.

0 Kudos
3 Replies

574 Views
mjbcswitzerland
Specialist V

Hi


>>What is the maxium size of my code to be loaded using XIP and without using XIP?

XiP has nothing to do with loading code to QSPI flash. The maximum size that can be loaded is the maximum QSPI flash size.

See Appendix A of https://www.utasker.com/docs/iMX/uTasker_iMX-RT-Programmer.pdf for practical overview of the details.

XiP is the ability to run code from QSPI flash, whereby FlexSPI reads in a block of memory (as need arises due to it not being in its cache) and then it executes, "as if" it were executing from the QSPI address (but with stalls to load).

Regards

Mark


For i.MX and Kinetis stock availability see https://www.utasker.com/Shop/semi.html

0 Kudos

500 Views
timmek
Contributor I

@mjbcswitzerland 
>>The maximum size that can be loaded is the maximum QSPI flash size.

Thank you. It is clear.

 

And what about XIP? Can I turn off /on this ability? Or is it mandatory enabled when using NOR Flash memory?

0 Kudos

495 Views
mjbcswitzerland
Specialist V

Hi

As noted previously XiP has nothing to do with QSPI programming.

However when using QSPI flash to boot from XiP is always used by the processor to run the initial code.

If you want to run code directly from QSPI flash you have to use it, but it doesn't need to be turned on or off - it is a capability of the FlexSPI bus and is used automatically when the processor has to execute code directly from the QSPI addresses. If you copy code from the QSPI flash to another memory area and don't need to access the QSPI flash any more you can disable the FlexSPI, but that would be very rare since the QSPI flash is often used for other functions too (data logging, file system).

Therefore
>>And what about XIP? Can I turn off /on this ability?
Inherent in FlexSPI, which can be disabled, but simply not executing code from QSPI flash also means XiP is not used (so no need to disable anything)
>>Or is it mandatory enabled when using NOR Flash memory?
FlexSPi must be configured and enabled for any accesses to be possible but can be disabled if QSPI flash access is no longer required after loading code.
XiP can't be disabled but is not used as long as code is not executed form the QSPI flash so no need to disable it anyway.

Regards

Mark

 

0 Kudos