Please tell me how to set the button processing

OS in development environment :Windows10
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
builder :SEGGER Embedded Studio for ARM Release 3.34a Build 2018022300.35192 Windows x64
Copyright 2014-2018 SEGGER Microcontroller GmbH & Co. KG
Copyright 1997-2018 Rowley Associates Ltd.
GCC/BINUTILS: Built using the GNU ARM Embedded Toolchain version 6-2017-q2-update source distribution
Clang/LLVM: Built using the version 5.0.0 source distribution
Soft Ver:nRF5_SDK_15.3.0_59ac345

I tried to implement button processing using "buttons_leds_init()", but after changing "pca10040.h", "ERROR 4" occurs in "bsp_init()".
Please tell me how to set it up and how to solve it.
Attached is the modified "pca10040.h".

thank you.

4745.pca10040.h

Parents
  • Hi

    Error 4 points to there not being enough memory. When the bsp_init() function returns this error, it points to the maximum number of timers already being reached, so my guess is that your application is already using all available timers. The nRF52832 has 5 timers available, and the SoftDevice requires one, and multiple other peripherals require timers, so it seems like you've just reached the maximum number.

    Best regards,

    Simon

Reply
  • Hi

    Error 4 points to there not being enough memory. When the bsp_init() function returns this error, it points to the maximum number of timers already being reached, so my guess is that your application is already using all available timers. The nRF52832 has 5 timers available, and the SoftDevice requires one, and multiple other peripherals require timers, so it seems like you've just reached the maximum number.

    Best regards,

    Simon

Children
Related