Altera_Forum
Honored Contributor
21 years agoSpontaneous ASSERTs
Hi!
I have a program with 10 tasks (8 + idle + main) and 2 interrupt sources. The fact is that sometimes I get ASSERTs from eCos differents functions of the SO. Sometimes is from dlmalloc.cxx, when I tree to free, sometimes (don't remember exactly) is from smp.hxx (I only have one CPU, so it shouldn't be any problem), and other stange things... The fact is that sometimes, when I run it in debug mode, it works OK. And many times, if I add a printf or another instruction, the problem disappears. I've tried to disable all interrupt sources (except INTERNAL TIMER) in order to prevent any interrupt to corrupt the stack or else, but it does the same. If anyone has any idea about what can be happening, or how to find the REAL problem... Thanx Alex