comparison Small_CPU/CPU2-RTE.ld @ 433:aa286a4926c2 Improve_BatteryGasGauge

Detect startup after power off: Introduced a variable in memory area which is not initialized during startup. In case of a start from power off the memory cell will be initialized (persistant as long as RTE is powered) and charge counter is set to 0 signaling the user to do a complete charge to calibrate the counter.
author ideenmodellierer
date Sun, 23 Feb 2020 21:09:56 +0100
parents 321df89d5710
children
comparison
equal deleted inserted replaced
432:2b4440f75434 433:aa286a4926c2
179 __end__ = .; 179 __end__ = .;
180 end = __end__; 180 end = __end__;
181 *(.heap*) 181 *(.heap*)
182 __HeapLimit = .; 182 __HeapLimit = .;
183 } > RAM 183 } > RAM
184 184
185 /* .noinit section contains data which will not be change during startup */
186 .noinit :
187 {
188 . = ALIGN(4);
189 *(.noinit*)
190 _end = . ;
191 } > RAM
192
185 /* .stack_dummy section doesn't contains any symbols. It is only 193 /* .stack_dummy section doesn't contains any symbols. It is only
186 * used for linker to calculate size of stack sections, and assign 194 * used for linker to calculate size of stack sections, and assign
187 * values to stack symbols later */ 195 * values to stack symbols later */
188 .stack_dummy : 196 .stack_dummy :
189 { 197 {