1. Problem Description
When you use ActiveSync for synchronization, you will find that the synchronization fails. The synchronization interface of the PC synchronization software is as follows:
Figure 1
An error occurs on the wince device, such:
Figure 2
2. Problem Analysis
Files cannot be synchronized. It should be related to the file system of the wince device.
3. Problem Solving
3.1 later I found that I could change the Rom-only file system selected by the system to Ram and ROM file system.
3.2 select Rom-only File System
(1) Ensure that the XXX. BAT file in the BSP package contains the following content:
@ REM for hive based registry
Set imghivereg = 1
Set prj_enable_fsextrepl = 1 // you can leave this option empty.
If/I "% imghivereg %" = "1" set prj_enable_fsreghive = 1
If/I "% imghivereg %" = "1" set prj_enable_regflush_thread = 1
(2) Add the following registry key in platform. Reg.
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ <storageprofile associated with the root file system> \ fatfs \ filters \ fsreplxfilt]
"DLL" = "fsreplxfilt. dll"
"Order" = DWORD: 1; must be loaded after other Filters
The <storage profile associated with theroot file system> is FlashDisk for our mlc nand Flash system, for example
[HKEY_LOCAL_MACHINE \ SYSTEM \ storagemanager \ profiles \ NAND \ fatfs \ filters \ fsreplxfilt]
"DLL" = "fsreplxfilt. dll"
"Order" = DWORD: 1
This registry entry must be between; hive boot section and; end hive boot section.
(3) set the environment variable sysgen_fsreplxfilt
Figure 3
Then select clean sysgen.
Related links:
Http://technet.microsoft.com/zh-cn/subscriptions/ee490220
Http://social.msdn.microsoft.com/Forums/zh-CN/winembeddedzhtw/thread/b3343b15-5d03-4f21-b85e-7566792606d4