Unable to store file in Windows CE on mini2440

Narongrat Srimee
I have been faced some problem with Windows CE .NET 5.0 on mini2440.
When I transferred file into any directory, such as My Document, it will
stored until I delete or power-off the system.
When I power-on again, the file have been disappeared.

How to store it on mini2440?

Thanks

Engr. Mohazzab Javed
you cant store them in any folder except sd card of usb flash try to store
them on sd card or usb flash disk


if you want to store any application make its binary image and store it
using uboot.


if you want to store from another way just make your applications cab file
and install it then it will not be vanish


if you still face problem just mail me at moh_bim@yahoo.com

best regards
Engr. Mohazzab Javed

Rickard
Hi,

I had the same "problem" and found the solution in the link below,

http://nicolasbesson.blogspot.com/2007/12/enable-rom-only-file-system-un...

Eventhough this is for CE 6 it worked for me on CE 5

Regards

Nikolay
Hi Rickard,
Please explain, how to do that?
What you put into registry?
I chose "ROM only file system" and append folowing keys into registry, but
my WinCe image don't start :(

IF SYSGEN_FSROMONLY
   "Start DevMgr"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
   "DriverPath"="Drivers\\BuiltIn\\MSFlash"
   "Order"=dword:0
   "MountFlags"=dword:11
   "LoadFlags"=dword:1 ;load synchronously
   "BootPhase"=dword:0
   "Flags"=dword:1000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash] 
   "Profile"="FlashDisk" 
   "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}" 
   "Order"=dword:0 
   "FriendlyName"="MSFLASH Driver" 
   "Dll"="smflash.dll" 
   "Prefix"="DSK" 
   "Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
   "AutoMount"=dword:1
   "AutoPart"=dword:1
   "AutoFormat"=dword:1
   "PartitionDriver"="mspart.dll"
   "MountAsBootable"=dword:1
   "Name"="NANDFLASH"
   "Folder"="NandFlash"
   "DefaultFileSystem"="FATFS"

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
   "MountAsRoot"=dword:1
   "MountAsBootable"=dword:1
   "MountPermanent"=dword:1

ENDIF

Nikolay
At last I managed to do image with "ROM only file system" and "Resident
Flash" mount as root! I add only four line in platform.reg (see the
underlined text) :

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH]
  "DefaultFileSystem"="FATFS"
  "PartitionDriver"="mspart.dll"
  "AutoMount"=dword:1
  "AutoPart"=dword:1
  "AutoFormat"=dword:1
  "Folder"="ResidentFlash"
  "Name"="Microsoft Flash Disk"
  "BootPhase"=dword:0
  "Flags"=dword:1000

[u]IF SYSGEN_FSROMONLY
  "MountAsBootable"=dword:1
ENDIF[/u]

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH\FATFS]
  "FriendlyName"="FAT FileSystem"
  "Dll"="fatfsd.dll"
  "Flags"=dword:00280014
  "Paging"=dword:1

  "CacheSize"=dword:0
  "EnableCacheWarm"=dword:0
  "EnableCache"=dword:1
  "MountFlags"=dword:2

[u]IF SYSGEN_FSROMONLY
  "MountAsRoot"=dword:1
  "MountAsBootable"=dword:1
  "MountPermanent"=dword:1
ENDIF[/u]

After making clean sysgen all start work perfectly!

Rickard
Glad to hear, good you documented what you did, something I didn't do.....

Kevin
Hi Nikolay, I'm having the same issue as you were having.  I am trying to
read/write files from my flashcard (where nk.bin is loaded run).

I am slightly confused by your 2 posts because you suggest different
modifications in each. Could you please post your final results to get
read/write access working?

Thanks in advance

Nikolay
My second post is the final result ( do not read the first one).
I think my post here :<a
href="http://www.friendlyarm.net/forum/topic/151?lang=en#658">"ht...;
is more useful for you.

Regards!

Fernando
can anyone attach a platform.reg for wince5?
I'm trying all this and cant get to work... system hangs after the bootup
logo...

thank you all
fernando

Fernando
do I have to add the "SmartMedia NAND Flash Driver (SMFLASH)" to my
catalog?

xjoke
How to do with Tiny210?

Stranet
Hi,
after many years I have the same problem.

I have a Mini2440 with 3.5" display.
I have a solution developed with Compact Framework that works only for
WinCE 5.

Everytime I turn off the board every files I've stored gone deleted.
I can store it on the resident flash or use a SD card, but how to install
Compact Framework?