Instaburst and mesh_opt_core_tx_power_set problem

Hi, I'm currently trying to set tx power to 8 dBm with (void)mesh_opt_core_tx_power_set(CORE_TX_ROLE_RELAY,RADIO_POWER_NRF_POS8DBM)

I'm also enable the instaburst feature on my nrf52840 board.

Somehow it got mesh assert when I'm calling that function.

int main(void)
{
    ret_code_t ret;

    mesh_main_initialize();
    (void)mesh_opt_core_tx_power_set(CORE_TX_ROLE_RELAY,RADIO_POWER_NRF_POS8DBM);
    mesh_main_start();
}

When I'm in debug this is what I found. Can somebody help me with this problem please.

Regards,

Hirls

Ps: I'm using nRF SDK for Mesh V5.0.0

  • Hello,

    Sorry for the late reply.

    I tried calling mesh_opt_core_tx_power_set() in the light_switch example, and that worked fine.

    I just changed the main() function to this:

    int main(void)
    {
        uint32_t err_code;
        initialize();
        err_code = mesh_opt_core_tx_power_set(CORE_TX_ROLE_RELAY, RADIO_POWER_NRF_POS8DBM);
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "tx_power_set ret %08x\n", err_code)
        start();
    
        for (;;)
        {
            (void)sd_app_evt_wait();
        }
    }

    Can you please try that?

    If that doesn't work, is there a way for me to reproduce what you are seeing? Can you zip the project and upload it here?

    Please try to unzip it into an unmodified SDK to check that:

    1: It builds successfully

    2: It replicates the issue without modifications outside your project folder (so that I also will be able to reproduce it).

    Best regards,

    Edvin

Related