Skip to content

Support for other Adesto ICs and a new function to unprotect a write protected chip#77

Open
ole00 wants to merge 3 commits intoPaulStoffregen:masterfrom
ole00:master
Open

Support for other Adesto ICs and a new function to unprotect a write protected chip#77
ole00 wants to merge 3 commits intoPaulStoffregen:masterfrom
ole00:master

Conversation

@ole00
Copy link

@ole00 ole00 commented Apr 10, 2021

No description provided.

ole00 added 3 commits April 10, 2021 22:17
Datasheet for AT25PE16 specifies the format of the ID1.
The capacity is encoded in 5 bottom bits of the ID1.
AT25SF641B and AT25SF128A both conform to that spec,
presumably other Adesto AT25 ICs as well.
This function will unset the read only status of the
whole flash. This is handy if you want to use an IC from a
salvaged board that has the flash content write protected.
Tested on Winbond 8 MByte IC.
This allows to write files without knowing their file-size
beforehand. When the auto-growing file is being written
no other file can be written. It is important to close
the auto-growing file when the writing is finished.
To create autogrowing file pass 0 as its length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant