https://github.com/xcore/sc_util/blob/c06706f4b71dfa966f4a5a4d0d76d7188214db3f/module_xfifo/src/xfifo.c#L6 This can cause an overflow if the size of the buffer is `[FIFO_OVERHEAD + FIFO_SIZE]` as per the `app_xfifo_example`. In order to prevent that, the above line should read `fifo[LEN_INDEX] = n+FIFO_START;`
sc_util/module_xfifo/src/xfifo.c
Line 6 in c06706f
This can cause an overflow if the size of the buffer is
[FIFO_OVERHEAD + FIFO_SIZE]as per theapp_xfifo_example.In order to prevent that, the above line should read
fifo[LEN_INDEX] = n+FIFO_START;