iMXRT1064 - Programming new chips

cancel
Showing results for 
Search instead for 
Did you mean: 

iMXRT1064 - Programming new chips

118 Views
BadMisterFrosty
Contributor I

We just had some boards built and I am trying to load some software onto them. I set the BOOTMODE pins to 0,1 and then connect the UART to a USB Serial adapter. I then run the MCU Boot Utility (2.2.0). When it runs, it starts and appears to interrogate the chip (light goes from grey to yellow, to green, then finally to red) and it errors out with

"MCU has entered Flashloader but failed to configure external memory. Please reset board and set proper boot device and then try again."
 

In the Device Status it seems to indicate that it is seeing the Boot Mode pins correctly (set for serial download).

--------MCU device Register----------
OCOTP->UUID[31:00] = 0x677ef5b8
OCOTP->UUID[63:32] = 0x172881d2
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
HAB status = Open
--------MCU device eFusemap--------
(0x450) BOOT_CFG0 = 0x0
(0x460) BOOT_CFG1 = 0x8
(0x470) BOOT_CFG2 = 0x0
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), It means there is no application in boot device, MCU will enter serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), It means MCU will boot application according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = 0x200003
FlexRAM configuration is from eFuse
OCOTP->MISC_CONF0[31:00] = 0x40
FlexRAM Partion =0000 - 128KB ITCM, 128KB DTCM, 256KB OCRAM

MCU Boot Utility Log

'Connect to xxx' button is clicked
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- error-status
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- read-register 1075790864 32 4 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\vectors\readReg.dat
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- read-register 1075790880 32 4 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\vectors\readReg.dat
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- read-register 1074757636 32 4 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\vectors\readReg.dat
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- read-register 1074757660 32 4 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\vectors\readReg.dat
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- read-register 1074757660 32 4 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\vectors\readReg.dat
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- write-file 539001344 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\src\targets\MIMXRT1064\ivt_flashloader.bin
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\sdphost\win\sdphost -t 50000 -p COM22,115200 -j -- jump-address 539001344
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 50000 -p COM22,115200 -j -- get-property 1 0
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 50000 -p COM22,115200 -j -- efuse-read-once 5
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 50000 -p COM22,115200 -j -- efuse-read-once 6
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 50000 -p COM22,115200 -j -- efuse-read-once 7
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 50000 -p COM22,115200 -j -- efuse-read-once 6
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 5242000 -p COM22,115200 -j -- read-memory 1074446400 4 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\vectors\readReg.dat 0
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 5242000 -p COM22,115200 -j -- read-memory 1075791568 4 D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\vectors\readReg.dat 0
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 5242000 -p COM22,115200 -j -- fill-memory 538976256 4 3221225479 word
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 5242000 -p COM22,115200 -j -- fill-memory 538976260 4 0 word
Executing D:\Data.local\IAR-arm\NXP-Tools\NXP-MCUBootUtility-2.2.0\tools\blhost2_3\win\blhost -t 50000 -p COM22,115200 -j -- configure-memory 9 538976256

Labels (1)
0 Kudos
1 Reply

106 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello BadMisterFrosty,

I would recommend using the latest release of the tool if that’s possible. You may find the releases and the step by step usage of the tool on the following repository (which you probably already have). There is an improvement on v2.3.0 for a bug regarding the flash so this could be the culprit.

https://github.com/JayHeng/NXP-MCUBootUtility

Other than that please make sure that the settings are correct for your board in accordance with the tool documentation, like for example the port setup and memory configuration (the advantage of using the i.MXRT1064 is that the memory is fixed so the available settings should support it). And also make sure that the board is correctly powered, but I would start with using the latest version of the tool.

I hope that this helps!

Regards,
Gustavo

0 Kudos