Content originally posted in LPCWare by sylvio on Fri Jun 03 02:06:31 MST 2016
I had the same problem... if it could help anybody, the cause was another one :
Because of a misconfiguration of the project in the compiler the global variables were not initialized to zero... so "rfs" was not null and on first call of the function if(rfs) was true and rfs->fs_type = 0; pointed to a random address !