Learn MoreFAQsTutorials

4 posts / 0 new
Last post
eslam snono
Offline
Last seen:3 months 1 week ago
加入:2018-05-02 13:56
DA14583 Timer0与BLE

i have a customized PCB for DA14583. I am using example ble_app_peripheral. When i try to use timer0 to count specified seconds as in example timer0_general, the processor counts two seconds then hang. But when i use the timer0_general example stand alone, it counts with no problem.

i have added the same function as in timer0_general to the ble_app_peripheral and i can't use timer0 for counting.

Any advice please.

Device:
IM_Dialog
Offline
Last seen:4 days 12 hours ago
加入:2016-12-06 22:25
Hi Eslam,

Hi Eslam,

I recommend using a software timer for this purpose, for an example of how to do this see the following:

http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/timer.html

Best regards

IM_Dialog

eslam snono
Offline
Last seen:3 months 1 week ago
加入:2018-05-02 13:56
I tried your suggested

I tried your suggested solution but also it didn't work. I don't know why i can't use the timers or your suggested with ble examples even that i can use them stand alone without ble.

please i need your advice for solution for counting time with a timer or any method and the reason for that problem

PM_Dialog
Offline
Last seen:21 min 3 sec ago
Staff
加入:2018-02-08 11:03
Hi Eslam,

Hi Eslam,

Are you using any of the sleep modes in your project? If yes, all the peripheral domains are powered down. You mentioned that it doesn’t work, can you please run it in debug mode and indicate what is happening? Does the code get stuck anywhere?

Thanks, PM_Dialog