Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Flash programmer failure with Numonyx CFI FLASH

Hello,

We are trying to program a CFI Flash (Numonyx TE28F320J3D75) using the flash programmer.

We followed the instructions given in the User's Guide, and the programmer is reading the CFI table correctly, but when it comes to actual programming, it stops at 0%, with the following message :

Program failed

Error code : 4 in .....nios2flashprogrammer.exe ....

In parallel, we have been running read and write tests on the flash and they are passing.

Thus we suspect that something is wrong with the flash programmer... would you have any idea of what we need to check and what we can do to have a bit more visibility of what's going on within this soft ?

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have a problem similar with you! Have you ever solved the problem and how do you solved it? Thanks for your reply!

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    Actually we have never been able to solve the issue :(

    Altera promised to us they would have a new version of the flash programmer that would allow accessing our flash (which was quoted as officially supported in the CFI flash interface user's guide), but we have never been able to access it !

    If you find a solution we would be very interested.

    Regards,

    Pascal.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It took me several weeks when I finally got to the solution of this. You should follow the instructions to use an override file in the nios2-flash-programmer documentation. Create a text file that has the following text:

    [FLASH-89-7E] # Keyword FLASH, followed my mfg ID and device ID

    # This value was found by doing nios2-flash-programmer --debug

    CFI[0x23] = 0x03# Allow timeout of 8 times for writes

    CFI[0x24] = 0x05# Allow timeout of 32 times for buffered writes

    CFI[0x25] = 0x03# Allow timeout of 8 for block erase

    CFI[0x2A] = 0x06# Set flash to have only 6 bytes in multi-byte writ

    Then, give it a file name and you need to add the following switch when you use the nios2-flash-programmer command:

    --override=[filename.txt]

    I authored this override file and I got past my Numonyx flashing issue on at least 2 different circuit boards. There must be an issue with the way Numonyx vs Altera interprets the information in the CFI table of the FLASH as far as how to program the FLASH. But when I modified these 4 parameters, the flash programmer worked. Hope it works for you!.

    --- Quote Start ---

    Hello,

    Actually we have never been able to solve the issue :(

    Altera promised to us they would have a new version of the flash programmer that would allow accessing our flash (which was quoted as officially supported in the CFI flash interface user's guide), but we have never been able to access it !

    If you find a solution we would be very interested.

    Regards,

    Pascal.

    --- Quote End ---

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks to ravi.bhavsar@ge.com.

    I have solved my problem similar to polive using this method.

    But the parameters are a little different from ravi's post.

    Again, thank you very much!

    [FLASH-0089-0018]

    CFI[0x23] = 0x04

    CFI[0x24] = 0x06

    CFI[0x25] = 0x04

    CFI[0x2A] = 0x06