enter system off mode but the chip restarts automatically

I am using Keil v5 and the nRF5 SDK 17.1.0.

I use this example.(nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart\pca10040)

I hope the chip enter system off mode after the advertising timeout.

When I use the original  example, it can successfully enter system off mode.

However, when I try to change the button pin in the pca10040.h file, the chip restarts automatically.

How to solve this problem?

Parents
  • Can you please give us more context and debug output where the chip restarts when you change the pin?

    Can you start the debugger and using breakpoints find out exactly at which line the chip causes restart? Note that the default behavior for APP_ERROR_CHECK will be chip restart for debug options, it seems like you have having some error condition here which should be easy to find if you have debug logs to your serial console.

Reply
  • Can you please give us more context and debug output where the chip restarts when you change the pin?

    Can you start the debugger and using breakpoints find out exactly at which line the chip causes restart? Note that the default behavior for APP_ERROR_CHECK will be chip restart for debug options, it seems like you have having some error condition here which should be easy to find if you have debug logs to your serial console.

Children
No Data
Related