Stack overflow checking on MSP430

aamirmahmood wrote on Friday, August 27, 2010:

Hi,

Is it possible to perform stack overflow detection on MSP430 architecture? I am just not sure what does “these options are only available on architectures where the memory map is not segmented” mean as mentioned in the FreeRTOS documentation for stack overflow detection.

Aamir

davedoors wrote on Friday, August 27, 2010:

To my knowledge the MSP430 does not have a segmented memory space. Is this different for the MSP430X parts?

Even if it does, you can still use the second method that just relies on a memcmp() and not an address comparison. It would require a very minor change to the code to prevent the first method from executing before the memcmp().

Why not just try it?