- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Are there any further help needed from my end?
Thanks.
Regards,
Kelly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page