Hi Team,
I am able to write data into the NAND Flash of TWRK70F120M. But when I try executing the Read from Flash function, the control gets stuck at a point in the boot file. The screenshot of the error has been attached. However, I am able to check the data that is read using the breakpoint which is same as the data written. Kindly suggest how can this problem be resolved.
Thanks and Regards,
Sneha Hegde
Good commentary , Apropos if people a a form , my secretary filled out and faxed a blank document here PDFfiller. On-line PDF form Filler, Editor, Type on PDF ; Fill, Print, Email, Fax and Export |
Hi Sneha,
Please try to download K70 baremetal project for NAND demo from below link [nfc] demo:
KINETIS_120MHZ_SC : Kinetis 120MHz bare metal sample code.
K70_120: Kinetis K70 Graphic LCD 120/150 MHz MCUs
Please check if there with hardware issue.
If it works, then there focus on MQX NAND software code.
Wish it helps.
Best regards,
Ma Hui
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