Help with downloading new firmware on MIMXRT1064-EVK dev board

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

Help with downloading new firmware on MIMXRT1064-EVK dev board

Jump to solution
1,159 Views
clovett
Contributor II

I have been using MCUXpresso IDE for the last few weeks with no problem to flash various SDK samples onto my MIMXRT1064-EVK dev board and everything is working great until today, suddenly MCUXpresso  is not finding my device, even though it shows up in Windows Device Manager as port COM7.  

So I looked at the instructions here and downloaded the MCUBootUtility and it is finding the board and while it says it successfully sent the "reset" command the memory is not showing up, and when I reconnect to the device or try and read any memory using the "Boot Device Memory" tab I get this error.  Is my devkit dead or what?

Executing: C:\nxp\NXP-MCUBootUtility-master\NXP-MCUBootUtility-master\tools\blhost2_3\win\blhost -t 2048000 -u 0x15A2,0x0073 -j -- flash-erase-region 1610612736 1024 9
toolStatus: 0
commandOutput: {
"command" : "flash-erase-region",
"response" : [],
"status" : {
"description" : "10200 (0x27D8) kStatusMemoryRangeInvalid",
"value" : 10200
}
}

Here's the full log from the MCU Boot Utility:

-------MCU device Register----------
OCOTP->UUID[31:00] = 0x677ef5b6
OCOTP->UUID[63:32] = 0x1a2589d2
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
HAB status = Open
--------MCU Flashloader info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------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
--------FlexSPI NOR memory--------
--------MCU device Register----------
OCOTP->UUID[31:00] = 0x677ef5b6
OCOTP->UUID[63:32] = 0x1a2589d2
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
HAB status = Open
--------MCU Flashloader info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------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
--------FlexSPI NOR memory--------
--------MCU device Register----------
OCOTP->UUID[31:00] = 0x677ef5b6
OCOTP->UUID[63:32] = 0x1a2589d2
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
HAB status = Open
--------MCU Flashloader info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------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
--------FlexSPI NOR memory--------
--------MCU device Register----------
OCOTP->UUID[31:00] = 0x677ef5b6
OCOTP->UUID[63:32] = 0x1a2589d2
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
HAB status = Open
--------MCU Flashloader info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------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
--------FlexSPI NOR memory--------
0 Kudos
Reply
1 Solution
1,143 Views
clovett
Contributor II

Never mind I figured out how to reset the first page of the flash memory starting at 0x70000000, so the device is discoverable again by MCUXpresso and I'm back in business...

View solution in original post

0 Kudos
Reply
1 Reply
1,144 Views
clovett
Contributor II

Never mind I figured out how to reset the first page of the flash memory starting at 0x70000000, so the device is discoverable again by MCUXpresso and I'm back in business...

0 Kudos
Reply