Abdul Raseeth Ansari

NAND FLASH Hangs on Windows CE 6.0 OS , imx51 processor

Discussion created by Abdul Raseeth Ansari on Dec 12, 2011
Latest reply on Dec 15, 2011 by Qiang Li - Mpu Se

Before get into NAND Flash Hang issue , let me explain the usage of NAND Flash.

Total size - 128 mb

Diag area        - 1 mb

NK area          - 50 mb

File System Area - 77 mb
                  -------
        Total    - 128 mb
                  -------
                 
when i continiously running my application on NAND FLASH , repeatedly usage of NAND Flash , its getting hangs after a couple of days test.

when i enabled the Debug mode, i am getting an print like this,

32822 PID:400002 TID:a10002 FLASH Init Step Finish
  32822 PID:400002 TID:a10002 FSDMGR!DumpRegKey: Dumping registry for key System\StorageManager\Profiles
  32822 PID:400002 TID:a10002         AutoMount = 00000001
  32822 PID:400002 TID:a10002         AutoPart = 00000000
  32822 PID:400002 TID:a10002         AutoFormat = 00000000
  32822 PID:400002 TID:a10002         MountFlags = 00000000
  32822 PID:400002 TID:a10002         DefaultFileSystem =
PB Debugger Loaded symbols for 'E:\WINCE600\OSDESIGNS\IMX51-EVK-PDK1_7-MOBILITY\RELDIR\FREESCALE_I_MX51_EVK_ARMV4I_DEBUG\EXFAT.DLL'
  32822 PID:400002 TID:a10002         PartitionDriverName = MSPART
  32822 PID:400002 TID:a10002         Folder = Mounted Volume
  32822 PID:400002 TID:a10002         ActivityEvent = PowerManager/ActivityTimer/SystemActivity
  32822 PID:400002 TID:a10002 FSDMGR!DumpRegKey: Dumping registry for key NAND_Flash
  32822 PID:400002 TID:a10002         Name = NAND FLASH
  32822 PID:400002 TID:a10002         Folder = NAND Flash
  32822 PID:400002 TID:a10002         AutoPart = 00000001
  32822 PID:400002 TID:a10002         AutoFormat = 00000001
  32822 PID:400002 TID:a10002         PartitionDriver = flashpart.dll
  32822 PID:400002 TID:a10002 FSDMGR!StoreDisk_t::GetPartitionDriver: Using the generated partition driver name (flashpart)!!!
  32822 PID:400002 TID:a10002 OSAXST1: >>> Loading Module 'flashpart.dll' (0x87F34DD4) at address 0xC0740000-0xC074A000 in Process 'NK.EXE' (0x8662BAA0)
  31817 PID:400002 TID:c50002 DeviceFolder::LoadDevice(Drivers\BuiltIn\CSPDDK) last 5 Ticks
  34131 PID:400002 TID:680002 FILESYS: Waiting for bootable file system to be mounted.
  35791 PID:400002 TID:a10002 Kernel DLL 'flashpart.dll' needs thread creation/deletion notification
  35791 PID:400002 TID:a10002 FSDMGR!LoadPartitionDriver: Loading partition driver flashpart.dll hModule=87F34DD4
PB Debugger Unloaded symbols for 'E:\WINCE600\OSDESIGNS\IMX51-EVK-PDK1_7-MOBILITY\RELDIR\FREESCALE_I_MX51_EVK_ARMV4I_DEBUG\EXFAT.DLL'
  35791 PID:400002 TID:a10002  IOCTL_FLASH_PDD_GET_REGION_COUNT
  35791 PID:400002 TID:a10002  IOCTL_FLASH_PDD_GET_REGION_COUNT
  35791 PID:400002 TID:a10002  IOCTL_FLASH_PDD_GET_REGION_INFO
  35791 PID:400002 TID:a10002  IOCTL_FLASH_PDD_GET_REGION_INFO
  35791 PID:400002 TID:a10002 FSDMGR!StoreDisk_t::MountStore: Opened the store "DSK1:" hStore=0xD0049800
  35791 PID:400002 TID:a10002 FSDMGR!StoreDisk_t::MountStore: Geometry: NumSec=39424 BytesPerSec=2048 FreeSec=0 BiggestCreatable=0
  35791 PID:400002 TID:a10002 Partition PART00  NumSectors=38016
  35791 PID:400002 TID:a10002 FSDMGR!StoreDisk_t::LoadPartition: mounting partition "PART00" on store "DSK1:"
  35791 PID:400002 TID:a10002 FSDMGR!ParitionDisk::LoadPartition: Partition Type 0x07 --> "MSIFS"
  35791 PID:400002 TID:a10002 FSDMGR!DetectorState_t::RunDetector - exfat.dll::FSD_DetectVolume GUID={A4AB2ABF-726A-4AA8-B882-6EB6EB5780E9}
  35791 PID:400002 TID:a10002 OSAXST1: >>> Loading Module 'exfat.dll' (0x87EEC330) at address 0xC05B0000-0xC05EB000 in Process 'NK.EXE' (0x8662BAA0)
PB Debugger Loaded symbols for 'E:\WINCE600\OSDESIGNS\IMX51-EVK-PDK1_7-MOBILITY\RELDIR\FREESCALE_I_MX51_EVK_ARMV4I_DEBUG\EXFAT.DLL'
  36990 PID:400002 TID:a10002 OSAXST1: <<< Unloading Module 'exfat.dll' (0x87EEC330) at address 0xC05B0000-0xC05EB000 in Process 'NK.EXE' (0x8662BAA0)
  38946 PID:400002 TID:a10002 FSDMGR!ParitionDisk::LoadPartition: DetectFileSystem remapped 0x07 --> "EXFAT"
  38946 PID:400002 TID:a10002 FSDMGR!ParitionDisk::MountPartition: "EXFAT" --> exfat.dll
  38946 PID:400002 TID:a10002 OSAXST1: >>> Loading Module 'exfat.dll' (0x87EEC330) at address 0xC05B0000-0xC05EB000 in Process 'NK.EXE' (0x8662BAA0)
  40336 PID:400002 TID:a10002 FSD_MountDisk: Mounting volume for hDsk=D0049960
  40336 PID:400002 TID:a10002 FSDMGR!MountedVolume_t::~MountedVolume_t: deleting volume (D0049FA0)
  40336 PID:400002 TID:a10002 FSDMGR!FileSystemDriver_t::~FileSystemDriver_t: deleting FSD (D0049E00)
  40336 PID:400002 TID:a10002 OSAXST1: <<< Unloading Module 'exfat.dll' (0x87EEC330) at address 0xC05B0000-0xC05EB000 in Process 'NK.EXE' (0x8662BAA0)
PB Debugger Unloaded symbols for 'E:\WINCE600\OSDESIGNS\IMX51-EVK-PDK1_7-MOBILITY\RELDIR\FREESCALE_I_MX51_EVK_ARMV4I_DEBUG\EXFAT.DLL'

Can anyone tell me the Reason for this NAND FLASH HANGS? Do i need to make changes in any settings???

hope you can help me out in this !!! thanx in advance !!!

Outcomes