Best,
I am running a custom board with an i.MX RT1011 with the USB port connected to my PC. I'am trying to update the firmware using the onboard bootloader.
When jumping to the bootloader, the USB enumeration works and MCUXpresso Secure Provisioning recognizes the board:

When pressing OK the image can be build:

However, when going to the "Write image" tab and pressing the Write image button, it first succeeds loading the flashloader image. However when blhost is used to flash the image, it fails:
### Parse input arguments ###
### Check presence of FlashLoader ###
### Configure FlexSPI NOR memory using options on address 0x2000 ###
blhost -t 5000 -u 0x15A2,0x0073 -j -- fill-memory 0x2000 4 0xC0000007 word
ERROR:spsdk.mboot.interfaces.usb:Cannot read from HID device, error=-1 (435ms since start, usb.py:242)
{
"command": "fill-memory",
"response": [],
"status": {
"description": "10004 (0x2714) No response packet from target device.",
"value": 10004
}
}
blhost failed
and the Windows USB disconnected sound plays.
Now before the application jumps to the bootloader a couple thing happen:
- GPIO pins are initialised
- Clocks are initialised
- I2C is initialised and EEPROM register is read (with a flag whether to jump to the bootloader)
Might that have something to do with this issue? Perhaps the FlexSPI module that is already being initialised?
Thanks for your reply!
Marcel