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 03 Jan 2006 10:26 AM by  Anonymous
Problems with NAND
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
aaronjstewart@gmail.com
New Member
New Member
Posts:


--
29 Dec 2005 02:26 PM
    We had some problems designing a system with boot from NAND flash as stated in your schematics that came in pdf format with LPD7A404-11.
    We are connecting as recommended in UserGuide LH7A404 from Sharp (page 83
    Fig.4-3) using Address line A20 as ALE, A21 as CLE, I/O0..I/O7 (data0,...,data7).
    The biggest problem arises when trying to connect NAND Flash Chip Enable:
    in your schematics you are using PC6 as Memory Bank Selector (logic implemented in CPLD with a couple of OR Gates and nWE and nRE lines) for accessing space in A20 and A21 space address, and for CE to the NAND flash chip.

    In Sharp's manual the CE of the NAND flash is routed to PC6 too, but the Memory Bank Selector is connected with a couple of OR Gates with nCS6 (the
    *real* chip select for this space addresses...) and nWE and nRE lines...

    Why are you using PC6 and *NOT* nCS6 in logic glue inside CPLD as stated in Sharp User Manual? Am I missing some errata from you or from sharp??
    kurtl@logicpd.com
    New Member
    New Member
    Posts:


    --
    29 Dec 2005 02:53 PM
    The diagram on our schematics is an error and doesn't correctly represent the CPLD implementation.
    Revsion 3.2 of the CPLD code OR's nCS6 with nRD and nWE0 signal to create NAND_nRE and NAND_nWE.

    PC6 is used in the CPLD only to prevent other CPLD interfaces from causing bus contention when nCS6 is asserted for NAND operations.

    The PC6 signal is used as the chip select by the boot ROM in Sharp implementations. The reason they use PC6 instead of nCS6 is because most standard NAND devices require the nCE signal be asserted for a long time during NAND address pointer changes inside the NAND device. If nCE is de-asserted during this time the NAND device goes to low power mode and cancels the address change transaction. If Sharp used nCS6 to drive nCE directly bus contention would occur during SDRAM refresh cycles as well as slow down the entire operation of all external memory bus accesses when the NAND address pointer would change. By using PC6 they can keep the nCE low on the NAND chip and use the nCS6 area with the OR gates to read and write to the NAND chip when necessary without causing bus contention. LogicPD uses the nCS6 area for memory mapped registers in the CPLD and the NAND chip.

    Sorry for the confusion.
    -Kurt
    eptar@eptar.com
    New Member
    New Member
    Posts:


    --
    02 Jan 2006 02:28 AM
    Thanks for clarification. Because we are designing a NAND Flash boot device, we will use nCS6 with nWE and nOE to drive nWE and nRE respectively in NAND Flash device, and PC6 as nCE in NAND Flash device as Sharp recommends in their manuals.
    ...now the only problem is writing a NAND Flash capable bootloader

    Kindest regards,
    Gianluca
    Anonymous
    Posts:


    --
    03 Jan 2006 10:26 AM
    Hi Gianluca,

    The source code for LogicLoader is available for purchase through product sales if you'd like a head start on developing your bootloader. If you're interested in pursuing this path you can reach sales at:

    product.sales@logicpd.com

    Please post back here if you have further questions.

    Thanks,
    You are not authorized to post a reply.