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

ble_stack_init() init error

chip nRF52832CIAx

E:\aniq_2018\bbb_B\nRF5_15.2\nRF5_15.2\examples\ble_peripheral\ble_app_beacon\main.c

ble_stack_init compile not error

In debug tool,

ble_stack_init

//    ble_stack_init();  ==> ble 관련 주석 처리를 하고 컴파일 하고 실행을 하면 잘 동작을 합니다. 

 ble_stack_init(); ==> 이 상태로 컴파일 하고 실행을 하면 칩이 동작을 하지 않습니다. 

Parents
  • int main(void)
    {
        uint32_t err_code;
       
        // Initialize.
        log_init();
        timers_init();
        leds_init();
        power_management_init();
    //    ble_stack_init();
    //    advertising_init();

        /* Configure board. */
    //    bsp_board_leds_init();

        // Start execution.
        NRF_LOG_INFO("Beacon example started.");
    //    advertising_start();

        // Enter main loop.
        for (;; )
        {
    //        idle_state_handle();
            for (int i = 0; i < LEDS_NUMBER; i++)
            {
                SEGGER_RTT_printf(0, "status: %d \n", i);
                bsp_board_led_invert(i);
                nrf_delay_ms(500);
            }
        }
    }

Reply
  • int main(void)
    {
        uint32_t err_code;
       
        // Initialize.
        log_init();
        timers_init();
        leds_init();
        power_management_init();
    //    ble_stack_init();
    //    advertising_init();

        /* Configure board. */
    //    bsp_board_leds_init();

        // Start execution.
        NRF_LOG_INFO("Beacon example started.");
    //    advertising_start();

        // Enter main loop.
        for (;; )
        {
    //        idle_state_handle();
            for (int i = 0; i < LEDS_NUMBER; i++)
            {
                SEGGER_RTT_printf(0, "status: %d \n", i);
                bsp_board_led_invert(i);
                nrf_delay_ms(500);
            }
        }
    }

Children
No Data
Related