Forum Discussion

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

printf problem in ubuntu

Hello,

I am facing with a problem when using eclipse-Nios2 on ubuntu. I have 10.1 version of nios2. even within the simplest hello world software i cannot get anything out of the "printf" function. I tried adding a line of "fflush(stdout);" after printf as suggested in some forums. But it didn't help.

Does anyone know what would be the problem and how to solve it?

By the way, I tried with alt_printf, alt_putstr and many others, none of them worked :(

1 Reply

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

    This forum is for running Linux on the Nios II, not for Nios II development on Linux. It sounds like you are using Atlera HAL and not Linux for Nios II, so you will probably get better answers in a different part of the forum.