Hi Diego,
here is the log when we try to connect via USB:
### RESULT of the script `Initialize external memory`: FAILURE (return code = [2]ERROR)
Status of the operation: FAILURE: Initialize external memory
Executing script C:\Users\pfaender\secure_provisioning00000000000000000\ext_memory_setup.bat
ERROR: Script failed with return code: [2]ERROR
### SCRIPT: Initialize external memory: C:\Users\pfaender\secure_provisioning00000000000000000\ext_memory_setup.bat
### Check presence of FlashLoader ###
FlashLoader is not running yet, download and run it
### Change speed of communication if uart is used at non-default speed ###
=115200% -j -- error-status was unexpected at this time.
=115200% set-baudrate was unexpected at this time.
sdphost -u 0x1FC9,0x0135 -j -- error-status
ERROR:SPSDK: Cannot find USB device '0x1fc9:0x0135'
sdphost failed
sdphost -u 0x1FC9,0x0135 -j -- error-status
ERROR:SPSDK: Cannot find USB device '0x1fc9:0x0135'
sdphost failed
and here is the log when we try to connect via USB after erasing of all memory:
### RESULT of the script `Initialize external memory`: FAILURE (return code = [2]ERROR)
Status of the operation: FAILURE: Initialize external memory
Executing script C:\Users\pfaender\secure_provisioning00000000000000000\ext_memory_setup.bat
ERROR: Script failed with return code: [2]ERROR
### SCRIPT: Initialize external memory: C:\Users\pfaender\secure_provisioning00000000000000000\ext_memory_setup.bat
### Check presence of FlashLoader ###
FlashLoader is not running yet, download and run it
### Change speed of communication if uart is used at non-default speed ###
=115200% -j -- error-status was unexpected at this time.
=115200% set-baudrate was unexpected at this time.
sdphost -u 0x1FC9,0x0135 -j -- error-status
{
"command": "error-status",
"response": [
858993459
],
"status": {
"description": "1450735702 (0x56787856) Hab Is Disabled (Unlocked)",
"value": 1450735702
}
}
sdphost succeeded, HAB disabled
### Check communication with target bootloader ###
sdphost -u 0x1FC9,0x0135 -j -- error-status
{
"command": "error-status",
"response": [
858993459
],
"status": {
"description": "1450735702 (0x56787856) Hab Is Disabled (Unlocked)",
"value": 1450735702
}
}
sdphost succeeded, HAB disabled
### Build flashloader as unsigned bootable image ###
elftosb -f imx -V -c "C:\Users\pfaender\secure_provisioning00000000000000000\bd_files\unsigned_MIMXRT1064_flashloader_win.bd" -o "C:\Users\pfaender\secure_provisioning00000000000000000\bootable_images\unsigned_MIMXRT1064_flashloader.bin" "C:\nxp\MCUX_Provi_v7\bin\data\targets\MIMXRT1064\flashloader.srec"
Section: 0x0
iMX bootable image generated successfully
elftosb succeeded
### Write FlashLoader ###
sdphost -u 0x1FC9,0x0135 -j -- write-file 0x20001C00 "C:\Users\pfaender\secure_provisioning00000000000000000\bootable_images\unsigned_MIMXRT1064_flashloader.bin"
Status (HAB mode) = 1450735702 (0x56787856) Hab Is Disabled (Unlocked).
Response status = 2290649224 (0x88888888) Write File Success.
sdphost succeeded, HAB disabled
### Start FlashLoader ###
sdphost -u 0x1FC9,0x0135 -j -- jump-address 0x20001C00
Status (HAB mode) = 1450735702 (0x56787856) Hab Is Disabled (Unlocked).
sdphost succeeded, HAB disabled
### Waiting FlashLoader to be initialized for 3 seconds ###
### Timeout wait value can be adjusted from Preferences ###
### Check presence of FlashLoader ###
blhost -t 2000 -u 0x15A2,0x0073 -j -- get-property 1 0
ERROR:SPSDK: Cannot find USB device '0x15a2:0x0073'
blhost failed
Thanks and Regards
Mike