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

Thread CLI not working in BC840DK

Hi I am testing the Thread examples

I worked on SIMPLE_COAP_EXAMPLE in nrf52840 DK there it works fine while opening UART and enter to CLI commands and its working

but i have implement same code to the board BC840DK where the uart pins are P1.01,P1.02 (RX,TX)

I can doubt that due to uart pin change the cli doesn't work for bc840dk but i don't know where to config the cli uart lines

Parents Reply
  • I worked on DCDC

    int main(int argc, char *argv[])
    {
        log_init();
        scheduler_init();
        timer_init();
        /* LOW POWER SETUP */
        int err_code = sd_power_mode_set(NRF_POWER_MODE_LOWPWR);
        APP_ERROR_CHECK(err_code);
    
        err_code = sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
        APP_ERROR_CHECK(err_code);
    
        thread_instance_init();
        thread_coap_init();
        thread_bsp_init();
       
    
        while (true)
        {
            thread_process();
            app_sched_execute();
    
            if (NRF_LOG_PROCESS() == false)
            {
                thread_sleep();
            }
        }
    }

    got error

    Building ‘thread_mtd_coap_client_pca10056’ from solution ‘thread_mtd_coap_client_pca10056’ in configuration ‘Release’
      Compiling ‘main.c’
        implicit declaration of function 'sd_power_mode_set' [-Wimplicit-function-declaration]
        'NRF_POWER_MODE_LOWPWR' undeclared (first use in this function)
        each undeclared identifier is reported only once for each function it appears in
        implicit declaration of function 'sd_power_dcdc_mode_set' [-Wimplicit-function-declaration]
        'NRF_POWER_DCDC_ENABLE' undeclared (first use in this function); did you mean 'NRF_PWR_MGMT_ENABLED'?
    Build failed

Children
Related