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

UART Buffer Length Issue

Altera_Forum
Honored Contributor II
953 Views

I am trying to change the UART buffer length from 64 bytes to a larger value to facilitate a message being received that is greater than 64 bytes. I cannot control the size of the message that is being sent to my system, so this is critical that I am able to change the size of the buffer. I located the# define in the altera_avalon_uart.h that defines the buffer size and I changed it to the desired length. Upon doing this, when messages were not being transmitted, my system entered the alt_irq_entry() function and never returned. If anyone knows what is going on here please help. Thanks!

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
257 Views

Did you rebuild the system library?

0 Kudos
Altera_Forum
Honored Contributor II
257 Views

Take good care that the buffer size should be a power of 2 (due to the algorithm used for indexing bytes in the buffers)

0 Kudos
Reply