TCL commands for NOR Flash

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

TCL commands for NOR Flash

1,505 次查看
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?

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

1,369 次查看
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 项奖励
回复