Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

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.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.