AnsweredAssumed Answered

blhost and OpenSDA serial port on RT1020-EVK eval board

Question asked by rshipman on Dec 23, 2019
Latest reply on Dec 23, 2019 by Kerry Zhou

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.

Outcomes