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

ZI data & stack + heap

I have confusion regarding Zi data + stack.

1. Why total ZI data has also stack size included in it.
For example if 512 stack size is declared in code then total ZI data has 512 bytes in it.

Does that mean ZI data = bss section + stack size + heap size.
That mean stack & heap are initialized to zero.

2. ALso what I think is that bss section which I think is (ZI data - stack) but in keil its ZI + stack.

I think that during startup ZI data will not be loaded. They took some location location in RAM. So on startup they won't let any watchdog reset problem .

Data loaded on startup is RW data. This is data whose values got load from flash into ram variable during startup. so they can cause problem in watchdog timer & rest them if RW daat is large.

Is it right or I got it wrong.