Closed barafael closed 2 years ago
That definitely shouldn't be occurring. I don't have time today, I will take a look tomorrow.
I reproduced this on the JC2.
This is occurring on the calls to set_sleep
in the client. Now as for why... that is a good question.
https://github.com/newAM/stm32wl-lightswitch-demo/blob/8d7349317442c2504bac267d5b51477fe8649cac/client/src/main.rs#L88 https://github.com/newAM/stm32wl-lightswitch-demo/blob/8d7349317442c2504bac267d5b51477fe8649cac/client/src/main.rs#L131
I suspect polling for busy to clear may be invalid when entering sleep mode, and that this was always a problem, and was only exposed when the code around it changed the timing. More investigation needed.
That is definitely the case - busy idles high while the radio is in sleep mode.
I fixed this in the HAL and made a 0.2.1 release, this should be fixed now. Please let me know if you have any other problems!
Thanks for the bug report!
Thanks for fixing it so quickly! I'll check it out soon :)
works nicely :)
I have tried running this on JC1 nucleo variant. With unchanged code, the client outputs:
repeatedly.
When changing
RF_FREQ
toRfFreq::F868
, then running first> cargo run -p server -- --probe 002E001E3756501620303658 10.7s Fr 19 Nov 2021 14:38:54 CET
and then running: