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

PA and LNA pin in BLE mesh examples

Hi All,

I'm referring to generic on/off ble mesh example code and we are in the development stage.

I would like to know which pins are used for PA and LNA in the example code and what changes do I need to make if I want to enable it on my custom hardware.

Here is the code snippet from example code: gpiote_setup(&m_gpiote.params.lna_cfg, m_gpiote.params.ppi_ch_id_set);

Thanks in advance.

Domneck

Parents Reply Children
  • Hi,

    In link I see GPIO pins 25 and 24 are used for PA and LNA but in schematic I'm finding it (in PCA 10056).

    And if I want to change in software as per custom hardware how do I do?

    And also I checked in debug mode "mesh_pa_lna_gpiote_enable" is the function to enable and it's not called any where in the code and "m_gpiote.enabled" flag is false always.

    Regards,

    Domneck

  • Hi! 

    Domneck said:
    And if I want to change in software as per custom hardware how do I do?

    There is a code example in the link i sent you. In the guide we are using GPIO pins 24/25, but you are free to change this to any other unused GPIO. 

     

    Domneck said:
    And also I checked in debug mode "mesh_pa_lna_gpiote_enable" is the function to enable and it's not called any where

     Did you add a call to the mesh_pa_lna_gpiote_enable() function? 

    Point 3. in the guide: sd

    Enable the PA/LNA module by calling mesh_pa_lna_gpiote_enable() after the call to mesh_init():

        mesh_pa_lna_gpiote_enable(&m_pa_lna_params);

    Best regards, 
    Joakim

Related