TCL commands for NOR Flash

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

TCL commands for NOR Flash

709 Views
monalihaware
Contributor III

i want to read the manufacture ID of NOR flash on T2080 RDB in debugger shell. i tried the following TCL commands:

for unlock:

change [expr {0xe8000000 + 0x555}] 16bit 0x00aa

change [expr {0xe8000000 + 0x2aa] 16bit 0x0055

change [expr {0xe8000000 + 0x555}] 16bit 0x0090


then to read man id:
set res[expr [mem i: 0xe8000000 16bit -np]]

It reads only the flash contents but doesnt read the man id. 

Can any one tell me TCL commands to read man id from debugger shell?

Labels (1)
0 Kudos
1 Reply

573 Views
Pavel
NXP Employee
NXP Employee

There is missing curly bracket in your code.

It should be the following:

change [expr {0xe8000000 + 0x555}] 16bit 0x00aa

change [expr {0xe8000000 + 0x2aa}] 16bit 0x0055

change [expr {0xe8000000 + 0x555}] 16bit 0x0090

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos