Skip to content

Commit

Permalink
Added S25FL256S #31
Browse files Browse the repository at this point in the history
  • Loading branch information
nofeletru committed Sep 25, 2021
1 parent a843987 commit 03f1a1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions chiplist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@
<S25FL128S id="012018" page="256" size="16777216"/>
<S25FL132K id="014016" page="256" size="4194304"/>
<S25FL164K id="014017" page="256" size="8388608"/>
<S25FL256S id="010219" page="256" size="33554432"/>
</SPANSION>
<SST>
<SST25LF020A id="BF43" page="SSTB" size="262144"/>
Expand Down
5 changes: 5 additions & 0 deletions software/spi25.pas
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ function UsbAsp25_EN4B(): integer;
UsbAsp25_Wren;
buff:= $B7;
result := SPIWrite(1, 1, buff);
//Access Spansion Bank Register to enable Extended address control bit (EXTADD) for 4-byte addressing
buff:= $17;
SPIWrite(0, 1, buff);
buff:= %10000000; //EXTADD=1
result := SPIWrite(1, 1, buff);
end;

//Exit 4-byte mode
Expand Down

0 comments on commit 03f1a1f

Please sign in to comment.