Forum Discussion

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

booting with jtag uart console

Hi, I am really new in sopc builder and quartus, I have a bloc with (cpu, onchip memory, sys id, pio, onchip memory 2), I created a small code C in eclipse and I try to compile my nios 2 in modelsim, I load the project without any problem and I have the jtag uart console by typing jtag_uart_console but I dont have any thing there, and I don't know what write on the console to drive the nios 2.

please if someone can help me, I am really new in all this ...

pleaaaaaaaaase help

I am using quartus 10.1 and modelsim 6.6c

I tried to define the properties of psb.

Thank you :)

6 Replies

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

    Did you add the jtag uart component to your SOPC builder project? It isn't in the list.

    The standard C functions like printf() and scanf() can be used to interact with the console.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thank you for your replay, yes I have a jtag uart, and I am able to open the jtag_uart_drive console. but I don't know what write on the console and how can I know that I am executing the code.c writen in sopc builder.

    thank you again
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    if in your software you add printf() calls, it will display something in the nios console. For the other way round, what you have to type in the console really depends on your software.

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

    I want just to display the "hello word", I run the simulation for 800 us bu noting was displayed on my console :s

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

    may be the simulation takes more time than 800 us to enter to my main and do the printf "hello word"