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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

multiprocessor problem!!

Altera_Forum
Honored Contributor II
976 Views

I am trying to do two multiprocessor systems implenting two purpose individually: 

1) use mutex to access a shared resource 

2) use mailbox to communicate between processors 

 

I did 1) following the Altera document "Creating Multiprocessor NIOSII tutorial" and using the hello_world_multi.c as the program(which I think available on the net). The problem is: When I run it, I cann't get the 2 processors' outputs in one Terminal in NIOS IDE, only CPU1 continously prints out , no output of CPU2. But when I use DEBUG and control the excution of the two processors manually, then everything is ok as the tutorial shows. What's the problem? 

 

In 2) I made cpu1 post a mail, and I hope cpu2 can receive it by blocking(using pending method). But when I run the project, the cpu2 just blocks. If I use the DEBUG and control the excution, everything is OK, what's the problem? 

Why during RUN and DEBUG the result were so different? 

Thanks.
0 Kudos
0 Replies
Reply