Recover bricked imxrt1024 board I have one board that is bricked and i also tried to recover the board by performing below steps. 1. Change Boot Mode to Serial Downloader mode. 2. Via UART, Erase the chip and then flash a good bootable image (led_blinky). 3. Change the boot mode again, But the device is not recovered. Using j-link commander i am getting this issue 'loadbin': Performing implicit reset & halt of MCU. ResetTarget() start Core did not halt on flash image verification. Assuming faulty flash settings. Halting target manually. ResetTarget() end - Took 329ms Device specific reset executed. AfterResetTarget() start MPU was enabled and is now disabled. AfterResetTarget() end - Took 2.92ms Downloading file [C:\M7Binaties Prep\Secure Boot extebded implementation\M7SafetBoot+Combined_SignedPackage.bin]... Error while programming flash: Programming failed. Also there is one additional observation ;- 1. Device put on serial downloader mode. 2. Flash the led blinky image. 3. Read back the image in serial mode only 4. I can able to see that the binary is successfully flashed After that i put in Internal Boot Mode 5. Read back using J_Flash but now whole flash region is 0 What to do now , why i am not able to recover it Re: Recover bricked imxrt1024 board Hello @Abhay2080,
In order to support you better, could you please provide the following details?
Are you currently using a custom board or our EVK?
Was the LED blinky example modified before flashing?
Have any fuses been burned on this device previously?
Looking at the J-Link log, it appears you are trying to flash a signed image. Has Secure Boot been enabled on this board before?
Are you currently using the Secure Provisioning Tool to write the image and perform a mass erase?
Could you please test the debugger connection using the Connection With Target Processor feature and let me know your results?
BR Habib Re: Recover bricked imxrt1024 board Hello @Abhay2080, Since HAB is enabled, the image must be signed with the private key and must contain the corresponding public keys within the program image, as mentioned in chapter 9.2 "Overview" of the Reference Manual. If the comparison between the reference hash value and the current hash value calculated from the software in flash does not match, or if the image is not signed at all, authentication will fail and the device will not boot, as mentioned in the chapter 7.3.1 "HAB process flow" of the RM.
Could you please confirm whether you are flashing the LED blinky signed with the correct keys, and let me know the steps you followed to sign this image and how you enabled the HAB? Also, could you clarify if the error started occurring right when you enabled HAB?
BR Habib Re: Recover bricked imxrt1024 board 1. Custom Board. 2. No led blinky is not modified, even i tried with my working project also. 3. Yes device have HAB enabled . SEC_CONFIG and SRK_HASH are fused 4. Yes HAB is enabled. 5. Yes SPT is used. 6. Yes i am able to connect with target Re: Recover bricked imxrt1024 board Hi @Habib_MS I do understand that since HAB is enabled only signed image can boot but the issue here is i am not able to flash any image. Also i have one observation that when i am ersing the flash using SPT even i am selection whole flash region 4MB but in the logs i am getting Detected erasable block size : 0x1000 . Please find the screenshot attached. And moreover i tried flashing signed led blink image also but still board is not recovered Re: Recover bricked imxrt1024 board Hello @Abhay2080,
This Erasable block size Defines the minimal erasable block size. This value is read from FCB if available or from the boot memory configuration for memories that do not use FCB. As mentioned on the Flash Programmer section. SPT erases all sectors across the full memory range, so the entire 4 MB of flash is erased.
To help determine whether the issue is related to the J-Flash programming algorithm, could you please follow the steps mentioned in the Booting authenticated (HAB) image section using the pre-built .s19 file called "mimxrt1024evk_iled_blinky_flash.s19" signed with the correct keys and let me know your results ?
BR Habib Re: Recover bricked imxrt1024 board Hi @Habib_MS , As mentioned by you i tried the iled_blink.s19 signed image and write the image. Below are the steps i did i write the image but still i am not able to flash the binary using J-flash
View full article