I designed and built a custom board utilizing the IMXRT1062 and have configured the device in zephyr and compiled the blinky program. From here how do I go about flashing this program onto the device over USB. I've tried the Secure Provision Tool, however the LED program doesn't seem to work. Is there I could view the flash setup and customize the configurations for the board? Any help would be appreciated.
I've switched over to MCUXpresso to perform the initial programming. Is there a guide on how to build a file in MCUXpresso and use it to flash with the MCU Secure Provision Tool. As I'm only able to upload images to the device over USB. Additionally where can I find documentation about configuring a custom SPI Flash chip in MCUXpresso?
Hi @rocketcherry ,
Thanks for your interest in NXP MIMXRT series!
The MCUXpresso Secure Provisioning Tool uses the device ROM serial downloader path over USB-HID/UART. It can program the external boot device, but the programmed image still needs to be a valid bootable i.MX RT image for your custom hardware. For an RT1062 booting from external QSPI/FlexSPI NOR, the boot header / Flash Configuration Block must match your actual flash device, FlexSPI pins, bus width, frequency, dummy cycles and flash size. If the board was cloned from the MIMXRT1060-EVK Zephyr board files, please do not assume the EVK flash configuration is valid for your custom board.
We would suggest first validating the board port with a simple serial hello_world application using a debug probe, because a blinky failure can also be caused by an incorrect LED GPIO in the devicetree. Then check the generated build/zephyr/zephyr.dts, .config, and zephyr.map to confirm that the flash node, code partition, RAM region, console UART, and LED GPIO match your board.
Secure Provisioning Tool can program the device over USB-HID, but if the LED application does not run after reset, the first things to verify are the custom Zephyr board port, the FlexSPI NOR boot header/FCB, boot mode settings, RAM/SDRAM configuration, and LED GPIO mapping.
Best regards,
Gavin