Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12698 Discussions

DE10 Lite NIOS V jtag-terminal problem

ETang2
Beginner
552 Views

Hello, i implement a NIOS V processor in a DE10 Lite board. I program it using Ashling Riscfree. In this program i have a count value printed in the terminal each 0.5 s. All works fine except that in the jtag-terminal the values are not printed in "real time" but by packet of 32 values (each 32 values i insert a \n).

Any idea why the values are not print in real time ?

Thanks

Eric

0 Kudos
11 Replies
JingyangTeh
Employee
476 Views

Hi


For the printout in the jtag uart, is the logs appearing all at once?

What is the behavior of the printout? Is the printout constantly printout at a different interval than 0.5?


Regards

Jingyang, Teh


0 Kudos
ETang2
Beginner
463 Views

Hi, i'm not sure what you mean by the logs.

The printout seems to be line by line (32 hex values) whereas in the program the printout is value by value. The value printedout seems to be many seconds late (the values are printedout both in the jtag-terminal and in the seven_segment display of the DE10).

If i use the same program running in a NIOS II, the values are printedout one by one at the same time than the seven_segment display.

 

Regards

Eric

0 Kudos
JingyangTeh
Employee
375 Views

Hi


Could you share your Quartus project, BSP setting and your c code?

Did you selected the correct clock frequency for your design?


Regards

Jingyang, Teh



0 Kudos
ETang2
Beginner
363 Views

Hi 

I'm not sure what you mean by "correct clock frequency for your design". I select 50MHz as it is the DE10Lite clock frequency.

Please find attached the zip directory of the project.

Regards

Eric

(Virus scan in progress ...)
0 Kudos
JingyangTeh
Employee
253 Views

Hi


Apologies for the late reply.

I have miss out this issue from my list.

From the look sof the BSP and the method you are printing it seems like it should print correctly.

Is there a screenshot of the printout issue that you are mentioning?


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
214 Views

HI


Do you have an update on this?

You mentioned that the printout is a bit delay, could you check in the BSP Setting the memory region for the JTAG UART is it defined as a Peripheral Region? If not could you change it to a Peripheral Region.


Regards

Jingyang, Teh


0 Kudos
ETang2
Beginner
202 Views

Hi, i was out of the office. I answer this week...

Regards

Eric

0 Kudos
ETang2
Beginner
169 Views

Hi thanks for the answers. I'm not sure to understand what you mean about the memory region for the JTAG UART.

In the NiosII project (see NiosII.mp4), the hex car are displayed on by one whereas in the NiosV project (see NiosV.mp4) the hax car are displayed line by line with the same program.

I can't figure out why ...

Regards

Eric

0 Kudos
JingyangTeh
Employee
79 Views

Hi


Thanks for the video on the printout.

It seems strange that the NiosV is printing the values line by line.

Which Quartus Version that you are using?

Let me try to run a simple NiosV print out to see if this is happening on my end.


Regards

Jingyang, Teh


0 Kudos
ETang2
Beginner
55 Views

Hi, i'm using Quartus Prime 23.1std build 993.

Regards

Eric

0 Kudos
JingyangTeh
Employee
26 Views

Hi

 

Thanks for confirming.

I tried it on Quartus 24.3 and found the same behavior too.

However I tried it in Quartus 25.1 and it is solved.

For Quartus 25.1 they have added an option on the printout behavior. (by new character or by new line)

2025-04-16_10h44_10.png

 

Is it okay if you migrate your design to Quartus 25.1std?

If not , is this behavior acceptable? Since the end result printout is the same.

 

Regards

Jingyang, Teh

 

 

 

0 Kudos
Reply