maxikrie commented on PR #18848:
URL: https://github.com/apache/nuttx/pull/18848#issuecomment-4378811943
@linguini1 Here is a log for when it failed:
sdc/hci systick count=429490(+5) ticks=429490(+5) ctrl=00000007
reload=0009c3ff current=0004ef5b intctrl=00000000
sdc/low systick count=429500(+10) ticks=3(+-429487) ctrl=00000007
reload=0009c3ff current=00067373 intctrl=00000000
Within nrf52_sdc.c I was calling this debug function:
/****************************************************************************
* Name: nrf52_sdc_debug_systick
****************************************************************************/
static void nrf52_sdc_debug_systick(FAR const char *tag)
{
#ifdef CONFIG_ARMV7M_SYSTICK
static uint32_t last_systick_count;
static clock_t last_sched_ticks;
static uint32_t log_count;
uint32_t systick_count = systick_debug_count();
clock_t sched_ticks = clock_systime_ticks();
uint32_t systick_ctrl = getreg32(NVIC_SYSTICK_CTRL);
uint32_t systick_reload = getreg32(NVIC_SYSTICK_RELOAD);
uint32_t systick_current = getreg32(NVIC_SYSTICK_CURRENT);
uint32_t intctrl = getreg32(NVIC_INTCTRL);
log_count++;
printf("sdc/%s systick count=%lu(+%ld) ticks=%lu(+%ld) "
"ctrl=%08lx reload=%08lx current=%08lx intctrl=%08lx\n",
tag,
(unsigned long)systick_count,
(long)(systick_count - last_systick_count),
(unsigned long)sched_ticks,
(long)(sched_ticks - last_sched_ticks),
(unsigned long)systick_ctrl,
(unsigned long)systick_reload,
(unsigned long)systick_current,
(unsigned long)intctrl);
last_systick_count = systick_count;
last_sched_ticks = sched_ticks;
UNUSED(log_count);
#else
UNUSED(tag);
#endif
}
I hope this helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]