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

How to use small driver of JTAG_UART

Altera_Forum
Honored Contributor II
2,013 Views

Dear All, 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

  &#9632; Specify the preprocessor option 

-DALTERA_AVALON_JTAG_UART_SMALL. You can use this option if 

you want the small, polled implementation of the JTAG UART 

driver, but you do not want to affect the drivers for other devices.[/b] 

--- Quote End ---  

 

 

I find the information above from Altera Embedded Peripherals Handbook.pdf--page68. 

But I don&#39;t know how to implement it. 

I have tried define ALTERA_AVALON_JTAG_UART_SMALL in project properties: 

C/C++ Build->Tool Settings->Nios II Compiler->Preprocessor->Defined Symbols  

But after recompiling project, I found that it didn&#39;t take effect. JTAG_UART still work in interrupt-driven way. Also I can step into altera_avalon_jtag_uart.c to prove that fast driver is in use. 

 

I do not want to affect the drivers for other devices when use small driver of JTAG_UART. So I need to use ALTERA_AVALON_JTAG_UART_SMALL symbol. 

 

Anyone help? 

David
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
712 Views

I have solved this issue. 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

I have tried define ALTERA_AVALON_JTAG_UART_SMALL in project properties: 

C/C++ Build->Tool Settings->Nios II Compiler->Preprocessor->Defined Symbols[/b] 

--- Quote End ---  

 

This operation should work on system library project but not on your application project. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/happy.gif
Altera_Forum
Honored Contributor II
712 Views

 

--- Quote Start ---  

originally posted by david_cai@Jul 13 2006, 08:13 AM 

i have solved this issue. 

<div class='quotetop'>quote  

--- quote end ---  

 

--- quote start ---  

i have tried define altera_avalon_jtag_uart_small in project properties: 

c/c++ build->tool settings->nios ii compiler->preprocessor->defined symbols 

--- Quote End ---  

 

This operation should work on system library project but not on your application project. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/happy.gif  

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

[/b] 

--- Quote End ---  

 

Hi David_Cai! 

Another way to define ALTERA_AVALON_JTAG_UART_SMALL in Nios IDE is checked box in "System Library Properties" -> Reduce device drivers 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
Reply