We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello everyone: I'm testing a distributed elevator control, wich uses XC167 from Infineon as "brain". Everything was going fine and all software tests were succesful. But when I added some more tasks the trouble begin. The system hangs on some compilations (cooperative multitasking only), in other with minor changes works quite fine, with only some strange behaviour. Activating the round-robin multitasking I was specting to get the task wich was hanging, but it seems that there's no one (I've written a task monitor). After many tests I think the problems is related with stacks or some kind of problem in memory or code acces (perhaps an unattended interrupt?). I have trap interrupts enabled, but there's no activation of them. I have no external RAM memory, because the internal memory should be enough, as I need a little amount of memory. I have both system and user stacks in IDATA, and I've USRSTCK_DPP to DPP3 in RTX166 Tiny configuration, and I'm usin NEAR memory model. So, anyone got this kind of problems? Any suggestion to correct the problem? Is there any check I should do in order to detect, avoid or by-pass this kind of problems? Thank you a lot.
Hi: I've enabled the initialize variables to zero in the start configuration, so It's suposed that uninitialized variables will be 0 always. On the other hand, I only leave variables uninitialized when it's value doesn't matter (i.e. loop counters, etc...), and the hang occurs after many minutes of execution (sometimes hours); but I'll check again...