25fl256 not erase

Use USB JTAG NT for development. GNU deugger etc.
Post Reply
sangram
Junior Member
Posts: 20
Joined: Thu Feb 13, 2014 8:33 pm
Location: i dont know,
Contact:

25fl256 not erase

Post by sangram »

Copyright (C) 2010-2025
USB JTAG NT 1.10
Target: 25FL256
-speed 0
-flshdct 0
Found Address= 00000000 FL256SAIF00
SPI flash status bytes = a
Consider unlock chip (w 1 2)
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Re: 25fl256 not erase

Post by usbbdm »

The status of "a" means there is some sort of protection. Read the datasheet
"S25FL128S and S25FL256S" datasheet. (Very long one 154 pages)
Try the following command
"w 6"
"w 1 2"
The try to erase,if not we need to dig deep into the datasheet.
sangram
Junior Member
Posts: 20
Joined: Thu Feb 13, 2014 8:33 pm
Location: i dont know,
Contact:

Re: 25fl256 not erase

Post by sangram »

nothing happens with"w 6"
"w 1 2"
if u want u can try on team access
i hope u can fix it
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Re: 25fl256 not erase

Post by usbbdm »

Sure.But it is not a bug. Just need to read the datasheet carefully.
sangram
Junior Member
Posts: 20
Joined: Thu Feb 13, 2014 8:33 pm
Location: i dont know,
Contact:

Re: 25fl256 not erase

Post by sangram »

usbbdm wrote: Sun Feb 14, 2021 3:35 am Sure.But it is not a bug. Just need to read the datasheet carefully.
i have got another flash and there was same error
but this erased with w 1 2 cmd
here is logs


-speed 0
-flshdct 0
Found Address= 00000000 FL256SAIF00
SPI flash status bytes = ff
Consider unlock chip (w 1 2)
-erase 0 2000000
Erase starts...
Erase time 00:00:58 (.669)
-cmpram 0 2000000
Compare data Failed address 0,target 6B,PC memory FF
Time 00:00:37 (.812)
-w 1 2
D:/dth/zenega/0zenega6005 fta/0zenega6005 fta.rar loaded
-erase 0 2000000
Erase starts...
Erase time 00:00:59 (.609)
-program 0 2000000
Erase starts...
Erase time 00:01:00 (.257)
Program Starts...
Program speed 1257.71 KB/s
Program time 00:00:26 (.680)
Program pass, if no further programming needed, power off/on the target
-cmpram 0 2000000
Time 00:00:36 (.288)
Compare data OK
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Re: 25fl256 not erase

Post by usbbdm »

Read the datasheet to see what command needed to unlock the protection.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests