File writes hanging (version 3.4.1) with Nano RP2040 Connect and flash memory chip from ISSI #7
-
Settings:
Libraries:
The Issue: I'm using a Nano RP2040 Connect with flash memory chip from ISSI. I wonder if there is any workaround to overcome this issue without downgrading the core to version 2.3.1 as it brings other problems to my project. The code:
The above method run shows in the serial monitor:
and then the system hangs. Thank you for any idea on this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @stefat This Check
Try to use arduino-pico core to see if any better. I have no way to figure out as I don't have that kind of special board ans also have no interest and time to investigate. If it's a must, try using external flash-chip board, SD, etc., or even throw or return the board back to Arduino Good Luck, |
Beta Was this translation helpful? Give feedback.
-
You can try using the Nano_RP2040_Connect with |
Beta Was this translation helpful? Give feedback.
-
The current Mbed LittleFS implementation is using stdio.h of C Library. Therefore there is no file.size() function. But you can use the combination of fseek int fseek(FILE *stream, long int offset, int whence); with function ftell long int ftell(FILE *stream); to get the similar feature. See the example #include <stdio.h>
int main ()
{
FILE *fp;
int len;
fp = fopen("file.txt", "r");
if ( fp == NULL )
{
perror ("Error opening file");
return (-1);
}
fseek(fp, 0, SEEK_END);
len = ftell(fp);
fclose(fp);
printf("Total size of file.txt = %d bytes\n", len);
return (0);
} |
Beta Was this translation helpful? Give feedback.
Hi @stefat
This
ISSI
chip issue is well-known, discovered a very long time ago and still hasn't been solved.You have to wait for Arduino to fix the core. I'm also amazed that you can go so far.
Check
Try to use arduino-pico core to see if any better.
I have no way to figure out as I don't have that kind of special board ans also have no interest and time to investigate.
If it's a must, try using external flash-chip board, SD, etc., or even throw or return the board back to Arduino
Good Luck,