Forum Discussion

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

I can't printf

I&#39;ve implemented a simple system with SOPC builder consisting of cpu, onchip memory, jtag_uart and some pios. With this system I can&#39;t run simple code like template:# include <stdio.h>

int main(){

printf("Hello from Nios II!\n");

return 0;}

I&#39;ve set syslib properties-program memory to onchip memory and stds to jtag_uart. I&#39;ve tried also small C library but still it doesn&#39;t work.

If you guess some reason, please give me some tips.

1 Reply

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

    --- Quote Start ---

    originally posted by sirga@Nov 24 2005, 10:24 AM

    i&#39;ve implemented a simple system with sopc builder consisting of cpu, onchip memory, jtag_uart and some pios. with this system i can&#39;t run simple code like template:# include <stdio.h>

    int main(){

    printf("hello from nios ii!\n");

    return 0;}

    i&#39;ve set syslib properties-program memory to onchip memory and stds to jtag_uart. i&#39;ve tried also small c library but still it doesn&#39;t work.

    if you guess some reason, please give me some tips.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=11138)

    --- quote end ---

    --- Quote End ---

    Look at the Reducing Code Footprint section in Chapter 4 of the Nios II Software Developer&#39;s Handbook. You should be able to get the example above below 4k