cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F072RB interfacing with nrf24l01

Bs.1
Associate II

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);

 }

}

0 REPLIES 0