nrf52832 buttons_leds_init error

What does this error mean?

<error> app: ERROR 3735928559 [Unknown error code] at c:\nrf\modules\nrfx\hal\nrf_gpio.h:492
PC at: 0x00033D23
<error> app: End of error report

For your information, I attached the code for line 492 in that gpio.h header file.

/**
 * @brief Function for extracting port and the relative pin number from the absolute pin number.
 *
 * @param[in,out] p_pin Pointer to the absolute pin number overriden by the pin number that is relative to the port.
 *
 * @return Pointer to port register set.
 */
__STATIC_INLINE NRF_GPIO_Type * nrf_gpio_pin_port_decode(uint32_t * p_pin)
{
    NRFX_ASSERT(nrf_gpio_pin_present_check(*p_pin));
#if (GPIO_COUNT == 1)
    return NRF_P0;
#else
    if (*p_pin < P0_PIN_NUM)
    {
        return NRF_P0;
    }
    else
    {
        *p_pin = *p_pin & 0x1F;
        return NRF_P1;
    }
#endif
}

Parents
  • Hi 

    Are you using one of the standard examples in the nRF Connect SDK, or have you made your own?

    Are you able to show me how you initialize the buttons and LED's?

    Did you make any changes to the hardware configuration (DTS) ?

    Best regards
    Torbjørn

  • /**@brief Function for initializing buttons and leds.
     *
     * @param[out] p_erase_bonds  Will be true if the clear bonding button was pressed to wake the application up.
     */
    static void buttons_leds_init(bool * p_erase_bonds)
    {
        ret_code_t err_code;
        bsp_event_t startup_event;
    
        err_code = bsp_init(BSP_INIT_LEDS | BSP_INIT_BUTTONS, bsp_event_handler);
        APP_ERROR_CHECK(err_code);
    
        err_code = bsp_btn_ble_init(NULL, &startup_event);
        APP_ERROR_CHECK(err_code);
    
        *p_erase_bonds = (startup_event == BSP_EVENT_CLEAR_BONDING_DATA);
    }

    I used the nrf standard example, and there are no modifications to this part of the standard example.

    The above code is the code of the function butons_leds_init() with errors. In the main, you will call buttons_leds_init(&erase_bond). I've never modified the led part of the nrf board.

  • Hi 

    Which standard example do you mean?
    The buttons_leds_init(..) function is used in a lot of the SDK examples. 

    Can you let me know which version of the SDK you are using?

    Best regards
    Torbjørn

Reply Children
Related