My current development environment is MCUXPRESSO IDE, using the i.MX RT1050. I understand that because the i.MX RT1050 doesn't have internal flash, an algorithm needs to be downloaded when using external flash. However, this downloaded algorithm is dependent on the chosen flash memory. Does the official documentation explain how to obtain the desired downloaded algorithm for quick and easy use?
Hi SDFDSFSF,
We suggest you do it in the following order:
1. Select an external Flash download algorithm in the project properties. NXP provides some mainstream Flash download algorithms.
You can right-click the project -> Properties -> MCU settings -> Memory details and select the NXP-supported flash driver:
The flash driver for MCUXpresso is usually located under nxp\LinkServer_xx.x.xx\binaries\Flash, with the .cfx extension.
2. If the selected Flash memory supports SFDP, try the SFDP driver first.
In MCUXpresso, you can choose a driver like MIMXRT1050_SFDP_QSPI.cfx. The significance of this type of SFDP driver is that it reduces the dependence on specific part number-specific algorithms through flash self-describing parameters.
3. Create your own using a template.
Please refer to the application manual : https://www.nxp.com/docs/en/application-note/AN13386.pdfGenerate a custom CFX file. When modifying it, key parameters should be derived from test results of the external flash datasheet and the flexspi_nor_polling demo in the SDK.
In addition to the download algorithm, XIP/Boot Header configuration is also required. Please refer to Solved: Flash interface initialization - NXP Community.
The above are the basic methods. You can provide more specific details, such as what model of Flash you are using, what specific difficulties you are encountering at this stage, and this will help you better.
Best Regards,
Shelly Zhang
I'm using J-Link, and in MCUXpresso I selected MIMXRT1050_SFDP_QSPI.cfx. Download failed.
How can I create my own J-Link algorithm for the IMXRT1052 in the MCUXpresso IDE?
My Flash file is WINBOD 25Q256JVEQ.
My current MCUXpresso IDE version is MCUXpresso IDE v25.6. SDK_EVBK is version 26.06.00. I don't know which example program can be modified to generate the download algorithm I want.
Dear @SDFDSFSF ,
The reference example is located in the nxp/LinkServer directory, with the project name iMXRT1050_QSPI:
If your pinouts differ from the evaluation board, you will need to modify the pinout configuration. The Flash configuration also needs to be modified according to the datasheet.
Please confirm the following:
1. Check if the Flash hardware pins are configured correctly. The FlexSPI pins must be configured according to the RT1050 hardware development manual :
Only group A or group B can be selected, and FlexSPI_DQS needs to be left floating.
2. Import the evkbimxrt1050_flexspi_nor_polling_transfer example into the SDK, and modify the flash configuration according to the flash datasheet. (This step can be omitted; it's only to verify that the flash configuration is correct.)
3. Modify the correct flash configuration in the iMXRT1050_QSPI project. Please refer to the following for this step. https://www.nxp.com/docs/en/application-note/AN13386.pdf
Best Regards,
Shelly Zhang
Is it okay if I use J-Link in the MCUXpresso IDE? I've seen some people say that the MCUXpresso IDE algorithm can only be used in CMSIS-DAP type emulators?