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++
12608 Discussions

EPCS controller and multiple CPUs

Altera_Forum
Honored Contributor II
950 Views

Hello everybody! 

 

I´m started yet with my first NIOS project. Therefore I need two NIOS processors which have access to an flash. Is it generally possible to connect two NIOS with one ECPS controller? My task is to load the programm codes for both NIOS from the flash.  

 

Best regards.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
229 Views

You can do this, but you must be very careful about sharing the component between the 2 CPUs. If they both try to access the EPCS at the same time you'll get ugly results. You'd have to add a hardware mutex to control access to the chip, and probably modify the bootloader to use it. 

The default EPCS bootloader only supports one software image, placed right after the FPGA image. You'd have to modify it also to load another software image. 

 

Another solution would be to have only one CPU connected to the flash, and have it load the software for the second CPU.
0 Kudos
Reply