FRDM-K82F hello_world_qspi from KSDK_2.0 issues flashing .sb file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-K82F hello_world_qspi from KSDK_2.0 issues flashing .sb file

Jump to solution
983 Views
jozefl
Contributor II

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?

0 Kudos
1 Solution
556 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Jozef,

  Because I don't have the prototype version board, then I can't test it.

  My board version is :

  700-28748 REV A

SCH-28748 REV B2

  After you get the new board, if you still have question, please let me know!


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
556 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Jozef,

    I try it on my FRDM-K82F board, it works ok on myside.

  Please check these points:

1. Press and hold the SW2 button (NMI button) while connecting a USB cable between the PC host and the USB port on some boards  on the board.

2. Use my attached .sb file, I just refer to the readme.txt to generate it.

    Take care, put the hello_world_qspi.bd in the same folder with blhost.exe

3. open blhost.exe, and enter : blhost.exe -u -- receive-sb-file hello_world_qspi.sb

63.jpg

After successful download, then connecting a USB cable between the PC host and the OpenSDA USB port, press the reset pin, I can get the "Hello World" string printed to my terminal.

Please follow my step and try again!

Any question, please contact me!


Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
556 Views
jozefl
Contributor II

Hi Jingjing,

Unfortunately using your sb file does not work either, however I think the problem is that I have a prototype version of the board, so the bootloader on the device is probably incompatible with some of the commands being executed.

I'm looking into getting the released version of the board and hopefully that will work.

Thanks,

Jozef

0 Kudos
557 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Jozef,

  Because I don't have the prototype version board, then I can't test it.

  My board version is :

  700-28748 REV A

SCH-28748 REV B2

  After you get the new board, if you still have question, please let me know!


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos