I’m not 100% sure but
ESP_LOGI(TAG, "Open eof file_p %d", feof(file_p));
should be
ESP_LOGI(TAG, "Open eof file_p %d", feof(*fp));
I’m not 100% sure but
ESP_LOGI(TAG, "Open eof file_p %d", feof(file_p));
should be
ESP_LOGI(TAG, "Open eof file_p %d", feof(*fp));