I've followed the readme from the hello_world_qspi example project to a tee but I'm having issues flashing the sb file to the device.
When running this command: "blhost.exe -u -- receive-sb-file hello_world_qspi.sb", I got the following error:
Inject command 'receive-sb-file'
Preparing to send 19584 (0x4c80) bytes to the target.
Successful generic response to command 'receive-sb-file'
usb hid detected receiver data abort
Data phase write aborted by status 0x2712 kStatus_AbortDataPhase
Response status = 10107 (0x277b) kStatusRomLdrUnknownCommand
Wrote 704 of 19584 bytes.
I then tried commenting out lines in the .bd file and found that the command causing issues is "enable qspi 0x20000000". If I comment this out then blhost gets a bit further but then says that QuadSPI is not enabled.
I then tried converting all the commands in the .bd file to individual blhost invocations, which are the following commands:
blhost.exe -u -- flash-erase-all-unsecure
blhost.exe -u -- write-memory 0x20000000 qspi_config_block.bin
blhost.exe -u -- configure-quadspi 1 0x20000000
blhost.exe -u -- flash-erase-region 0x68000000 0x8000
blhost.exe -u -- write-memory 0x68000000 qspi_config_block.bin
The last command gives the following error:
Inject command 'write-memory'
Preparing to send 512 (0x200) bytes to the target.
Successful generic response to command 'write-memory'
WaitForSingleObject failed with error 997: Overlapped I/O operation is in progress.
Data phase write aborted by status 0x1 Failure.
Response status = 10004 (0x2714) No response packet from target device.
Wrote 256 of 512 bytes.
Any advice on how to get this example working?