This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF240L01 with STM8L051F3

Hi, I am looking for procedure to make it work nRF240L01? I am getting documents for Arduino but as you know that is not understandable, with Arduino it worked but i don't understood. Now i want to make it work with STM8L051F3. STM8L051F3 is 8 bit ultra low power controller. I am looking for procedure like what steps i have to follow so i can send data to another nRF240L01. Which commands i have to send. I want to transmit data after every 1 sec and then it will go in power down. Receiver will be always in receiver mode.

Parents
  • Thank yo very much for your reply

    I will do exactly as the example you sent an inform results in about 2 days

    I have well tested the SPI comunications , working OK

    ---------------------------------------------------------------

    Level compatibility with 5VuP VCC.

     I have measured  CE  CSN  MOSI  and they are OK about input levels for uP   Vcc = 5V)

    MISO output with 4K7  resistor to +5V  also has complete 0 an 5V range.

    For  IRQ  similar resistor to +5V has no effect. I didn't find this information in data sheet

    If uP has some problem with 3.3V as high level, I can reduce the Vcc supply to about 4V or add a small mosfet transistor as inverter (modifying as needed IRQ polarity definition)

    Regards, Osvaldo

  • Hi Osvaldo

    Sorry for the slow response, I was out in Easter vacation until today. 

    Are you still having issues with this? 

    The nRF24L01+ will only work in the 1.9-3.6V range, and it is important that you keep the supply and the interface signals within this range. 

    If you are unable to use an MCU that supports this level you will need some kind of level shifters on the signals, and a separate regulator for the nRF device to provide the supply voltage. 

    Best regards
    Torbjørn

  • Hi Nigel,

     

    PulseView is not a problem.

    VE3ID said:
    I tried to upload the srzip output in case you can read it, but it would not let me

    Unfortunately, the web engine is a bit restrictive in terms of file extensions. If you archive the file (tar, gz, bz, zip, rar, etc), you should be able to select and upload your file.

     

    Kind regards,

    Håkon

  • Hi,

     

    Thank you for the traces.

    It seems that the device reports back "0x0F" on MISO to each command (0xFF / 0x07), and this does not change throughout the trace itself.

    The CE pin is set high before the payload is uploaded, which is fine, but has its drawbacks, as CSN is also never set high (ie. idle) between each poll. Try setting the CSN pin idle between each poll.

    This is required when CE=1, as shown in the ps chapter 6.1.6:

    If CE is held high all TX FIFOs are emptied and all necessary ACK and possible retransmits are carried out. The transmission continues as long as the TX FIFO is refilled. If the TX FIFO is empty when
    the CE is still high, nRF24L01+ enters standby-II mode. In this mode the transmission of a packet is
    started as soon as the CSN is set high after an upload (UL) of a packet to TX FIFO.

     

    What is a bit strange here is that you upload one payload, but the STATUS register returns 0x0F for the remainder of the period, indicating that the TX_FIFO is filled up. Was there any payloads uploaded prior to this trace?

     

    Kind regards,

    Håkon

  • Tusen takk, Håkon,

    That has fixed that problem.  Now I just have to undo all the changes I made in troubleshooting and trying to fix that myself!  To be honest, I have great difficulty reading the state diagram (my eyes are 71 years old :-) with very faint graphics on white background.  Perhaps you have another hi-res copy that is not embedded in another document to send me to avoid me leaning on you for your kind advice :-)

  • What is a bit strange here is that you upload one payload, but the STATUS register returns 0x0F for the remainder of the period, indicating that the TX_FIFO is filled up. Was there any payloads uploaded prior to this trace?

    Yes, that is a problem I am also seeing.  My packet sniffer says the packets are going out on the air, but after three transmit sessions I can send no more, indicating that they are not being cleared, despite sending the clear code for RX and TX! After making the changes to CSN I am now getting a status of 0x01 which confirms that.

Reply
  • What is a bit strange here is that you upload one payload, but the STATUS register returns 0x0F for the remainder of the period, indicating that the TX_FIFO is filled up. Was there any payloads uploaded prior to this trace?

    Yes, that is a problem I am also seeing.  My packet sniffer says the packets are going out on the air, but after three transmit sessions I can send no more, indicating that they are not being cleared, despite sending the clear code for RX and TX! After making the changes to CSN I am now getting a status of 0x01 which confirms that.

Children
  • Hi Nigel,

     

    VE3ID said:
    That has fixed that problem.  Now I just have to undo all the changes I made in troubleshooting and trying to fix that myself! 

    That is great news! I am so glad to hear that you've found a solution!

    VE3ID said:
    To be honest, I have great difficulty reading the state diagram (my eyes are 71 years old :-) with very faint graphics on white background.  Perhaps you have another hi-res copy that is not embedded in another document to send me to avoid me leaning on you for your kind advice :-)

    My apologies for only sharing a picture. I agree that a white background is not easy on the eyes, especially since computer screens are so bright.

    Here is the link to the .pdf, which you can store locally:

    https://docs.nordicsemi.com/bundle/nRF24L01P_PS_v1.0/resource/nRF24L01P_PS_v1.0.pdf

    This includes vectorised graphics, so you should be able to zoom without any reduction in quality.

    The diagram which I previously shared is on page 35 of this document.

    VE3ID said:
    Yes, that is a problem I am also seeing.  My packet sniffer says the packets are going out on the air, but after three transmit sessions I can send no more, indicating that they are not being cleared, despite sending the clear code for RX and TX! After making the changes to CSN I am now getting a status of 0x01 which confirms that.

    This is good to hear! There are several notes in the datasheet that is easy to miss, but having worked with this device for years-and-years, we at support know most of its caveats :-)

     

    Let me know if you run into any issues or have questions, Nigel. I wish you a wonderful weekend!

     

    Kind regards,

    Håkon

Related