2383570_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2383570_en-US

2383570_en-US

Flashing a build onto a custom IMXRT106x board

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. 

Re: Flashing a build onto a custom IMXRT106x board

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?

Re: Flashing a build onto a custom IMXRT106x board

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

Re: Flashing a build onto a custom IMXRT106x boardIt seems the steps are outlined for different processors on this page https://docs.nxp.com/bundle/MCUXSPTUG_26.03/page/06_processor_specific_workflow.html

The build was fine it was the incorrect usage of the tool that was the problem
Tags (1)
No ratings
Version history
Last update:
Wednesday
Updated by: