Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Dec 2008 01:58 PM by  mikea@logicpd.com
How can I mount EEPROM from Win CE.
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
tim.wile@sensitech.com
New Member
New Member
Posts:


--
30 Oct 2008 01:54 AM
    Hi,

    I am using LogicPD PXA270 card engine.
    I am runing window ce on it.

    Initially, I load the NK.BIN file in EEPROM from bootloader "losh" console.

    Here is the commands that I used to load:

    losh> erase B10 B256 /dev/nand0

    losh> add-yaffs boot nand B10 B256

    losh> mount yaffs /boot

    losh> erase B267 B128 /dev/nand0

    losh> add-yaffs data nand B267 B128

    losh> mount yaffs /data

    losh> mount fatfs /cf

    losh> cp /cf/NK.BIN /boot/NK.BIN

    losh> config CREATE

    losh> echo "VOLOadd-yaffs boot nand B10 B256;
    mount yaffs /boot;
    add-yaffs data nand B267 B128;
    mount yaffs/data;
    load bin /boot/NK.BIN;
    exec rtc:rtc_pxa270:disp_num:0;exit;\n" /dev/config


    After that I would like to update the NK.BIN file in the EEPROM from Widnow CE that I am runing in the board.
    I think it should be possible to access EEPROM through the "yaffs" driver.
    I insatalled and added the "lpd_yaffs_pxa270_50_1_1_0" driver in window CE image.
    But I didn't find any sample code or document to access EEPROM from Window CE through "yaffs" driver.

    Can you please help me by sending any sample code or document or any suggestion?


    Regards,
    Tim
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    17 Dec 2008 01:58 PM
    Tim,
    The YAFFS driver for WinCE will create a folder on your device. The default name of this folder is YaffsPart1. There is a Windows CE driver document on the PXA270 download site, have you looked at this? http://www.logicpd.com/do...25/1003778_Rev_B.pdf

    The PXA270 Card Engine comes in two options, one with NOR Flash and one with NAND FLash. You need to be sure you use the NAND Flash YAFFS driver. (It specifically says 'NAND')

    Please read the readme for the driver and the .reg has some good comments on how to configure partitions. (If you are configuring your partitions as mentioned below, make sure you change the .reg file for the driver to match, otherwise it won't work and you could really mess up the NAND Flash)

    Also, just fyi, I'd suggest using 'NAND Flash' or 'Flash' instead of EEPROM, it is a little confusing since there is an actual EEPROM on the board.

    -Mike
    You are not authorized to post a reply.