 
					
				
		
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?
Solved! Go to Solution.
 
					
				
		
 addiyi
		
			addiyi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 addiyi
		
			addiyi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Yes. A valid CW license is required.
Adrian
 
					
				
		
 addiyi
		
			addiyi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
those require a CW license, correct?
 
					
				
		
 addiyi
		
			addiyi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
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.
 
					
				
		
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.
 
					
				
		
Are any such commands available for CCS with LS1043A ?
