This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530: CC2530 + CC2591 RX interrupt not working

Part Number: CC2530
Other Parts Discussed in Thread: CC2430, , CC2591

Hi all,

I am updating a project which was based on CC2430F256 and Basic RF (ligth_switch - sfr04_cc2430). I had a TX and RX devices and they work fine nowadays.

Now, I am developing the TX based on CC2530F128+CC2591 and Basic RF (ligth_switch - sfr05_cc2530_91) but the RX is still running into CC2430.

My app is just send a frame and waiting for the ACK from the RX and it is not received, the TX send again the frame few times after a random time (~5ms).

My problem is that once the TX send a frame from CC2530+CC2591, it is sent ok, then RX send the ACK but in the TX device the HAL_ISR_FUNCTION( rfIsr, RF_VECTOR ) is not called and the TX resend the frame always.

I have compared my Basic_rf.c/.h and hal_rf.c/.h files with the Basic_rf.c/.h and hal_rf.c/.h from "ligth_switch - sfr05_cc2530_91" and "ligth_switch - sfr04_cc2430" and they are equal.

Are the CC2430 and CC2530 ACK management compatibles? Any idea about this issue? can be linked the problem with the *.xcl files?

Thanks.

Joaquim.

  • Joaquim,

    This should work, have you checked that it works using SmartRF Studio and have checked that the TX frequency is correct on both boards (they should be within 40ppm).

    Regards,
    /TA
  • Hi TA,

    The frequency (channel 25) and PanId (0x1001) is the same on Tx and Rx.

    That is confusing me is if I use the CC2530F256 (256KB flash chip version) and I configure IAR options for this version according the "ligth_switch" configuration, the RX interrupt works fine and I receive the ACK notification. However, if I use the CC2530F128 (128KB flash chip version) with the same firmware, but changing the project configuration for this new flash memory, the RX interruption doesn't work. Even with IAR configured for CC2530F128, if I use in my hard the CC2530F256 SoC it works fine. At the begining I though that it was a hard problem (matching, open circuit, etc), but I have tested different pcb and all seems OK (I have tested antena and matching electrical paths, bom material, etc). In my opinion there is something wrong in the *xcl file or IAR configuration.

    Please, refer to the attached doc to see both configurations. I send you both xcl files also (rar file). The "lnk51ew_cc2530b.xcl" is the used by the "ligth_switch" example for CC2530F256 that works and "lnk51ew_cc2530F128.xcl" is the xcl that I configure for my SoC CC2530F128. I use IAR 10.2 version.

    My questions are:

    1. It is mandatory to work with 256KB flash memory? 

    2. Is correct the xcl for the F128 flash version? Is there any AN or doc about how configure xcl files, specifically for F128 version?

    3. Can you reviw the word with IAR configuration?Please, can you help me with this?

    Thank you.

    Joaquim.5305.CC2530 configuration.docx

    xcl.rar

  • Hi Joaquim,

    The experiments you describe in the last post, are they with CC2530 as both tx and rx, or is it when communicating between CC2430 and CC2530?

    As you know the CC2430 is not recommended for new designs. Do you require interoperability between the CC2430 and CC2530 for your project, or can you move completely to CC2530?

    1. It is not mandatory to work with 256 kB, 128 kB is also supported.
    2. Is this the default xcl file that came with the project, or have you modified it?


    Regards,
    Fredrik
  • Hi Fredik,

    I just have fixed the RX interrupt issue today... the problem was the Rbias for the CC2530, it was to low (4.3K) whereas it must be 56K... Now the RX INt works fine!!!

    I know that CC2430 is not recomended for new desings, this is why we are changing/updating our product. But the CC2530 devices must live together with old CC2430 devices.

    Both xcl are the default but depends on the project are different. My doubts with xcl file are how must configure it in order to allow CC2530 goes to sleep, if it uses Banked mode, etc. 

    Now we are using the 128K flash version, but in the near future we will move to 256K and I am not sure about how I must configure the project configuration and xcl to achieve the correct map memory and sleep performance.

    Did you see the attached files? are they Ok?

    Thanks.

  • Hi Joaquim,

    Good to hear that your problem is resolved. As long as you use the correct linker files for 128k and 256k everything should work ok.

    Cheers,
    Fredrik