cancel
Showing results for 
Search instead for 
Did you mean: 

CRC reception error in FSK reception on nucleo WL55JC1 when payload length changes

roberto-chiarini
Associate II

Hello community,

I've developing a set of products based on MCU STM32WLE5.

The devices communicates using FSK modulation and a variable payload.

To test the system I've bought two NUCLEO WL55JC1 and modifying the PER examples I've prepared two project, one for the master and one for the slave. Each device transmit and reply.

What I've seen is that when I press the button and change the payload length, the transmission seems to be ok, but the reception fails with a CRC error, as it would expect a message with a length equals to the transmitted message. The next messages then are transmitted and received without any error.

I attach the screenshot of serial logs and the two projects:

  • Screenshot 2024-04-23 103703.png: screenshot of serial logs (master on the left, slave on the right);
  • SubGHz_Phy_Per_Master.7z: compressed project of master device;
  • SubGHz_Phy_Per_Slave.7z: compressed project of slave device.

I cannot understand what is wrong in my projects.

Any help would be appreciated.

Thanks

Roberto

4 REPLIES 4
roberto-chiarini
Associate II

I attached two more screenshots:

  • Screenshot 2024-04-23 103647.png: full screenshot of serial logs when error occurs (master on the left, slave on the right);
  • Screenshot 2024-04-23 103425.png: full screenshot of serial logs when communication is ok (master on the left, slave on the right).

Hello @roberto-chiarini 

I've reported this internally to the Concerned team for deeper analyze of this behavior (under internal ticket number 182942).

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Code_Blue_117
Associate

Was this issue ever resolved? I have the same problem.  Some resources would be helpful. Thanks.

STTwo-32
ST Employee

Hello @roberto-chiarini 

when switching from Rx to Tx or viceversa, a SetTxConfig() or SetRxConfig() is needed in order to have the right registers configuration. So, run the Radio.RadioSetTxGenericConfig() before the Radio.Send() and the Radio.RadioSetRxGenericConfig() before the Radio.Rx() if the radio was in RX or TX state respectively. 

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.