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++
12608 Discussions

JTAG_UART recognize for no terminal NIOS 2

Bar
Novice
815 Views

Hi.

I have a problem when JTAG_UART is the default printf and no terminal is open.

I want to recognize the  state and block the prints from going out.

As I understand the ALTERA_AVALON_JTAG_UART driver has a dedicate flages that detect those situation (No terminal is open) . If so what is the name of the relevant REG and flag?

How can I use this flag (is there an API to check its state from all parts of the SW?

If I want to block the string from going out in this situation (no terminal open) what is the best way to do it (I don't want to make any change in the altera_avalon_jtag_uart files) from the  application level where it call to the prinft?

Thanks.

Bar.

0 Kudos
8 Replies
KellyJialin_Goh
Employee
785 Views

Hi,

Greetings and welcome to Intel's Forum.

You may have a look at these links for your reference:

1) Flag Variables: https://www.intel.com/content/www/us/en/docs/programmable/683282/current/standard-build-flag-variables.html


2)Guideline to develop Nios II HAL: https://www.intel.com/content/www/us/en/docs/programmable/683146/current/prerequisites-for-hal-device-driver.html


Thank you.


Regards,

Kelly, Jialin




0 Kudos
Bar
Novice
776 Views

HI Kelly.

Thanks for your replay.

I was talking about flags of the jtag uart reg in the SW. Not about FLAGS of project config.

Specific flages that set when ever there is no HOST port connect ( or open) on the JTAG UART on the PC side.

Regards

Bar.

0 Kudos
KellyJialin_Goh
Employee
758 Views

Hi,

You may try to disable the SEMIHOSTING flag during compiling to stop the output to JTAG_UART.


Here are some additional information for your reference: https://www.intel.com/content/www/us/en/docs/programmable/683126/21-2/enabling-uart-or-semihosting-printout.html


Thank you.

Regards,

Kelly


0 Kudos
Bar
Novice
734 Views

Hello Kelly.

I look into that flag.

What I found is as follow:

1. I only have ALT_SEMIHOSTING opption and it is not define right now at my code.

2. The link you send me is for the older version of Nios 2 which has spi tab. I don't have this option so I don't know how can I active/ disactive SEMIHOSTING. How do I do it on Nios || 18.1?

Regards

Bar.

 

0 Kudos
KellyJialin_Goh
Employee
713 Views

Hi,

This feature has been discontinued with the Quartus version you are using.


However you may try to use NIOS II booting methods with different flashes based on your needs: https://www.intel.com/content/www/us/en/docs/programmable/683820/current/nios-ii-processor-booting-methods.html


Thank you.


Regards,

Kelly



0 Kudos
Bar
Novice
703 Views

Hello Kelly.

Thanks for the informantion , but I don't see how the booting process relate to a methode I want to find to element the use of the JTAG_UART.

Regards

Bar.

0 Kudos
KellyJialin_Goh
Employee
693 Views

Hi,

Are there any further help needed from my end?


Thanks.


Regards,

Kelly


0 Kudos
KellyJialin_Goh
Employee
647 Views

Hi,

I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


Thank you.


Regards,

Kelly Jialin, GOH


0 Kudos
Reply