somehow buffer_count[RxIrq] goes to negative at some point of running (after several hours), which causes MODSERIAL_RX_BUFFER_EMPTY macro to return false and MODSERIAL::readable() returns true.
In GETC.CPP file there is
GETC.CPP
buffer_count[RxIrq]--;
which is called if called MODSERIAL:: getcNb();
What could cause this? Should I make modifications to getc.cpp? If this not an issue, feel free to remove this but I would appreciate if you could help me in this issue! Thank you!
if (buffer_count[RxIrq]>0){
buffer_count[RxIrq]--;
}
Issue type: Defect
Severity: Default
Created 5 years, 4 months ago.Updated 5 years, 4 months ago.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.