fdMonitor only works sporadically

Of course it works for you, you don’t have a broken device :wink:

So here’s what we further found out. We had this self-written file-helper (files attached) which was used by our monitoring-app to create the files which are required by other apps (as stated here: Bundle required files - #7 by HudriWudri).

The code with which we initialized the files looked like this. (The opened filed was never closed, but we fixed that later on).

static void initRequiredFiles(void)
{
    File_Open(CELL_INFO_FILE_PATH_TO, File_OpenOptionEnumWrite);
    File_Copy(EXAMPLE_FILE_PATH_FROM, HOME_ROOT_PATH "/" EXAMPLE_FILE_PATH_TO, false);
}

We think that especially the File_Copy function caused problems and for some reason broke the whole device! How could that happen??? Do you see any reason for that?

file-helper.zip (1.5 KB)