The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents:
hello
SerialTestv11
SerialTestv12
Sierpinski
... more
2 comments:
You could try disabling interrupts during the buffer-read section of your code to prevent the ISR from corrupting the read operation.
You could also try atomically reading the data from the circular buffer to a secondary buffer before operating to reduce the time spent between the first and last read operations as well as mitigating the risk of an interrupt during the data transfer from the circular buffer to your secondary buffer.
geoffreymbrown
#
07 May 2015
I don't want to be rude, but I know how to work around this and furthermore, I know how to fix the bug; however, the point of my post is that this is a bug in the core library and should be addressed by the library maintainers.
You could try disabling interrupts during the buffer-read section of your code to prevent the ISR from corrupting the read operation.
You could also try atomically reading the data from the circular buffer to a secondary buffer before operating to reduce the time spent between the first and last read operations as well as mitigating the risk of an interrupt during the data transfer from the circular buffer to your secondary buffer.