Hello,
I've working on custom hardware with iMX RT1173. The MCU is booting from QSPI NOR Flash connected to FlexSPI2 (2nd Pin Group), which lead into some trouble with given tools.
The on-Boad Debugger from i.MX RT1170 EVK is not capable to work with Flash connected to FlexSPI2. Segger JLink is also not capable. Even with MCU Boot Utility I'm not able to access Flash. I'm using Lauterbach uTrace which can access Flash, so I'm able to debug and write Image to flash.
I've done a little test project which is running fine if I use 'Run from RAM' configuration. But when I try to generate bin or srec file to write into flash the MCU will still boot in 'Serial Download Mode'. Bootconfig is set to 'Boot from Fuses' and fuses FLEXSPI_INSTANCE, FLEXSPI_PIN_GROUP_SEL and BT_FUSE_SEL are configured correct.
I think in the generated files the QSPI Header information is missing so MCU internal bootloader will fail in 'Load and Authenticate' step. In MCUXpresso I've set XIP_EXTERNAL_FLASH=1 and XIP_BOOT_HEADER_ENABLE=1 but according map file the qspiflash_config is not linked into binary.
Can someone give me a hint how I can generate complete flash image to use with external tools like Lauterbach?
Best Regards