Hello community,
■Problems occurring:
When I tried to open a bitmap file with the fopen function as shown below,
I encountered a problem that returned "Not enough space".
Do I need to change any settings on the STM32CubeID side?
Please help us solve it.
*1. It has been confirmed that the target directory and file exist.
*2. There is enough free space on C drive.
■Environment:
・Windows
・STM32CubeIDE_1.12.1
・nucleo-f207zgt6
・C language
・001.bmp (225 KB (230,538 bytes))
■Code:
char* path = "C:\\〇〇";
fileName = "C:\\〇〇\\001.bmp";
if (access(path, F_OK) == 0) {
struct stat st;
if (stat(fileName, &st) == 0) {
if ((BmpFp = fopen(filename,"rb"))==NULL) {
// Result of the following processing: Not enough space
char* er = strerror( errno );
exit(1);
}
}
}