blhost and OpenSDA serial port on RT1020-EVK eval board

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

blhost and OpenSDA serial port on RT1020-EVK eval board

1,009 Views
rshipman
Contributor V

Hi,

How do I use blhost and the UART on the RT1020-EVK eval board please?

I want to try using blhost with the UART instead of MfgTool with USB.

When connected to the debug USB port my PC assigns this to COM4.

I have tried this:
../Flashloader_RT1020_1.0_GA/Tools/blhost/win/blhost.exe -V -p COM4 -- get-property 1
Error: Initial ping failure: No response received for ping command.


I have tried this:
../Flashloader_RT1020_1.0_GA/Tools/blhost/win/blhost.exe -n -V -p COM4 -- get-property 1
Inject command 'get-property'
Error: read_start_byte() timeout after 5.104 seconds
sendCommandGetResponse.writePacket error 5.
processResponse: null packet
- took 5.108 seconds
Response status = 10004 (0x2714) No response packet from target device.

I have tried this:
../Flashloader_RT1020_1.0_GA/Tools/blhost/win/blhost.exe -V -p COM4,115200 -- get-property 1
Error: Initial ping failure: No response received for ping command.

I have tried holding down button SW5 on eval board, and powering on. COM4 seems to dissappear.
../Flashloader_RT1020_1.0_GA/Tools/blhost/win/blhost.exe -V -p COM4,115200 -- get-property 1
Error: UartPeripheral() cannot open PC UART port(COM4), speed(115200 Hz).

I have tried this, also after SW5 held down etc:
../Flashloader_RT1020_1.0_GA/Tools/blhost/win/blhost.exe -V -p COM4 -- get-property 1
Error: UartPeripheral() cannot open PC UART port(COM4), speed(57600 Hz).

I used SW5 button because of:

Document: MIMXRT1020 EVK Board Hardware User’s Guide, User's Guide, Rev. 0, 05/2018
Section: 2.10. OpenSDA circuit (DAP-Link)
Page: 10
Line:
"If developer wants to make OpenSDA going to the bootloader mode, and press SW5 when power on."

What am I doing wrong please?

I am assuming that it is trying to communicate to the ROM boot loader.

If not how do I get the flashloader.bin loaded if blhost won't even ping?

The target board won't have a USB port so I want to experiment with the UART connection. I thought I could do this via the OpenSDA debug usb connection.

Many thanks.

Labels (1)
0 Kudos
2 Replies

867 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi rshipman ,

   Do you want to download the code to the MIMXRT102-EVK QSPI flash?

   If yes, I highly suggest you use the MCUBootUtility tool to download it.

    If you want to know the detail blhost, sdphost operation, you also can check the MCUBootUtility command process about it:

pastedImage_1.png

pastedImage_2.png

You  can download the MCUbootutility tool from this link:

https://github.com/JayHeng/NXP-MCUBootUtility/archive/v2.2.0.zip

the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

If you still have questions about it, please kindly let me know.

Wish it helps you!

Have a great day,
Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

867 Views
rshipman
Contributor V

I have to use sdphost first, right?

0 Kudos