This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Easy way to put a global C++ class into ZI segment (init to zero)?

Hi,
I am just doing some first test with C++ for my STM32F4 controller (coming from C programming - I did not use C++ for controllers before, only for Windows programming).

I want to use mainly static / global classes.

For most of these global classes, I expect all variables to be initialized to zero.

Is it possible, to locate such classes into the ZI data space, so that they are initilized to zero at startup with optimum speed?

0