How to write TCL script to flash LS1021ATWR board?

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

How to write TCL script to flash LS1021ATWR board?

跳至解决方案
3,813 次查看
janmejayjoshi
Contributor I

I'm working on LS1021ATWR board for my client, I'm new to CodeWarrior and this board.

I want to devlope a TCL script to erase, write and verify boot elfs into NOR flash of LS1021ATWR.

I was going through many documents of CodeWarrior with QorIQ, but not able to determine the commands to flash, erase and verify.
Can anyone help me out on this?

标签 (1)
0 项奖励
回复
1 解答
3,257 次查看
addiyi
NXP Employee
NXP Employee

First, you should open Debugger Shell view. In Debugger Shell console, you can enter help command to see all supported commands.

Commands for flash programmer are:

fl::blankcheck b test that the flash device is in the blank state
fl::checksum c calculate a checksum
fl::device d define the flash device
fl::diagnose diag dump flash information
fl::disconnect dis close the connection to the target
fl::dump dump dump flash content
fl::erase e erase the flash device
fl::image i define the flash image settings
fl::protect prot protect sectors
fl::secure secu secure/unsecure device
fl::target t define the target configuration settings
fl::verify v verify the flash device
fl::write w write the flash device

Adrian

在原帖中查看解决方案

7 回复数
3,257 次查看
addiyi
NXP Employee
NXP Employee

Yes. A valid CW license is required.

Adrian 

0 项奖励
回复
3,257 次查看
addiyi
NXP Employee
NXP Employee

Yes, similar command are available in CW for ARMv8, the one that support LS1043, Debugger Console. Details about commands can be found in Targeting Manual, Chapter 7.

Adrian

0 项奖励
回复
3,257 次查看
jerrymorrow
Contributor III

those require a CW license, correct?  

0 项奖励
回复
3,258 次查看
addiyi
NXP Employee
NXP Employee

First, you should open Debugger Shell view. In Debugger Shell console, you can enter help command to see all supported commands.

Commands for flash programmer are:

fl::blankcheck b test that the flash device is in the blank state
fl::checksum c calculate a checksum
fl::device d define the flash device
fl::diagnose diag dump flash information
fl::disconnect dis close the connection to the target
fl::dump dump dump flash content
fl::erase e erase the flash device
fl::image i define the flash image settings
fl::protect prot protect sectors
fl::secure secu secure/unsecure device
fl::target t define the target configuration settings
fl::verify v verify the flash device
fl::write w write the flash device

Adrian

3,257 次查看
janmejayjoshi
Contributor I

Thanks addiyi‌ for such a quick reply.
I will first go through this commands using help in CW suite, and then I'll prepare TCL script and test it.
Will get back to you in case of any help needed.

0 项奖励
回复
3,257 次查看
janmejayjoshi
Contributor I

addiyi‌, I'm able to flash my image file onto board's flash using above commands, it turned very helpful for me.
Thanks once again.

0 项奖励
回复
3,257 次查看
jerrymorrow
Contributor III

Are any such commands available for CCS with LS1043A ?

0 项奖励
回复