Skip to main content
GSaw
Associate III
January 24, 2022
Question

I want to interface NRF24L01+ with STM32 G030C6. Which library out of all the libraries that are available is most reliable and can be scaled easily ? I've tried some, but they don't seem to be working and I'm not being able to debug. Please help.

  • January 24, 2022
  • 5 replies
  • 13238 views

I'm new to embedded programming and don't know how to deal with registers therefore I'm looking for a library that is readily available.

Thank you.

This topic has been closed for replies.

5 replies

NSing.5
Associate III
January 26, 2022

i've used "nrf24.c", you can get it from the Github.

i've used with limited success.

Best wishes.

NSing.5
Associate III
January 26, 2022

plz share your experience as i'm also working on it.

GSaw
GSawAuthor
Associate III
January 27, 2022

I've been trying to use https://github.com/MYaqoobEmbedded NRF24 tutorial. But it is not working as expected.

For how many stm32s have yo used the nrf24.c ?

NSing.5
Associate III
January 27, 2022

great to hear from your side. it means a brilliant mind is trying hard to beat odds.

"For how many stm32s have yo used the nrf24.c ?"

i'm using two stm32f030f4px. one for transmitter, other for receiver. trying to use library from

https://github.com/elmot/nrf24l01-lib/tree/master/demo-stm32l432-transmitter/Inc

in my case both transmitter and receiver, register are correctly configured.

Transmitter is transmitting as indicated by TX_DS.

but receiver is not receiving.

trying to troubleshoot.

Now i'm planning to use trying to use https://github.com/MYaqoobEmbedded.

bit it is showing some error related to sprintf.

exactly what is problem you are experiencing with https://github.com/MYaqoobEmbedded files.

GSaw
GSawAuthor
Associate III
January 28, 2022

I wish to implement the transceivers on more than 4 MCUs. I'm using STM32 G030C6T6.

For starters I'm trying to communicate between two MCUs only using the same https://github.com/MYaqoobEmbedded libraries.

Hopefully I've configured them correctly; the transmitter side is working when AutoAck is disabled (library has a function to enable or disable the AutoAck). But when AutoAck is true'ed it won't work.

The receiver side on the other hand is not receiving and transmitting garbage values on my UART console.

Previously I'd used https://github.com/controllerstech/NRF24L01 library for two way communication using two nucleos which did work but this library did not look scalable so I stopped using it.

But to debug (or trying to debug)  https://github.com/MYaqoobEmbedded I'm taking the reference from https://github.com/controllerstech/NRF24L01 .

I'm new to embedded so I don't understand much of the register parts or the pipes parts as well.

Please keep updated thank you.

NSing.5
Associate III
January 27, 2022

please share your updates

GSaw
GSawAuthor
Associate III
January 28, 2022

After comparing few functions from the above mentioned libraries I found them to be a little similar.

So I guess I'll try using https://github.com/controllerstech/NRF24L01 now and try to figure out the datapipes and stuff.

NSing.5
Associate III
January 28, 2022

I've tried https://github.com/MYaqoobEmbedded for transmitter side, the last day. The register status is OK as per datasheet (it appears to me). i'm not using USART console, instead i'm getting status of registers from nRF and observing it in debug mode.

But still i'm unable to receive on receiver end.

NSing.5
Associate III
January 29, 2022

its working finally.

The CE pin was wrongly assigned.

Plz update your status.

GSaw
GSawAuthor
Associate III
January 31, 2022

Sorry no updates for two days it was weekend.

I'll checkout the links you've sent.

There seem to be no issue in the NRF modules I had bought them from a local market.

No new updates from my side.

NSing.5
Associate III
January 31, 2022

i was little bit busy today, unable to check your message. just logged.

as i told you, its working now. i'm able to receive the data. its working perfectly.

Please check the following:

  1. The ic on the module, is it NRF24 or something else.
  2. the power supply to module.
  3. The status of CSN and CE (port status in debug mode).
  4. If above two steps are okay, use multimeter to observe status of CSN and CE on the module.

if convenient, you can call me at +919779379414.