Search found 2 matches

by freemind908
Wed Jan 26, 2022 9:52 am
Forum: General Discussion
Topic: Task WDT triggered in __log2() and weird program behavior
Replies: 1
Views: 2163

Re: Task WDT triggered in __log2() and weird program behavior

Further digging indicates the hang is related to -1 being passed to __log2() and the way this function is implemented (left shift and compare). However, I'm still curious about the jump address not being the start address of any instruction. Is this a feature of Xtensa architecture?
by freemind908
Wed Jan 26, 2022 6:02 am
Forum: General Discussion
Topic: Task WDT triggered in __log2() and weird program behavior
Replies: 1
Views: 2163

Task WDT triggered in __log2() and weird program behavior

I'm looking into an issue where the system hangs and would trigger task watchdog if enabled. Backtrace reported by WDT looks like the following: backtrace.png Seems the hang happens inside a call to __log2(), which is itself a simple function: __uint32_t __log2(num) __uint32_t num; { __uint32_t i, l...