Hi Ranran
>> flexSPI configuration paramaters to image header ? Which command adds these
>parameters to image ? If not - where is it added to image header ?
for "flexSPI configuration paramaters", Reference Manual calls it as "FlexSPI Configuration Block"
one can look at sect.8.6.1 Serial NOR Flash Boot via FlexSPI, sect.8.6.3.1 FlexSPI Configuration Block
sect.8.6.1.2 FlexSPI Serial NOR Flash Boot Operation i.MX RT1050 Processor Reference Manual:
"The ROM expects the 512-byte FlexSPI NOR configuration parameters as explained in
next section to be present at offset 0 in Serial NOR flash. The ROM reads these
configuration parameters using the read command specified by BOOT_CFG2[2:0] with
Serial clock operating at 30 MHz.
In the second step, ROM configures FlexSPI1 interface with the parameters provided in
configuration block read from Serial NOR flash and starts the boot procedure. Refer to
Table 8-17 for details regarding FlexSPI configuration parameters and to the FlexSPI
NOR boot flow chart for detailed boot flow chart of FlexSPI NOR."
https://www.nxp.com/docs/en/reference-manual/IMXRT1050RM.pdf
BD file is described in attached i.MX MCU Manufacturing User’s Guide (Chapter 4.1-2).
"MCU Bootloader v2.5.0 Reference"
https://www.nxp.com/docs/en/reference-manual/MCUBOOTRM.pdf
if you are asking about MCUXpresso, configuration is performed by
structure flexspi_device_config_t deviceconfig[] in ..driver_examples/flexspi/hyper_flash/polling_transfer/flexspi_hyper_flash_polling_transfer.c
Welcome | MCUXpresso SDK Builder
For understanding AN12107 may be useful to check sect.8.2.2.1 Typical use cases for FlexSPI NOR Configuration Block
attached MCUX Flashloader Reference Manual included in FlashLoader and
FlashLoader sources (*windows-all-MIMXRT1052xxxxB.zip)
structure flexspi_nor_config_t hyperflash_config[] in
../devices/MIMXRT1052/xip/evkbimxrt1050_hyper_config.c
https://mcuxpresso.nxp.com/en/license?hash=ad7870cf2d88e6a1da7ee9bb13881321&hash_download=1
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------