nrf-hal icon indicating copy to clipboard operation
nrf-hal copied to clipboard

Radio on nRF52832

Open arnobert opened this issue 1 year ago • 7 comments

Hello,

I would like to use the radio peripheral on the nRF52 DK board, just like on the nRF52840 dongle, but the lib is not available, yet. Is there any special reason for that?

Thank you!

arnobert avatar Jul 26 '24 08:07 arnobert

Can Embassy's nrf-softdevice work for you here?

BartMassey avatar Jul 26 '24 15:07 BartMassey

I am using RTIC and would prefer to use the HAL, just like on the 52840.

arnobert avatar Jul 27 '24 15:07 arnobert

Sorry, I'm new to this. Perhaps @Dirbaio would be able to help? You might also want to try on #rust-embedded:matrix.org for someone more knowledgeable than I.

In the meantime, can you point me to example code for using nRF Softdevice with embedded-hal on the 52840? I'm curious.

BartMassey avatar Jul 27 '24 19:07 BartMassey

There's examples here, both for nrf52840 and nrf52832.

I am using RTIC and would prefer to use the HAL, just like on the 52840.

both nrf52840-hal and embassy-nrf are HALs, you can use one or the other with RTIC. There's an example for it.

Dirbaio avatar Jul 27 '24 19:07 Dirbaio

@Dirbaio thanks!

@arnobert is there code somewhere for using nRF SoftDevice with nrf52840-hal? I couldn't find any.

BartMassey avatar Jul 27 '24 21:07 BartMassey

@BartMassey I don't know. I simply used: https://github.com/nrf-rs/nrf-hal/blob/master/nrf-hal-common/src/ieee802154.rs

arnobert avatar Jul 28 '24 08:07 arnobert

@Dirbaio thanks!

@arnobert is there code somewhere for using nRF SoftDevice with nrf52840-hal? I couldn't find any.

Hi, a late reply, but yes, I have finally managed to put a demo on git:

https://gitlab.com/DL2SSB/nrf_radio/

Would be great, if that worked with the nrf52832 as well! Cheers!

arnobert avatar Feb 10 '25 10:02 arnobert

Apologies in turn for the very late reply. What exactly is nrf52832-hal missing to work here? We can try to add it.

BartMassey avatar Oct 11 '25 23:10 BartMassey

The HAL for the radio works on the nrf52840 (hal::ieee802154::Radio), but on the nrf52832 it seems to be missing.

Thank you!

arnobert avatar Oct 12 '25 11:10 arnobert