Altera_Forum
Honored Contributor
16 years agoTrouble with creating multiprocessor Nios II system with shared memory
Hello,
I have created a multiprocessor Nios II system with two cpus sharing on-chip memory to print to the console (JTAG UART). I used the Altera "Creating Multiprocessor Nios II Systems Tutorial" for reference. I also used the example application hello_world_multi.c that is used in this tutorial. I got it off the Altera website. It worked fine for a system with two CPUs, but it did not work when I tried it for three or four cpus. According to the tutorial, this application is expected to work for three (or more) CPUs. But when I tried that, only two of the CPUs print to the console while the other one/two are starved. It appears like the first two CPUs who get the mutex, get it always and the other(s) is/are starved. Since this application is expected to work for three CPUs, I don't see why this should happen. I am using the Altera DE2 board, Quartus II 8.0 and Nios II IDE 8.0. My SOPC system has three CPUs, a mutex core and a shared memory component. I would appreciate any help/insight with this. Thanks.