Problem using the method esp_flash_get_size
Posted: Fri Jan 13, 2023 1:29 pm
Good afternoon,
I started a project on a ESP32S3 using the ESP32-S3-DevKitC-1 and created a new project using hello_world
as an example.
In the app_main, the function esp_flash_get_size is executed (It is the same in the hello_world project) using the arguments :
if(esp_flash_get_size(NULL, &flash_size) != ESP_OK) {
printf("Get flash size failed");
return;
}
However, in my project, the compiler send me the error Invalid argument on this line. So I get an error in my project.
In the hello_world project, I do not have this error..
Could you please help me ??
Maybe I have to add a component or something ??
Best regards
I started a project on a ESP32S3 using the ESP32-S3-DevKitC-1 and created a new project using hello_world
as an example.
In the app_main, the function esp_flash_get_size is executed (It is the same in the hello_world project) using the arguments :
if(esp_flash_get_size(NULL, &flash_size) != ESP_OK) {
printf("Get flash size failed");
return;
}
However, in my project, the compiler send me the error Invalid argument on this line. So I get an error in my project.
In the hello_world project, I do not have this error..
Could you please help me ??
Maybe I have to add a component or something ??
Best regards