3 Replies Latest reply on Jun 26, 2018 11:27 PM by Gyan Chand

    BLE_FindMe example using long range module CYBLE-202007-01

    zaborpila_2607831

      Hello,

       

      I have been trying to make the BLE_FindMe01 example work using a CYBLE-202007 (connected to the KIT CY8CKIT-042-BLE for programming) but I am not able to see its advertisement, no matter what I use to scan (the BLE Dongle that came with the CY8CKIT-042-BLE, other Cypress modules, ...).

      I am using PSoC Creator 4.2. I downloaded the BLE_FindMe example using it.

      I made the following changes/additions to the original code:

       

      • Set device to 202007-01
      • Set Adv/Scan Tx power and Connection Tx power to -12 dBm

       

      • In main.c:

           /* Enable CYBLE-202007-01 BT Power Amplifier */

           /* Define the test register to switch the PA/LNA hardware control pins */   

           #define CYREG_SRSS_TST_DDFT_CTRL 0x40030008

       

      • In the StackEventHandler, when the event is CYBLE_EVT_STACK_ON:

       

              /* Set ECO capacitance trim value to the value required by CYBLE-202007-01 */

              /* https://community.cypress.com/docs/DOC-10498 */

              CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_BB_XO_CAPTRIM), 0xD0D0);

       

              /* Enable CYBLE-202007-01 BT Power Amplifier*/

              /* Configure the Link Layer to automatically switch PA control pin P3[2] and LNA control pin P3[3] */

              CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLESS_RF_CONFIG),0x0331);

              CY_SET_XTND_REG32((void CYFAR *)(CYREG_SRSS_TST_DDFT_CTRL), 0x80000302);

       

      I tried it with both 3.30 and 3.52 version of the BLE with similar results: I am not able to see the advertising while scanning with other BLE devices.

      I have attached a copy of the project I am using.

      I suppose I might be missing something related the amplifier of the module.