No, and that's what we were trying to tell you here.Chinkal wrote: I also want to implement restart function so whenever the system reboots, It will check the file whether it has any previously stored data and version information. If yes then it should start executing the program after that checkpoint().
Is there any way I could implement this?
Micropython data stored in Heap
Re: Micropython data stored in Heap
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Micropython data stored in Heap
The reason is because program state comprises much besides local and global variables. The most obvious is the stack which stores (amongst other things) the points in the code where execution must be resumed after a function or method terminates. If you think about this, it can't be determined a priori because a function or method can be called from many places in a program.
I suggest doing some general reading on the mechanics of program execution. Perhaps someone can recommend a suitable text.
I suggest doing some general reading on the mechanics of program execution. Perhaps someone can recommend a suitable text.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.