How to write TCL script to flash LS1021ATWR board?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to write TCL script to flash LS1021ATWR board?

ソリューションへジャンプ
3,814件の閲覧回数
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,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

元の投稿で解決策を見る

7 返答(返信)
3,258件の閲覧回数
addiyi
NXP Employee
NXP Employee

Yes. A valid CW license is required.

Adrian 

0 件の賞賛
返信
3,258件の閲覧回数
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,258件の閲覧回数
jerrymorrow
Contributor III

those require a CW license, correct?  

0 件の賞賛
返信
3,259件の閲覧回数
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,258件の閲覧回数
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,258件の閲覧回数
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,258件の閲覧回数
jerrymorrow
Contributor III

Are any such commands available for CCS with LS1043A ?

0 件の賞賛
返信