AnsweredAssumed Answered

VDK Thread Stack Overflow

Question asked by ahonkan on Sep 22, 2012
Latest reply on Sep 22, 2012 by ahonkan

I've got a 21489 system running 5 threads and device drivers for SPI, UART and the AMI bus.  I'm getting somewhat frequent thread stack overflow errors and I'm having difficulty tracing the problem.

 

The value for the Thread Stack Overflow is 0x13555F, which according to the VDK documentation, is the content of the PCSTK.  Digging through the linker file, I find that this address is in _tmk_RescheduleISR between the .NoSaveDone and .returnFromDispatch symbols.  The attached images are screenshots of the symbols, the disassembly and registers. Also, all my threads have the max stack used at 1/2 to 1/4 of their allocated stack space.

 

Visually inspecting the registers, I cannot see why there would be a stack overflow call as all the values for CB7 seem reasonable. 


Thanks,

Avinash

Attachments

Outcomes