ANT on PCA10056 and custom board ?

Dear Members,

I want to run ANT+ code in my custom board,

It works well on PCA10056, I can upload softdevice and the code to custom board board,

but I didn't get any responses,

I have tried with code without softdevice, the custom board works well

Any ideas ?

Thanks

Parents
  • Hello,

    Does your custom board have a 32KHz crystal mounted? If not, you have to make sure you select the internal RC oscillator when you enable the Softdevice. Otherwise, the Softdevice will enter an infinite loop waiting for the crystal to start.

    The memory layout should be left as is.

    Best regards,

    Vidar

  • Does softdevice require VDD HV? I connected VDD HV to 3.3V .

  • The log :



    nfo> app: log_init.
                                                             

                                                                                  

    nfo> app_timer: RTC: initialized.
                                                


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: utils_setup
                                                            

                                                                                  


    fo> app: softdevice_setup main
                                                  

                                                                                  


    fo> nrf_sdh: nrf_sdh_enable_request
                                             

                                                                                  


    fo> nrf_sdh: CRITICAL_REGION_ENTER
     

  • The screenshot only shows that you have hit the breakpoint you have set. Can you delete all breakpoints, then place one on the APP_ERROR_CHECK(err_code); line after nrf_sdh_enable_request()?

  • delete all NRF_LOG_INFO and ,

       ret_code_t err_code = nrf_sdh_enable_request();
          APP_ERROR_CHECK(err_code); ,

    complete function


    /**@brief Function for ANT stack initialization.
     *
     * @details Initializes the SoftDevice and the ANT event interrupt.
     */
    static void softdevice_setup(void)
    {
          NRF_LOG_INFO("softdevice_setup main\r\n");
        ret_code_t err_code = nrf_sdh_enable_request();
          APP_ERROR_CHECK(err_code);
        ASSERT(nrf_sdh_is_enabled());

        err_code = nrf_sdh_ant_enable();
        APP_ERROR_CHECK(err_code);
          NRF_LOG_INFO("softdevice_setup sdh_enable\r\n");

        err_code = ant_plus_key_set(ANTPLUS_NETWORK_NUM);
        APP_ERROR_CHECK(err_code);
          NRF_LOG_INFO("ant_plus_key\r\n");
    }

    output :



    fo> app: log_init.
                                                              

                                                                                  

    nfo> app_timer: RTC: initialized.
                                                


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: utils_setup
                                                            

                                                                                  


    fo> app: softdevice_setup main
                                                  

                                        

    and freeze, I can not see anything from

      ret_code_t err_code = nrf_sdh_enable_request();
          APP_ERROR_CHECK(err_code);

    Any clues ?

  • I meant to delete the breakpoints, not remove the NRF_LOG_INFO () lines.

  • same output  :



    fo> app: log_init.
                                                              

                                                                                  

    nfo> app_timer: RTC: initialized.
                                                


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: utils_setup
                                                            

                                                                                  


    fo> app: softdevice_setup main
                                                  

                                                                                  


    fo> nrf_sdh: nrf_sdh_enable_request
                                             

                                                                                  


    fo> nrf_sdh: CRITICAL_REGION_ENTER
        

Reply
  • same output  :



    fo> app: log_init.
                                                              

                                                                                  

    nfo> app_timer: RTC: initialized.
                                                


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: Rixtronix LAB. SP_BUTTON_ACTION_PUSH
                                   

                                                                                  


    fo> app: utils_setup
                                                            

                                                                                  


    fo> app: softdevice_setup main
                                                  

                                                                                  


    fo> nrf_sdh: nrf_sdh_enable_request
                                             

                                                                                  


    fo> nrf_sdh: CRITICAL_REGION_ENTER
        

Children
Related