Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
778 Views

same printf routine for two different cores

Hey, I'm a student from University of Waterloo working on thread migration and stuff. I was just wondering if there's a way to have the same printf routine in assembly for two different cores. In a more simpler way, write a hello world program for a core and burn the elf file that it generates on to the other core and make it run. 

 

I would like to know if it can work provided the addresses to the jtag uarts from both the nios cores are the same.. I hope it makes sense.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
40 Views

As long as the two cores aren't trying to access the uart simultaneously and you don't use interrupts it should work. You should use a mutex between the two cores and use a driver that does polling instead of waiting for an interrupt.

Reply