AnsweredAssumed Answered

Could not delete file in nand flash file system

Question asked by cheng wu on Aug 8, 2014
Latest reply on Aug 11, 2014 by jamesbone

Dear all,

I'm developing a wince700 BSP on a i.MX53 board, now I have a problem about the nand flash file system, I have a 256M nand flash on my board, and I partition it into two parts as the document from freescale, I use the first part to store my nk, and the second part to store some user files, after the OS boot up, one of my application would download some files from my server and write it into the second part of the nand flash, this function is work now, the files is still exist after I re-power up the board, but when I use the remote tools connect to the board, and try to delete the files I downloaded from the server, it came out an error says that "access is denied", and the remote tool shows that the file attribute is 00000023, I have another board run wince500, the file attribute on this board is 00000020, and the files could be delete successful, is the file attribute result in the delete problem? if it is, please tell me how to change the attribute, thank you very much.

by the way, here is my registry setting for the second partition of nand flash:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FlashPDD]

  "Dll"="flashmdd.dll"

  "FlashPddDll"="flashpdd_nand.dll"

  "Prefix"="DSK"

  "Profile"="MSFlash"

  "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",

  "{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"

  "FriendlyName"="NAND Flash Driver"

  "Order"=dword:20

  "Priority256"=dword:76

; @CESYSGEN IF FILESYS_FSREGHIVE

  ;"Flags"=dword:1000

; @CESYSGEN ENDIF FILESYS_FSREGHIVE

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]

  "DefaultFileSystem"="FATFS"

  "PartitionDriver"="FLASHPART.dll"

  "AutoFormat"=dword:1

  "AutoPart"=dword:1

  "AutoMount"=dword:1

  "Name"="NAND FLASH Storage"

  "Folder"="FlashDisk"

  ;"FormatExfat"=dword:1

; @CESYSGEN IF FILESYS_FSREGHIVE

  "FormatTfat"=dword:1

  ;"MountAsBootable"=dword:1

  ;"MountPermanent"=dword:1

; @CESYSGEN ENDIF FILESYS_FSREGHIVE

Outcomes