Hi Team,
Thanks for the reply. The error has been resolved, but another error seem to have popped up. PFB the code for Read from Flash :
void CFlashMemory :: ReadFromFlash()
{
if(!OpenFlashMemory()) //Function to open the Flash Memory
return;
//Reading System Parameters
DWORD Location=0;
CSystemSetting* ptrSystemSetting=NULL;
ptrSystemSetting=m_argpDataMgr->GetSystemSettingPtr();
if(ptrSystemSetting!=NULL)
{
fseek(mpFlashPtr,Location,IO_SEEK_SET);
read(mpFlashPtr,ptrSystemSetting,sizeof(CSystemSetting));
m_argpDataMgr->SetSystemSetting(ptrSystemSetting);
}
fclose(mpFlashPtr);
}
CSystemSetting is a class which has got various parameters which I need to save into flash. m_argpDataMgr is an object of a class DataMgr which is member variable of the Flash class. First all the System Setting Parameters are stored into Data Mgr and then loaded into Flash.I am able to see the data getting read by using breakpoints, but my screen hangs after the Read function is executed. Kindly let me know how this issue can be resolved.
Thanks and Regards,
Sneha Hegde