[STM32F407 Discovery] demo adaption to C++ fails

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

feanor
Posts: 15
Joined: Sat Sep 29, 2012 9:31 am

Re: [STM32F407 Discovery] demo adaption to C++ fails

Post by feanor »

Giovanni wrote:Hi,

The threads stacks in the demo are automatic variables of the main() function so they are allocated in the process stack.

Ah, ok, i thought so already. The formulation "When the C++ wrapper is used the stacks of the various threads are allocated within the stack of the main() thread" sounded for me that _all_ c++ based threads were located into main-threadspace. Thank you for clarifying.
Post Reply