cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
senkoo
Observer
Observer
1,079 Views
Registered: ‎08-28-2018

Fail to erase QSPI flash on

Jump to solution

Hello guys,

 

I am working on the zynq but i've never encountered this before and i have programmed the SPI a few times now. When i try to erase something this happends:

 

Zynq> sf erase 0x0 0x100
SF: 256 bytes @ 0x0 Erased: ERROR


But when i do 

Zynq> sf erase 0x0 0x1000
SF: 4096 bytes @ 0x0 Erased: OK


It's ok, but then when i use md 0x0 0x1000 it doesn't seem the memory got erased. There is still alot of data it seems like. Here is a little bit:

00000000: fbfeb57c f7d7ffd7 f757ffd3 efe77fff    |.........W.....
00000010: bffbfffd bff30fff ff5fdffd cfcdffff    .........._.....
00000020: bf7fbf78 3febf77f ffff7f7b bbebfffb    x......?{.......
00000030: feafdcfe f7bf5e6b be3edce3 dfbbfa76    ....k^....>.v...
00000040: ff9fadff b7ffeb6b ffdefffe fffffc5f    ....k......._...
00000050: ffbebfff ffff7ffb ffafb4ff ffffdbbd    ................
00000060: ffbfefff efffcffd efff7fff ffffefde    ................
00000070: 7ffffdff f6ffffb9 bffbfbfd f5fffbdd    ................


0 Kudos
1 Solution

Accepted Solutions
klasha
Adventurer
Adventurer
1,061 Views
Registered: ‎05-23-2018

The SF commands work on the Flash. The memory commands (md and so on) work on your RAM. Looks like you are reading the first few bytes of your FSBL.

 

Try reading the data from flash to memory first. Try to hit a memory area where nothing important is. Then md that and have a look. Should be a bunch of FF after erasing.

View solution in original post

0 Kudos
1 Reply
klasha
Adventurer
Adventurer
1,062 Views
Registered: ‎05-23-2018

The SF commands work on the Flash. The memory commands (md and so on) work on your RAM. Looks like you are reading the first few bytes of your FSBL.

 

Try reading the data from flash to memory first. Try to hit a memory area where nothing important is. Then md that and have a look. Should be a bunch of FF after erasing.

View solution in original post

0 Kudos