Comments (3)
well, part 1, DOAH, READ ... it uses flash and flash is wiped on firmware upload.. ...
now.. part 2, I'm not getting out what I put in..
do I have to commit after each write?,
example says no
my read code
char xx[]="some string of dummy data";
if(EEPROM.isValid()){
Serial.println("config present");
Serial.println("using stored data");
// create a buffer
char x[sizeof(xx)+10];
// clear it, expect we will read less data than buffer size, most of the time.
memset(x,0,sizeof(x));
// loop thru the eeprom (whatever it is)
for (int i=0; i<sizeof(xx)+10; i++) {
Serial.print(" ");
// get a character
unsigned char y = EEPROM.read(i);
// if its not a null terminator (c stringish)
if( y != 0){
// save it in the buffer
x[i]=y;
}
// done with the read loop
else
break;
}
}
from flashstorage.
only 25 chars of my 110 chars are retrievable from flash on my Nano 33 IOT
i write ascii chars and then '\0', and then commit()
I read til I see the '\0'
from flashstorage.
ok, don't know why, but it thinks there is a '\0' embedded in the data, but not..
anyhow, now write 1 byte length, rest of data
read 1 byte length, rest of data..
all ok
from flashstorage.
Related Issues (20)
- EEPROM storage allocated even though it is not used HOT 3
- 16 bit ?
- 840 byte struct can crash function ?
- You can adjust the linker script to avoid overwriting EEPROM HOT 1
- Any chance to port to nRF52840? HOT 4
- SAMD51 NVM cache disable before write HOT 2
- EEPROM on nano-33 is complicated HOT 1
- Data Types for millis() HOT 1
- doubles and floats are no longer the same HOT 1
- Compile error for feather m4 HOT 1
- FlashAsEEROM weird issues HOT 13
- typo , should be SR but wrote CR HOT 3
- Are you sure about the 10K write cycles?
- A lot of errors while compiling FlashStoreAnd Retrieve HOT 1
- Arduino Nano 33 BLE listed as compatible on Arduino's website HOT 1
- Updating value inside struct.
- erase() fails if FlashClass::flash_size > ROW_SIZE
- Either Initilizing, Writing or Reading a String from Flash Storage bricks Seeeduino XIAO. HOT 1
- DO NOT USE IT ON ANTHING WITH BOOTLOADER AND Serial USB ARDUINO BOARDS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flashstorage.