I am trying to write a generated bootable image to flash, but it fails with an error during the flash erase action. I tried changing the wrapper script to blhost to add a timeout, but it still eventually failed.
Here is the debug output:
### Check presence of flashloader ###
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac /Applications/MCUX_Provi_v1
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac/blhost -u 0x15A2,0x0073 -j -- get-property 1 0
/Applications/MCUX_Provi_v1
{
"command" : "get-property",
"response" : [ 1258424064 ],
"status" : {
"description" : "0 (0x0) Success.",
"value" : 0
}
}
blhost succeeded
### Check presence of flashloader ###
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac /Applications/MCUX_Provi_v1
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac/blhost -u 0x15A2,0x0073 -j -- get-property 1 0
/Applications/MCUX_Provi_v1
{
"command" : "get-property",
"response" : [ 1258424064 ],
"status" : {
"description" : "0 (0x0) Success.",
"value" : 0
}
}
blhost succeeded
### Configure flex-spi-nor using options on address 0x2000 ###
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac /Applications/MCUX_Provi_v1
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac/blhost -u 0x15A2,0x0073 -j -- fill-memory 0x2000 4 0xC0803007 word
/Applications/MCUX_Provi_v1
{
"command" : "fill-memory",
"response" : [],
"status" : {
"description" : "0 (0x0) Success.",
"value" : 0
}
}
blhost succeeded
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac /Applications/MCUX_Provi_v1
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac/blhost -u 0x15A2,0x0073 -j -- fill-memory 0x2004 4 0x00000000 word
/Applications/MCUX_Provi_v1
{
"command" : "fill-memory",
"response" : [],
"status" : {
"description" : "0 (0x0) Success.",
"value" : 0
}
}
blhost succeeded
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac /Applications/MCUX_Provi_v1
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac/blhost -u 0x15A2,0x0073 -j -- configure-memory 9 0x2000
/Applications/MCUX_Provi_v1
{
"command" : "configure-memory",
"response" : [],
"status" : {
"description" : "0 (0x0) Success.",
"value" : 0
}
}
blhost succeeded
### Erase memory before writing image ###
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac /Applications/MCUX_Provi_v1
/Applications/MCUX_Provi_v1/MCUXpresso Secure Provisioning Tools v1.app/Contents/MacOS/tools/blhost/mac/blhost -u 0x15A2,0x0073 -j -- flash-erase-region 0x60000000 774416 9
/Applications/MCUX_Provi_v1
{
"command" : "flash-erase-region",
"response" : [],
"status" : {
"description" : "10004 (0x2714) No response packet from target device.",
"value" : 10004
}
}
blhost failed!