Re: msflash (fal) library in XIP mode on WindowsCE 5.0?



Thanks for your reply but not yet completely the answer I'm looking for.



When you look at the wince6.0 FAL library. It can instantiate a XipFal or
FileSysFal object. The decision which mode is based on settings passed by
the FMD library.

My FMD in based on the code from the mainstoneIII BSP. This FMD has the
wince 6.0 (wm 5.0) interface. I changed the interface to be compatible with
wince 5.0.

With this driver I don't get BINFS working.

Because I don't have the code of the wince 5.0 FAL library I don't know if
this library has the same Xip/FileSys architecture and on what data either
of the modes are selected.

It is possible that in changing my FMD interface I made a mistake and not
correctly notify the FAL that the driver should be in XIP mode.



By the way we are using NOR (p30) flash. I'm trying to get BINFS working to
store some large readonly files, and for example some application modules
that I rarely use. In the latter case I don't mind that the applications
don't XIP in flash but are paged into memory.


Kind Regards

Bonne Zwaga





"Silver" <moc.liamtoh@gnirrevliseht> wrote in message
news:eJFhnHgYIHA.3696@xxxxxxxxxxxxxxxxxxxxxxx
The FAL doesn't care what is being done with the data it retrieves. For
XIP to work flash region will not be managed by the FAL, it will be
exposed to the OS as a flat binary region. It will not be formatted as
BINFS either.

Note that XIP and paging are not the same thing. If you have a NAND flash
then you can page sections of flash into RAM for execution - you can do
this with NOR as well but it is not XIP in that case. BINFS is the file
system used to do this.

eXecute In Place - XIP - is where the CPU directly fetches instruction and
data from the flash without putting it in RAM first.

Geoff
--



.



Relevant Pages

  • Re: How to upgrade flash memory under the control of WinCE?
    ... IPSM can write to the same chip that the OS normally XIPs out of. ... ensure there are no interrupts or exceptions that vector back into flash. ... > chip that is not marked as XIP. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: What File System supports Application XIP
    ... > You won't gain at runtime by using XIP though. ... I thought that when you XIPed from flash, ... directly back to the flash memory address. ... There shouldn't be a RAM ...
    (Linux-Kernel)
  • Re: [PATCH 2.6.21] cramfs: add cramfs Linear XIP
    ... With the filemap_xip.c helpers adding xip support to any filesystem ... I'll try to hack up an xip prototype for jffs2 next week. ... XIP is basically limited to NOR flash. ... before writing and have the flash chip return to read_array mode before ...
    (Linux-Kernel)
  • Re: paired/unpaired Flash components and FMD
    ... I have an updated FMD that I can provide. ... devices using NOR Flash with 2 paired chips. ... RD_FLASH_REG macros in the driver for unpaired chips (or that I'm ...
    (microsoft.public.windowsce.platbuilder)
  • FMD and TFAT
    ... I realized a Flash Media Driver (FMD) for a NOR Flash under WinCE 5.0, ... was working fine, the WinCE toolkit said "all is OK", even with the TFAT file ... Near 3000 writing ...
    (microsoft.public.windowsce.embedded)