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

Boot 2 CPUs form EPCS4

Altera_Forum
Honored Contributor II
1,022 Views

I have a Cyclone2 with a external Memory an a serial Flash(EPCS4) 

I have 2 CPUs(cpu0 and cpu1). Is it possible to boot cpu0 and cpu1 from EPCS4?? 

 

If yes: how do I have to programm my 2 *.elf to the EPCS? 

 

If not:  

 

1. Can I copy the firmware_cpu1 after cpu0 has boot to ram and start it in a easy way? 

 

2. I have space on my boar for a 2nd EPCS4. How can I put my 2nd EPCS4 in my SPOC and put the reset address to my 2nd EPCS? 

 

3. or...has somebody an other idee for boot my cpu1? (I can`t add a parallel Flash! ....no space on my board.) 

 

...thanks
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
324 Views

 

--- Quote Start ---  

originally posted by kistler@Aug 17 2006, 02:36 PM 

i have a cyclone2 with a external memory an a serial flash(epcs4) 

... 

copy the firmware_cpu1 after cpu0 has boot to ram and start it in a easy way? 

--- Quote End ---  

 

 

Do both CPUs share the same RAM?  

 

You could add a small onchip memory with reset code (embedded in the FPGA configuration) for CPU1 where it waits after reset in an endless loop until CPU0 has copied all code from EPCS to RAM for both CPUs and then changed some value in the onchip memory (or used a mutex or mailbox for signalling). But you probably have to modify the scripts for preparing the EPCS contents and bootloader code. 

 

Kolja
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

Hi people!! 

 

I have exactly the same problem!! 

 

I think that it's impossible to load two program code niosII with only one EPCS in 'automic' mode... 

 

So we will must to make something with the bootloader as you tell before... 

 

It's a good idea to load the first niosII and then that this one take the information for the second nios from EPCS and loads in ram... But it looks no easy!! 

 

Have somebody experience with this type of bootings??? 

 

Thank you!! 

 

Pixel
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

Hi!! 

 

Nowadays I am with the same problem.... 

 

I am fighting against multiprocessor system :-) with boot_hold_component.... I think that it is a good way in order to boot the second NIOSII ?? 

 

I have looked for in the forum if some body have work with this component but nothing about this!!!! 

 

Somebody can tell us if have work with this component??? 

 

Thank you!!!
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

Hi friends !!!! 

 

Finallyyyyyyyyy!!! I can boot several niosII only with only one EPCS !!!!! 

 

Really nice!!!
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

 

--- Quote Start ---  

originally posted by pixel@Sep 22 2006, 05:01 PM 

hi friends !!!! 

 

finallyyyyyyyyy!!! i can boot several niosii only with only one epcs !!!!! 

 

really nice!!! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18418) 

--- quote end ---  

 

--- Quote End ---  

 

 

Would you mind sharing what your solution was?
0 Kudos
Reply