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

[button debouncer nrf51822]

Hello Nordic~

I want to control button debouncing on my nrf51822 based custom board. I went through the button_debounce example found in [Board/nrf6310/debounce_example........]

I tried to run it on my custom board with nrf51822+SD110; but its not responding. (when downloading its showing error: Flash Download failed - "Cortex-M0)

Is there any document to understand [button_bouncing] for nrf51822. please suggest.

Thanks.

Parents
  • nrf51-app-button-example-master.zip image description

    image description

    Then go to nrf_drv_config.h and set

    #define GPIOTE_ENABLED 1
    

    Then you need fixes from here. The project I attached has fixed app_gpiote.c file, and you need to replace your nrf_drv_gpiote.c file with nrf_drv_gpiote.c

    Tell me if this works.

  • Hi Aryan, In the case old Github app-button application, I didnt find any packet missing error but its showing the error of [RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error: #5: cannot open source input file "nrf_drv_gpiote.h": No such file or directory]

    In case of your fixed -app-button application, showing same error while compiling [RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error: #5: cannot open source input file "nrf_drv_gpiote.h": No such file or directory], though the file [nrf_drv_gpiote.h] is already there.

    Also showing "Device" and "nRF_Libraries" with red cross sign on green square icon (Manage Run-Time Environment]. After loading the missing packets too, its showing the red cross on these two Device and nRF Library.

    Please suggest some solution.

    Thanks

Reply
  • Hi Aryan, In the case old Github app-button application, I didnt find any packet missing error but its showing the error of [RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error: #5: cannot open source input file "nrf_drv_gpiote.h": No such file or directory]

    In case of your fixed -app-button application, showing same error while compiling [RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error: #5: cannot open source input file "nrf_drv_gpiote.h": No such file or directory], though the file [nrf_drv_gpiote.h] is already there.

    Also showing "Device" and "nRF_Libraries" with red cross sign on green square icon (Manage Run-Time Environment]. After loading the missing packets too, its showing the red cross on these two Device and nRF Library.

    Please suggest some solution.

    Thanks

Children
No Data
Related