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 29 Mar 2006 07:35 AM by  tlucas
Problem Writing to Flash
 5 Replies
Sort:
You are not authorized to post a reply.
Author Messages
tlucas
New Member
New Member
Posts:


--
27 Mar 2006 06:33 AM
    I am struggling with a driver to write to the flash (no Lolo involvement) which does not seem to be co-operating.

    When I send a Common Flash Interface Query then I get the QRY string back so I have communication at at least a basic level.

    When sending an unlock command for both banks then the returned status word indicates that it was a success. Blanking sectors returns a success in the status word but writing words does not.

    However, when I examine the flash I find that nothing has been written and no sectors have been erased. I believe I'm using the VPEN correctly and I shall have a look with a scope to make sure (although those pins are a bit fine pitched for my pudgy scope probe!)

    Has anyone else had any success with this?
    tlucas
    New Member
    New Member
    Posts:


    --
    28 Mar 2006 02:05 AM
    Having done a little further testing I now find that, when I set VPEN in the CPLD register, then the VPEN bit only pulses high for ~200ns. How do I get it to stay high?
    tlucas
    New Member
    New Member
    Posts:


    --
    28 Mar 2006 02:20 AM
    Partial Fix:

    I was doing an int write to the CPLD register when it should have been a char. Still doesn't program though.
    Anonymous
    Posts:


    --
    28 Mar 2006 04:24 PM
    Tom,

    Are you able to write to flash using LogicLoader?

    Thanks,
    tlucas
    New Member
    New Member
    Posts:


    --
    29 Mar 2006 01:10 AM
    Logic loader does write to the flash and various other debuggers and flash loaders (mainly from Segger and IAR) have worked. The hardware definitely works but the erases and writes just don't seem to stick.

    I've probed various signals and they all seem to be going up and down correctly and I've tried taking some code out of existing flash loader software which should work but isn't.
    tlucas
    New Member
    New Member
    Posts:


    --
    29 Mar 2006 07:35 AM
    I have now found a workaround to get the falsh working. Instead of writing a read status word request and reading until the state machine finish bit is set, I now monitor the STS line via the CPLD.

    I still don't know why the status word never returns a success when it clearly was.
    You are not authorized to post a reply.