AT45DB161D program /read problem

Status
Not open for further replies.

diepvu1805

Member level 2
Joined
Jun 20, 2011
Messages
46
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Activity points
1,595
hi all,
I am using AT45DB161D serial flash. I have some issue when write/read data to it.
I wrote the same data to all page of AT45DB161D but I receive difference result.
Here is result:
string written:
"122ysdsgxccbbvxmcbvjkdhjgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx"
string read:
page 0:
jgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
page 1:
122ysdsgxccbbvxmcbvjkdhjgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
page 2:
jgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
page 3:
122ysdsgxccbbvxmcbvjkdhjgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
page 4:
jgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
page 5:
122ysdsgxccbbvxmcbvjkdhjgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
page 6:
jgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
page 7:
122ysdsgxccbbvxmcbvjkdhjgksdhgjkfdhfksjdhkjhlkasjdlkasjdxcnbzxmcbnmxbcnmbcmxbcxmbmnbx
...................................
seem errors loop
I cannot explain that. Pls help me,
Thank,
 

Can you show how to write and read?
 

Thank,
The reasons is page address. I have some mistake when set page address.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…