You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any bug report / feature request raised here MUST be submitted according to the respective templates or they will be flagged with 'Not enough information'. No action will be taken till all the prerequisite information (according to the right template) is provided. If no information is provided for over a month after the 'Not enough information' label is applied, the issue will be closed.
For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.
Hey there! Thanks for using the SPIFlash library for Arduino. Please explain your issue in a clear and succinct manner - using code examples if required - here.
Hello, I'm working on a flight recorder for an experimental rocket.
We are using string to record data in a flash memory BUT to avoid losing data at every startup the Arduino need to send the data in the memory to an SD card.
So we know what size this string is and can select or addresses BUT cannot know how many strings will be.
The function readStr() always crash every time it reaches the limit of the datalog (known here for testing)
for(uint32_t i=0; i<flash.getCapacity(); i=i+10){
if(flash.readStr(i,Data)){
delay(10);
Serial.println(Data);
// écriture sur la carte SD si elle est présente
if (verif == true)
{
myFile = SD.open("flash.txt", FILE_WRITE);
// if the file opened okay, write to it:
if (myFile)
{
myFile.println(Data);
// close the file:
myFile.close();
}
else
{
// if the file didn't open, print an error:
Serial.println("error opening flash.txt");
}
}
}
Why did the function flash.readStr(i,Data) still send a "true" when no strings are placed in this address ?
Thanks for your reply.
Regard's
Florian Levray
Note 1: Make sure to add all the information needed to understand the bug so that someone can help. If any essential information is missing we'll add the 'Needs more information' label and close the issue until there is enough information.
Note 2: For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.
The text was updated successfully, but these errors were encountered:
Could you let me know what platform (MCU / Flash module) & OS you're using this with? Once I have the information I will get onto it right away and see if I can fix it up for you asap.
On a side note, what's your rocket meant to do? I'd love to learn a bit more about your project if you have a webpage / GitHub repo. 😄
Any bug report / feature request raised here MUST be submitted according to the respective templates or they will be flagged with 'Not enough information'. No action will be taken till all the prerequisite information (according to the right template) is provided. If no information is provided for over a month after the 'Not enough information' label is applied, the issue will be closed.
For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.
Hey there! Thanks for using the SPIFlash library for Arduino. Please explain your issue in a clear and succinct manner - using code examples if required - here.
Hello, I'm working on a flight recorder for an experimental rocket.
We are using string to record data in a flash memory BUT to avoid losing data at every startup the Arduino need to send the data in the memory to an SD card.
So we know what size this string is and can select or addresses BUT cannot know how many strings will be.
The function readStr() always crash every time it reaches the limit of the datalog (known here for testing)
Why did the function flash.readStr(i,Data) still send a "true" when no strings are placed in this address ?
Thanks for your reply.
Regard's
Florian Levray
Note 1: Make sure to add all the information needed to understand the bug so that someone can help. If any essential information is missing we'll add the 'Needs more information' label and close the issue until there is enough information.
Note 2: For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.
The text was updated successfully, but these errors were encountered: