Re: Is there anyone use Spansion Nor flash?



The FAL/FMD does not distinguish between different file types. This sounds
like a file system or system issue. Is there some attribute set on
executables for this folder that prevent formatting the folder? Maybe the
executable files are hidden? Are the text file and executable file the same
in other respects? Are they roughly the same size?

Regards,
Gary

"buaadallas" <buaadallas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:35099B6C-4E20-439E-9914-D0CF114F45BD@xxxxxxxxxxxxxxxx
Hi,

I tested the NOR Flash folder, found that if the files stored in the
folder
are .exe or some other binary file, these files will be destroyed, if I
just
store data files such as .txt .dat .log files, these files will be OK. I
do
not know why?


"Gary Swalling" wrote:

Hi,
It sounds like code is trying to execute from the flash when FMD_Init is
called. nk.bin must be shadowed to RAM for this method. If you'd like
to
partition flash for XIP, I suggest licensing SSP from Spansion, which
includes TrueFFS block driver. A WinCE filesystem (FAT, TFAT, etc) can
be
used with the TrueFFS block driver.

You can submit a request at:
http://www.spansion.com/flash_memory_products/support/ses/ask_spansion.html

and for the "Type of Inquiry" field, please select "Software Licensing
and
Distribution".

Best regards,
Gary

"buaadallas" <buaadallas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CE0BBBC3-58E4-4D5E-8B44-91EA3ED2C82B@xxxxxxxxxxxxxxxx
Hi Gary,

I have already got the updated FMD from you. Thanks a lot!
My nor flash starting address is 0xC8000000, and I set
"CodeSizeAtStart"=dword:00000000 and "CodeSizeAtEnd"=dword:1800000 to
mask
the Eboot and NK.bin resident in Nor Flash.
If I set "MemBase"=dword:C8000000 (which is the real starting address
of
Nor), Wince can only run in RAM, when I flash it to Nor, it can not
start
and
stops in init FMD, I don't know why. But when I set
"MemBase"=dword:C9400000
(this address skips the EBOOT and NK.bin space), Wince can start and I
can
see the NORFLASH folder in my Wince. But I can not format this space in
control panel/storage manager, and some time the executable files in
this
folder can not be executed, an error dialog appeared, I don't know why.
And I
tried to use HIVE register system in my Wince, and the system became
very
slow.

My register about this Nor flash is in my first post, my platform is
freescale i.mx21 ADS board. Thanks a lot!



"Gary Swalling" wrote:

Hi,
Did you get an updated FMD from me?
I don't think the FASL FMD that ships with CE supports the
CodeSizeAtEnd
registry key.
Is C9400000 the real starting address of the flash? The real starting
address should be used and the MemLen is ignored. The length of the
flash
is detected from CFI.

Regards,
Gary

"buaadallas" <buaadallas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:051EC2F7-F737-4603-BC26-42169CD3146F@xxxxxxxxxxxxxxxx
Hi,

I use Spansion Nor flash in my board. According to the service
support
of
Spansion, I use the driver locate in
:\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\BLOCK\MSFLASHFMD\FASL\FASLD,
and
set
the
register as below:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FASLD]
"Dll"="fasld.dll"
"Order"=dword:2
"Prefix"="DSK"
"Ioctl"=dword:4
"Profile"="MSFlash"
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
; "MemBase"=dword:C8000000
"MemBase"=dword:C9400000
"MemLen"=dword:200000
"CodeSizeAtStart"=dword:00000000
"CodeSizeAtEnd"=dword:1800000

; Override names in default profile
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"Name"="MSFLASH for FASL FLASH"
"Folder"="NORFlash"

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
"DriverPath"="Drivers\\BuiltIn\\FASLD"
; LoadFlags 0x01 == load synchronously
"LoadFlags"=dword:1
"Order"=dword:4



; Override names in default profile
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"BootPhase"=dword:0
"Name"="MSFLASH for SPANSION"
"Folder"="NORFlash"
"MountFlags"=dword:2
;"MountAsBootable"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
"FriendlyName"="FAT FileSystem"
"Dll"="fatfsd.dll"
;"Flags"=dword:00000024
"Paging"=dword:1
"CacheSize"=dword:0
"EnableCacheWarm"=dword:0
"EnableCache"=dword:1
"MountFlags"=dword:2

It can works, but some time the executable files in the NORFlash
folder
can
not be executed, and these folder also can not be formatted!
And I tried to use HIVE register, but failed.
Is anyone use these driver? Did you meet the same problem? Thanks a
lot!








.



Relevant Pages

  • using the executable itself for swapping
    ... P100 with 24 MB RAM starts up faster than it does on a Linux ... Another example where swapping on executables would be great ... root filesystem is commonly located in flash. ...
    (comp.os.linux.development.system)
  • Re: Is there anyone use Spansion Nor flash?
    ... You can check my register setting, I use FAT filesystem, and that's the ... I download a small movie to NORFLASH folder, and then upload it to my PC, ... executable files are hidden? ... It sounds like code is trying to execute from the flash when FMD_Init is ...
    (microsoft.public.windowsce.embedded)
  • Re: Is there anyone use Spansion Nor flash?
    ... I tested the NOR Flash folder, found that if the files stored in the folder ... Nor), Wince can only run in RAM, when I flash it to Nor, it can not start ... My register about this Nor flash is in my first post, ...
    (microsoft.public.windowsce.embedded)
  • Re: current working directory when uncompressed in XP
    ... > have a strange wsh problem. ... Note really specific to WSH - consider running other forms of executables in ... when you navigate into a .zip folder. ... file in a .zip folder seemed to extract the batch file to a folder created ...
    (microsoft.public.scripting.vbscript)
  • Re: IIS Configuration with VS2005 IDE
    ... Change the setting for this folder to Script only. ... > server extensions are installed. ... > I checked the defualt web and it was not set to scripts and executables. ...
    (microsoft.public.vsnet.ide)