Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

programming and working from non-cfi flash device

Altera_Forum
Honored Contributor II
932 Views

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

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
244 Views

Your question seems not to be clear.... 

Detail a bit more your problem and maybe people here could help you
0 Kudos
Altera_Forum
Honored Contributor II
244 Views

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
0 Kudos
Reply