Skip to content

Commit

Permalink
Tested and confirmed support for Spansion S25FL127S
Browse files Browse the repository at this point in the history
  • Loading branch information
Marzogh committed Nov 30, 2017
1 parent fad3453 commit 657ad27
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ SPIFlash flash(33);
- SST26VF064B
- Cypress/Spansion
- S25FL116K
- S25FL127S

###### Should work with (Similar enough to the ones actually tested with)
- Winbond (All SPI Flash chips)
Expand Down
29 changes: 16 additions & 13 deletions examples/FlashDiagnostics/FlashDiagnostics.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
#endif

#if defined (SIMBLEE)
#define BAUD_RATE 250000
#define RANDPIN 1
#define BAUD_RATE 250000
#define RANDPIN 1
#else
#define BAUD_RATE 115200
#if defined(ARCH_STM32)
#define RANDPIN PA0
#else
#define RANDPIN A0
#endif
#define BAUD_RATE 115200
#if defined(ARCH_STM32)
#define RANDPIN PA0
#else
#define RANDPIN A0
#endif
#endif

#define TRUE 1
Expand All @@ -42,9 +42,9 @@ SPIFlash flash;

void setup() {
Serial.begin(BAUD_RATE);
#if defined (ARDUINO_ARCH_SAMD) || (__AVR_ATmega32U4__) || defined(ARCH_STM32)
while (!Serial) ; // Wait for Serial monitor to open
#endif
#if defined (ARDUINO_ARCH_SAMD) || (__AVR_ATmega32U4__) || defined(ARCH_STM32)
while (!Serial) ; // Wait for Serial monitor to open
#endif
delay(50); //Time to terminal get connected
Serial.print(F("Initialising Flash memory"));
for (uint8_t i = 0; i < 10; ++i)
Expand All @@ -53,12 +53,15 @@ void setup() {
}
Serial.println();
randomSeed(analogRead(RANDPIN));
flash.begin();
//while (!
flash.begin();/*) {
delay(1000);
}*/
//To use a custom flash memory size (if using memory from manufacturers not officially supported by the library) - declare a size variable according to the list in defines.h
//flash.begin(MB(1));
Serial.println();
Serial.println();

getID();
eraseChipTest();
eraseBlock64KTest();
Expand Down
5 changes: 4 additions & 1 deletion extras/Changes.log
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Thanks for catching and fixing the following @hanyazou
--> The library did not wait until the busy bit in SR1 was cleared. Timeout argument of _notBusy() must be in micro-second. 500L means 500 micro seconds which is too short to wait for completion of erase command. Added " * 1000" to the arguments. (commit 2: 9633c2f)
--> Modified TestFlash.ino to check error of erase commands execution. (commit 3: a179306)
****************
-->
-->

New flash memory chips supported:
--> S25FL127S
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Version 3.0.0 //
// Author: Prajwal Bhattaram //
Expand Down

0 comments on commit 657ad27

Please sign in to comment.