Difference between revisions of "i.MXRT1050"

From SEGGER Wiki
Jump to: navigation, search
(QSPI flash)
(QSPI Flash)
Line 49: Line 49:
 
#Open the project in Embedded Studio
 
#Open the project in Embedded Studio
 
#Done!
 
#Done!
'''NOTE:''' Please note that several hardware modifications needs to be done on the evaluation board to enable QSPI programming / booting from QSPI. For further information regarding this, please refer to NXPs board user manual.
+
'''NOTE:''' Please note that several hardware modifications needs to be done on the evaluation board to enable QSPI programming / booting from QSPI. For further information regarding this, please refer to NXPs board user manual.<br>
  +
'''NOTE:''' The QSPI example application contains a FlexSPI boot header, which makes sure that the QE bit in the status register is set.

Revision as of 11:50, 5 November 2020

This article covers the NXP i.MXRT1050 family devices. As for all i.MXRT10xx devices, JTAG is not active per default. Instead SWD can be used. To activate JTAG on this target device eFuses must be set. For more information see the corresponding target reference manual.

Flash Programming

NXP's iMXRT105x family features a Cortex-M7 core without internal flash but with support for QSPI and HyperFlash through a so called FLEXSPI controller. NXP's official evaluation board, the MIMXRT1050 EVK is shipped with a 512Mbit Hyper Flash device by default. Alternatively, a QSPI flash can be mounted but several board modifications (removing the hyper flash, adding resistors, etc...) are required. As both flashes are accessed through the same memory mapped address space, either the HyperFlash or the QSPI flash RAMCode needs to be used for memory accesses to this area. Please find below further information how to enable the desired flash algorithm (RAMCode). Official flash programming support has been added in J-Link software version V6.31d.

Minimum requirements

  • Min. J-Link software version V6.31d (beta) or V6.32 (release) is required. Later versions will also work. Earlier versions do not support flash programming on this device.

Enable Flashloader

Hyper Flash

By default, the Hyper Flash algorithm is selected in the J-Link software. No additional steps are required.

QSPI flash

To enable the QSPI flash support in the J-Link software, the JLinkDevices.xml needs to be modified. For further information regarding the JLinkDevices.xml, please refer to the Open Flashloader chapter in the J-Link User Manual (UM08001).

  1. Open the JLinkDevices.xml (e.g. C:\Program Files (x86)\SEGGER\JLink_V631d\JLinkDevices.xml)
  2. Search the desired iMXRT <Device> entry
  3. Remove the entry for your device for example this one:
<Device>
   <ChipInfo Vendor="NXP" Name="MIMXRT1051xxxxA" WorkRAMAddr="0x20000000" WorkRAMSize="0x00080000" Core="JLINK_CORE_CORTEX_M7" Aliases="MIMXRT1051xxx5A; MIMXRT1051CVL5A; MIMXRT1051xxx6A; MIMXRT1051DVL6A" />
   <FlashBankInfo Name="HyperFlash" BaseAddr="0x60000000" MaxSize="0x04000000" Loader="Devices/NXP/iMXRT105x/NXP_iMXRT105x_HyperFlash.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
 </Device>
  1. Save the JLinkDevices.xml

From now, the J-Link software uses the QSPI RAMCode instead of the HyperFlash RAMCode for the flash download.

NOTE: Please note that several hardware modifications needs to be done on the evaluation board to enable QSPI programming / booting from QSPI. For further information regarding this, please refer to NXPs board user manual.

Examples

The example projects below can be used to evaluate Hyper Flash and QSPI Flash programming support with J-Link using a simple blinky project. The projects include the boot header, required for booting the application without an external debugger attached to it. Please find below an overview of the setup:

  • SEGGER Embedded Studio for ARM 3.35
  • NXP MIMXRT1050-EVK (Hyper Flash configuration for Hyper Flash example and QSPI Flash configuration for QSPI Flash example)
  • J-Link software version V6.31d or higher

Hyper Flash

  1. Make sure that SEGGER Embedded Studio for ARM 3.35 is installed
  2. Install at least J-Link software version V6.31d and update the J-Link DLL used by Embedded Studio at the end of the setup process (using the J-Link DLL Updater)
  3. Download the project File:NXP MIMXRT1050-EVK HyperFlash EmbeddedStudio.zip
  4. Open the project in Embedded Studio
  5. Done!

QSPI Flash

  1. Make sure that SEGGER Embedded Studio for ARM 3.35 is installed
  2. Install at least J-Link software version V6.31d and update the J-Link DLL used by Embedded Studio at the end of the setup process (using the J-Link DLL Updater)
  3. Enable the QSPI flashloader in the used J-Link software package by following the Enable Flashloader --> QSPI Flash article above
  4. Download the project File:NXP MIMXRT1050-EVK QSPI EmbeddedStudio.zip
  5. Open the project in Embedded Studio
  6. Done!

NOTE: Please note that several hardware modifications needs to be done on the evaluation board to enable QSPI programming / booting from QSPI. For further information regarding this, please refer to NXPs board user manual.
NOTE: The QSPI example application contains a FlexSPI boot header, which makes sure that the QE bit in the status register is set.