Welcome! Log In Create A New Profile


Maximum buffer size for UART

Posted by damato68 
Maximum buffer size for UART
December 05, 2012 01:40PM
I need to increase the uart buffer size that is 84bytes by default. What's the maximum size allowable ?
Many thanks for the support
Re: Maximum buffer size for UART
December 05, 2012 03:16PM
It was 255 because the buffer size was stored in 8 bits but it now should be any size, limited by the available space. It is alloceated at run time and also when using the comopen command from the spare heap, when you do 'sys' it gives the space available, the current release is by defult 920 bytes.
You have to specify a buffer size anyway when using the comopen command, the default 84 bytes is freed up and the new value specified in that command is used.
Sorry, you do not have permission to post/reply in this forum.