simulink rf24 using spi write read block, data is read randomly, esp32wroom 38 pin module

2 views (last 30 days)
I am trying to create a receiver code for nrf24l01 module with esp32-wroom(38 pins), my current issue is that the data is read randomly as in the indicator for data being available in the rx_fifo is spiking randomly, and that is what i use for entering the reading loop, the scope for the indicator flag is shown in the screenshot below:
as you can see the initial rise is due to the rx_fifo being flushed, so the 1 value indicates that rx_fifo is empty and when it spiked to 0 at 30 seconds it showed that the rx_fifo is no longer empty which then causes the code to enter the reading subsystem which after reading shows that the rx_fifo is empty again as the data inside it has been read.
this action shouldn't be happening randomly but rather should be happening constantly as the transimitter is constantly sending data, I'm sure i did all configurations correctly but can't seem to figure out why this is happening, any help is appreciated

Answers (0)

Categories

Find more on Applications in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!