Interrupt WDT when call heap_caps_dump(MALLOC_CAP_8BIT)
-
- Posts: 8
- Joined: Thu Jan 23, 2020 3:53 pm
Interrupt WDT when call heap_caps_dump(MALLOC_CAP_8BIT)
I haven't been able to reproduce this in an empty project yet and probably won't have time to do so for a while but thought I'd post anyway and see if anyone else has seen `heap_caps_dump(MALLOC_CAP_8BIT)` cause the interrupt WDT to panic? I get it every time from my complex project, both from the main task and from other tasks. If anyone else has seen it then I'd be grateful for any hints about what causes it.
Re: Interrupt WDT when call heap_caps_dump(MALLOC_CAP_8BIT)
Hi Nathan,
Heap code is executed in a critical section (interrupts off), and dumping the heap is slow (a lot of memory access but more importantly a lot of serial output which is usually a bottleneck). So the INT WDT is triggering for a valid reason (interrupts off for an extended) but there is no easy solution.
Unfortunately we don't provide a way to temporarily disable INT WDT at runtime, so the best option is to increase the timeout value to a high enough value that the dump can complete.
Angus
Heap code is executed in a critical section (interrupts off), and dumping the heap is slow (a lot of memory access but more importantly a lot of serial output which is usually a bottleneck). So the INT WDT is triggering for a valid reason (interrupts off for an extended) but there is no easy solution.
Unfortunately we don't provide a way to temporarily disable INT WDT at runtime, so the best option is to increase the timeout value to a high enough value that the dump can complete.
Angus
-
- Posts: 8
- Joined: Thu Jan 23, 2020 3:53 pm
Re: Interrupt WDT when call heap_caps_dump(MALLOC_CAP_8BIT)
That makes sense. I guess the thing to do is to increase the timeout while debugging memory problems and then bring it back again once everything is stable to catch any interrupt problems.
Re: Interrupt WDT when call heap_caps_dump(MALLOC_CAP_8BIT)
Unfortunately, yes. The other thing that can help is increasing the console baud rate, so the heap dump output doesn't take as long.
Who is online
Users browsing this forum: Google [Bot] and 71 guests