Forum Discussion

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

programming and working from non-cfi flash device

how to make non-cfi flash device to work with NiosII core?

2 Replies

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

    Your question seems not to be clear....

    Detail a bit more your problem and maybe people here could help you
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It's not clear what you mean, but it's possible we have solved a somewhat similar problem. We use a CFI complient Flash, but the Bus it is connected to on the FPGA is shared and has external bus masters. Therefore we have to request the bus before we can access flash and are not able to use the standard Avalon Tri State Bridge.

    We had to write our own Flash SOPC Component to handle requesting the bus and with that are able to read/write/boot OS the Flash from the NIOS without any problems. We do get a SOPC warning that the reset address points to volatile memory as the SOPC tool does not recognize this as flash. We can also access the flash from our external bus masters as well.

    However, we found that the nios2-flash-programmer does not work with this FPGA image. As a result we created a special Flash Burn FPGA image which disables all external masters and connects the Flash through the Avalon TriState Bridge. With this FPGA image nios2-flash-programmer works fine.

    It's possible that you may need to do something similar.

    Stefan