Skip to main content
Bs.1
Associate III
December 2, 2020
Question

STM32F072RB interfacing with nrf24l01

  • December 2, 2020
  • 0 replies
  • 675 views

I am using STM32F072RB and I have interfaced it with NRF24L01 module.

I have refer the library files attached below for nrf24l01 module.

I am trying to send string "Hello World" from one module to another. .Transmission found ok, but at receiving side I didn't get the result...

NRF24_available() result is not getting true...

Can anyone help me to get out of this stuff...

code flow as below :

NRF24_begin(GPIOA, CSN_Pin, CE_Pin, hspi1);

 nrf24_DebugUART_Init(huart1);

NRF24_setAutoAck(false);

 NRF24_setChannel(52);

 NRF24_setPayloadSize(32);

 NRF24_openReadingPipe(1, RxpipeAddrs);

 NRF24_startListening();

while (1)

 {

if(NRF24_available())

 {

 NRF24_read(myRxData, 32);

 myRxData[32] = '\r';myRxData[32+1] = '\n';

 HAL_UART_Transmit(&huart1, (uint8_t*)myRxData, 32+2, 50);

 }

}

This topic has been closed for replies.