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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

cal_uart(with fifo) + NIOSserial.c

Altera_Forum
Honored Contributor II
3,511 Views

As we know, we need uart with fifo to enchance the performance. So we got the cal_uart from Altera, which should tested by ourselves because it is not provided officially by altera. 

 

Now we use cal_uart with 16 byte rx_fifo, 16 byte tx_fifo. We hope the fifo is transparent to linux driver, so the linux driver is still NIOSserial.c, which we changed nothing. But we got : 

 

0. U-boot access the UART sucessful during rx, tx. We think U-boot using pool methed. Is it right? 

 

1. tx data is successful 

 

2. rx data is abnormal. After linux startup, linux will reboot immediately after we receive any data by cal_uart. 

 

3. We try to debug NIOSserial.c using printk . Is it right way to debug in UART driver? 

 

thank u in advance.
0 Kudos
23 Replies
Altera_Forum
Honored Contributor II
281 Views

 

--- Quote Start ---  

originally posted by mountain8848@Mar 1 2006, 01:27 AM 

we tested the cal_uart's irq signal is only active for 1 clock period so 

i changed  

<cal_uart>/uart_pm.pl[/b]:L1933:rx_char_ready   to  rx_not_empty 

in order to  

 

irq <= ... rx_not_empty ... 

 

then it worked well. 

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

--- Quote End ---  

[/b] 

--- Quote End ---  

 

 

Hi, 

 

I am trying to use cal_uart with uClinux.  

Tx works fine but linux crashes in Rx .... I tried to do the correction specified above ...but i could not find the file uart_pm.pl. 

But there is a file em_uart.pl ....is this the same file to do the correcton ? 

this is line 1933 from uart_pm.pl 

"(ie_rx_char_ready && rx_char_ready )", 

do i have to change both ie_rx_char_ready and rx_char_ready ? 

 

thanks in advance, 

 

Vishal
0 Kudos
Altera_Forum
Honored Contributor II
281 Views

Where do you get ahold of this updated UART?

0 Kudos
Altera_Forum
Honored Contributor II
281 Views

Thank you for all help

0 Kudos
Reply