Disable startup variable initialization

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
rares.porutiu
Posts: 28
Joined: 18 Apr 2012 16:42

Disable startup variable initialization

#1 Post by rares.porutiu » 07 Jun 2012 08:55

Hello. Can anybody tell me how to disable the memory clear at the begining of program ? I want to retain variable values over a watchdog reset and try a "warm reboot". I cannot seem to find a directive that disables that portion of code.

rares.porutiu
Posts: 28
Joined: 18 Apr 2012 16:42

Re: Disable startup variable initialization

#2 Post by rares.porutiu » 07 Jun 2012 10:29

I looked in the code and it seems no initialization is actualy performed other than some registered pushed on top of the stack.
The memory was cleared by the bootloader I use, I modified that, so disregard the question :)

Post Reply

Return to “mikroPascal PRO for AVR General”