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

Battery service & debug problem

Hello,

I try to add battery service in ble_app_uart , but it has some problem.

The Problem is that I can see the Battery service on the phone , but it doesn't change by ADC .

the Operation is under SDK9 & s110 .

By the way , how to find errors in debug mode?

when i enter the keil c debug mode , i always see this situation following . image description where can i see error?

Thanks. --------------------Edit---------------------------------------------------------- My problem is that I can see the following picture if add the "APP_TIMER_INIT(......)" under the "timers_init()" in main loop. But Battery level is always 100%. image description

If i don't add the "APP_TIMER_INIT(......)" under the "timers_init()" , i can't find peripheral on phone.

This is my project . ble_app_uart.rar

Thanks.

Related