Dear all:

i came across a nand flash problem on windows ce 5.
And i have installed "Windows CE 5.0 Product Update Rollup, December 31,
2006".
The CPU i used is RMI Au1200 MIPS CPU.

The problem is,
i can not delete file on the flash disk after the flash is full.


The duplicate procedure is,

1. Write many files to flash disk

2. when it is almost full, it show below message

0x8f9279e8: FLASHDRV.DLL:ReadFromMedia() - Unable to determine physical
sector address for logical sector 0x00077a55

0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
sectors left; the compactor can't be started

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start compactor
in critical situation!!!

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any free
sectors in a critical compaction stage. Media must be full.

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
sector address for writing! The media is full...

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.

0x8f9279e8: Read/Write Sector failed (112) on Sector 490067

0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
sectors left; the compactor can't be started

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start compactor
in critical situation!!!

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any free
sectors in a critical compaction stage. Media must be full.

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
sector address for writing! The media is full...

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.

0x8f9279e8: Read/Write Sector failed (112) on Sector 490067

0x8f9279e8: FATFS!CommitStream returned 112 for '00000B1FTMP'

3. After this i can not delete any files.
0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
sectors left; the compactor can't be started

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start compactor
in critical situation!!!

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any free
sectors in a critical compaction stage. Media must be full.

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
sector address for writing! The media is full...

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.

0x8f9279e8: Read/Write Sector failed (112) on Sector 490067

0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
sectors left; the compactor can't be started

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start compactor
in critical situation!!!

0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any free
sectors in a critical compaction stage. Media must be full.

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
sector address for writing! The media is full...

0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.

0x8f9279e8: Read/Write Sector failed (112) on Sector 59902

0x8f9279e8: FATFS!CommitStream returned 112 for 'ELEVEN '

0x8f9279e8: FATFS!FAT_DeleteFileW(\eleven\00000000.tmp) returned 0x0 (112)


Any ideas?

Sincerely

Re: Can not delete file when NAND Flash is full on CE 5. by Dean

Dean
Thu Apr 10 06:04:31 PDT 2008

I remember something like this, it might have been resolved in a later QFE.
Update to the latest and try again...

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Benson Wang" <BensonWang@discussions.microsoft.com> wrote in message
news:E4A9342B-B053-4E8C-908A-847FEAA81746@microsoft.com...
> Dear all:
>
> i came across a nand flash problem on windows ce 5.
> And i have installed "Windows CE 5.0 Product Update Rollup, December 31,
> 2006".
> The CPU i used is RMI Au1200 MIPS CPU.
>
> The problem is,
> i can not delete file on the flash disk after the flash is full.
>
>
> The duplicate procedure is,
>
> 1. Write many files to flash disk
>
> 2. when it is almost full, it show below message
>
> 0x8f9279e8: FLASHDRV.DLL:ReadFromMedia() - Unable to determine physical
> sector address for logical sector 0x00077a55
>
> 0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
> sectors left; the compactor can't be started
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start
> compactor
> in critical situation!!!
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any
> free
> sectors in a critical compaction stage. Media must be full.
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
> sector address for writing! The media is full...
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.
>
> 0x8f9279e8: Read/Write Sector failed (112) on Sector 490067
>
> 0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
> sectors left; the compactor can't be started
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start
> compactor
> in critical situation!!!
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any
> free
> sectors in a critical compaction stage. Media must be full.
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
> sector address for writing! The media is full...
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.
>
> 0x8f9279e8: Read/Write Sector failed (112) on Sector 490067
>
> 0x8f9279e8: FATFS!CommitStream returned 112 for '00000B1FTMP'
>
> 3. After this i can not delete any files.
> 0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
> sectors left; the compactor can't be started
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start
> compactor
> in critical situation!!!
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any
> free
> sectors in a critical compaction stage. Media must be full.
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
> sector address for writing! The media is full...
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.
>
> 0x8f9279e8: Read/Write Sector failed (112) on Sector 490067
>
> 0x8f9279e8: FLASHDRV.DLL:CP_StartCompactor() - There aren't any DIRTY
> sectors left; the compactor can't be started
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to start
> compactor
> in critical situation!!!
>
> 0x8f9279e8: FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to reclaim any
> free
> sectors in a critical compaction stage. Media must be full.
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() - Unable to get next free physical
> sector address for writing! The media is full...
>
> 0x8f9279e8: FLASHDRV.DLL:WriteToMedia() failed.
>
> 0x8f9279e8: Read/Write Sector failed (112) on Sector 59902
>
> 0x8f9279e8: FATFS!CommitStream returned 112 for 'ELEVEN '
>
> 0x8f9279e8: FATFS!FAT_DeleteFileW(\eleven\00000000.tmp) returned 0x0 (112)
>
>
> Any ideas?
>
> Sincerely
>