Using UART for downloading the image on RT1060 board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using UART for downloading the image on RT1060 board

3,005 次查看
guenter_loettrich
NXP Employee
NXP Employee

Dear all,

I'm trying to use the UART via the mbed serial port on the RT1060EVK (in my case COM21) for downloading a firmware image to external XiP Flash.

pastedImage_1.png

I'm in serial boot mode by setting of SW7 to 0-0-0-1

The image is an unsigned one from SDK 2.7.1 "iled blinky".

When trying to write the image to external Flash via UART then the following error message occurs:

### Check presence of flashloader ###
blhost -p COM21,115200 -j -- get-property 1 0
{
"command" : "ping",
"response" : [],
"status" : {
"description" : "10500 (0x2904) No response received for ping command.",
"value" : 10500
}
}
blhost failed
Flashloader is not running yet, download and run it
### Check communication with target bootloader ###
sdphost -p COM21,115200 -j -- error-status
{
"command" : "error-status",
"response" : [],
"status" : {
"description" : "10004 (0x2714) No response from device.",
"value" : 10004
}
}
sdphost failed

Does that mean for serial download via UART the Flashloader has to be run additionally as the Boot ROM in RT1060 is not sufficient?

(P.S. Download via USB works well)

br

Guenter

0 项奖励
回复
2 回复数

2,880 次查看
marek-trmac
NXP Employee
NXP Employee

Hi Guenter,

there should not be any major difference for UART, it should work same way as USB. Flashloader should be downloaded automatically by the write script.

Please double check, UART is correctly selected.

You can also try on command-line using

sdphost -p COM21,115200 -j -- error-status

whether connection with the ROM Bootloader can be established.

Regards

Marek

Regards,
Marek
0 项奖励
回复

2,880 次查看
guenter_loettrich
NXP Employee
NXP Employee

Hi Marek,

issue is solved.

It is not allowed to have USB OTG and UART connection at the same time. USB then seems to get precedence over UART.

Unplugging the USB cable from J9 made it work.

Would that be worth putting a NOTE into the documentation?

br

Guenter

0 项奖励
回复