Hi Ivo,
I do not know if this issue was resolved. I'm trying MCUxpresso Secure Provisioning tool v6 with MIMXRT685-EVK board. I have selected "Flex SPI NOR/MX25UM51345G" (same configuration as Marek Vitula above) and I do not find any problem. I can program the plain image both using UART and also USB.
### Check connection ###
blhost -t 2000 -p COM38,115200 -j -- get-property 1 0
{
"command": "get-property",
"response": [
1258487808
],
"status": {
"description": "0 (0x0) Success.",
"value": 0
}
}
blhost succeeded
### Erase flash - only if the memory is already configured ###
blhost -t 50252 -p COM38,115200 -j -- flash-erase-region 0x08000000 25296 9
WARNING:spsdk.mboot.mcuboot:Note: memoryId is not required when accessing mapped external memory (301ms since start, mcuboot.py:1414)
{
"command": "flash-erase-region",
"response": [],
"status": {
"description": "10205 (0x27dd) Memory Not Configured.",
"value": 10205
}
}
blhost failed
### Configure FlexSPI NOR memory using options on address 0x0010C000 ###
blhost -t 5000 -p COM38,115200 -j -- fill-memory 0x0010C000 4 0xC1503057 word
{
"command": "fill-memory",
"response": [],
"status": {
"description": "0 (0x0) Success.",
"value": 0
}
}
blhost succeeded
blhost -t 5000 -p COM38,115200 -j -- fill-memory 0x0010C004 4 0x20000000 word
{
"command": "fill-memory",
"response": [],
"status": {
"description": "0 (0x0) Success.",
"value": 0
}
}
blhost succeeded
blhost -t 5000 -p COM38,115200 -j -- configure-memory 9 0x0010C000
{
"command": "configure-memory",
"response": [],
"status": {
"description": "0 (0x0) Success.",
"value": 0
}
}
blhost succeeded
### Erase flash ###
blhost -t 50252 -p COM38,115200 -j -- flash-erase-region 0x08000000 25296 9
WARNING:spsdk.mboot.mcuboot:Note: memoryId is not required when accessing mapped external memory (337ms since start, mcuboot.py:1414)
{
"command": "flash-erase-region",
"response": [],
"status": {
"description": "0 (0x0) Success.",
"value": 0
}
}
blhost succeeded
### Configure target memory ###
blhost -t 5000 -p COM38,115200 -j -- fill-memory 0x10c000 4 0xF000000F
{
"command": "fill-memory",
"response": [],
"status": {
"description": "0 (0x0) Success.",
"value": 0
}
}
blhost succeeded
blhost -t 5000 -p COM38,115200 -j -- configure-memory 0x9 0x10c000
{
"command": "configure-memory",
"response": [],
"status": {
"description": "0 (0x0) Success.",
"value": 0
}
}
blhost succeeded
There might be problem to configure the memory twice, try to reset the board before each programming cycle.
Note: MCUxpresso Secure Provisioning tool internally uses SPSDK applications (blhost) to communicate with the processor.
Regards,
Marek
NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button