I'm developing software for an STM32F100 VLDiscovery using ChibiOS. I already have 5-6 threads but sometimes I run into unhandled exceptions, for which I suspect stack overflow to be blamed. I've already read the stack size tutorial, which suggested to fill up the stack with 0xAA's, and check memory while debugging to see which stack gets full. My pretty noob question is how can I find out the starting address of each thread stack? That tutorial mentioned the map file, but I don't really know what to look for exactly...
My other (probably noob) question to this topic: how much stack space do math.h functions eat up? And float operations? (since FPU is not present)
Thanks very much for the answers, btw I'm pretty amazed by ChibiOS. It makes embedded development so easy and fun