TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: PSch on May 14, 2018, 11:21:00 AM

Title: Problems writing on Flash Memory TinyShield
Post by: PSch on May 14, 2018, 11:21:00 AM
Hi,
I have problems writing on the Flash Memory TinyShield using the example code TinyShield_FlashMem_Example.ino or any other example code I found (I tried to modify the GPS tracker example).
For testing I just run the ASM2001 Rev9, ASD2101 Rev6 and ASD2202 Rev3 (flash) shields.
I updated the SPIFlash library but still no success.

Can anyone help?

I get the following output:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                              Important Notice
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
               This version of the library - v3.1.0 will be the last version to ship under the name SPIFlash.
            Starting early May - when v3.2.0 is due - this library will be renamed 'SPIMemory' on the Arduino library manager.
                     Please refer to the Readme file for further details.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Chip Diagnostics initiated.

No Chip size defined by user. Automated identification initiated.

Using writeByte...
Error code: 0x07
Write failed!
Using readByte...
The byte on page 427 at position 19 is: 0
Title: Re: Problems writing on Flash Memory TinyShield
Post by: PSch on May 18, 2018, 05:06:01 AM
Does anyone have an example of a simple sketch that is definitely working for writing data on the flash shield so I can further investigate my problems?
Title: Re: Problems writing on Flash Memory TinyShield
Post by: PSch on May 24, 2018, 04:15:34 AM
 :D
Solved!

Just updated to the new SPIMemory library and all works brilliantly now!!
https://github.com/Marzogh/SPIMemory