2024-04-16 03:57 AM
Hello Dear Friends,
I have successfully established communication between two nRF24L01 modules using a pair of STM32s, without enabling the SPI protocol's CRC feature in CubeMX. However, when I activate the CRC, I encounter issues and the communication is lost.
Could you advise me on how to resolve this issue?
2024-04-16 04:02 AM
@masoudjalali wrote:However, when I activate the CRC, I encounter issues and the communication is lost.
So what "issues", exactly, do you encounter?
What tests/investigations/debugging have you done to find out what's going on?
Is using the STM32's CRC compatible with the nRF24L01 ?
2024-04-16 04:12 AM
well the issue is ----> i can't transfer any data from first nRF to second nrf when I Enable the CRC of the SPI.
and about this question "Is using the STM32's CRC compatible with the nRF24L01" ..... i have no idea.
2024-04-16 04:37 AM - edited 2024-04-16 04:39 AM
@masoudjalali wrote:about this question "Is using the STM32's CRC compatible with the nRF24L01" ..... i have no idea.
then you need to confirm that! See the nRF datasheet, etc.
Presumably, you need to turn it off while communicating with the nRF itself - reading/writing registers?
And it will make a difference to the length of payload data that you send through the nRF
@masoudjalali wrote:well the issue is ----> i can't transfer any data from first nRF to second nrf when I Enable the CRC of the
So, again, what tests/investigations/debugging have you done to find out what's going on?
Have you looked at what's being sent on the SPI wires - is it still valid for the nRF?
2024-04-16 05:10 AM
Hi,
@masoudjalali , i think you mix up here something .
You cannot switch on SPI feature "CRC" , because the nRF24L01 dont have this .
The nRF24L01 has a option for CRC in its rf-packet-communication protocol , so you can use it, but you have to do exactly same setting in all nRF24L01 , that should communicate.
So dont use the SPI crc feature , it cannot work here.