⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
wisilica
Offline
Last seen:11 months 1 week ago
加入:2015-03-17 08:16
Hardware Timer Reset

Hi,
I am working on the project wherein the device has to switch multiple times between scan and advertisement processes(observer and broadcaster roles). I need to use a timer which runs throughout the process. Currently, I am using the systick timer so as to obtain timing of granularity of around 1ms. But, during the process of advertisement and scan role switch, the device needs to reset, and due to this, the systick timer also gets reset each time. So, now I am using the hardware timer 0 for the same requirement. Could you please suggest if this timer also gets reset during the stack reset of the device .

Thanks,
Wisilica

Device:
MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
加入:2015-06-08 11:34
Hi wisilica,

Hi wisilica,

不,timer0 GAPM_RES后不会重置ET_CMD command (if this is the kind of reset that you are mentioning), but since timer0 is a h/w timer that means that the 580 needs to be awake when the timer runs, if the 580 powers down, the timer will stop ticking. This is also valid for the systick timer as well. I dont think that the systick timer will reset, upon the GAMP_RESET_CMD, i ve started the systick in the user_app_init() loaded a value of 5000000 and print the value right after issuing the reset command and as soon as the device configuration function is triggered (right after rge reset), the value was decading as long as the fw run.

Thanks MT_dialog