Hello,
I'm am trying to use k_fifo_alloc_put and k_fifo get to add a then read data from queue (IoMonitorMessage custom object). However, when I add 2 objects to the queue and then attempt to read out it just repeats the second object twice and so on /so forth for more objects. It appears to be deleting the objects because after 2 iterations of reading the queue is empty, but I don't know why it's reading the last entry first and then again (or deleting the first entry).
Here is an image where a put data in the queue:
Here is where I get from the queue:
I'm pretty sure that f_fifo_alloc_put handles the memory so I don't think I need k_free. I gave it a try anyway and it gave a bus fault. Any help is appreciated! I'm using toolchain v2.6.1 if that matters