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

nios appl programs

Altera_Forum
Honored Contributor II
1,180 Views

Hi 

 

Iam trying to control the UART , PIO(led's and seven seg disp) ,etc through c-application programs in the nios IDE. I have included the "excalibur.h" include file which contains inf about memory map of the peripherals , default functions ,etc. Now when iam trying to send any character using the function "nr_uart_txchar(int c, np_uart *)" it's showing an error as "undefined reference to nr_uart_txchar()" .This is the problem even with other functions like: "nr_delay()", "nr_uart_rxchar()",etc. None of the default functions are getting executed. But iam able to use the data structures like np_pio_data,etc and iam also able to set the direction and also interrupt priorities,etc .The problem comes only with the functions. 

 

 

Can someone help me out of this problem??????
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
288 Views

Your problem is that old Nios software does not work with the IDE. You have two choices: 

 

1. Migrate your software to the new interface - recommended 

2. There is a legacy mode included which does things the same way as Nios 1, however the same way means no IDE 

 

This is all explaine in application note an350.pdf
0 Kudos
Altera_Forum
Honored Contributor II
288 Views

Thank You the problem is solved

0 Kudos
Reply