How to write TCL script to flash LS1021ATWR board?

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

How to write TCL script to flash LS1021ATWR board?

Jump to solution
3,779 Views
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?

Labels (1)
0 Kudos
Reply
1 Solution
3,223 Views
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

View solution in original post

7 Replies
3,223 Views
addiyi
NXP Employee
NXP Employee

Yes. A valid CW license is required.

Adrian 

0 Kudos
Reply
3,223 Views
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 Kudos
Reply
3,223 Views
jerrymorrow
Contributor III

those require a CW license, correct?  

0 Kudos
Reply
3,224 Views
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,223 Views
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 Kudos
Reply
3,223 Views
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 Kudos
Reply
3,223 Views
jerrymorrow
Contributor III

Are any such commands available for CCS with LS1043A ?

0 Kudos
Reply