Refresh arduino's ram (like repower it)

Is it possible somehow to refresh a arduino's ram-memory so that not need repower it? Using programming?

The arduino's RAM is static RAM, not dynamic - it doesn't need refreshing.

AWOL:
The arduino's RAM is static RAM, not dynamic - it doesn't need refreshing.

I mean that is it possible clear all variables and it download sketch again which is downloaded in without repowering arduino?

If I'm understanding the question, yes, though I'm not what that's got to do with the thread title.

AWOL:
If I'm understanding the question, yes, though I'm not what that's got to do with the thread title.

Yeah. I thought that it maybe need memory refreshing. But is there way to do it and how?

Yes, use the watchdog timer to reset the chip. Example code has been posted on these forums a number of times, it can be done with the atmel standard library, or by hand by setting the registers.

The idea is, you turn on the watchdog timer and set it to reset the chip on watchdog timeout, then immediately go into a while loop to hang the chip until the WDT times out and resets it.

Clearing the ram alone is not sufficient because you need to reset the registers too.

What have you tried, and how did the outcome differ from your expectations?

Just wondering why one wants to reset everything. Any reason why? Are you trying to solve memory issues this way?

sterretje:
Just wondering why one wants to reset everything. Any reason why? Are you trying to solve memory issues this way?

Actually I have problems with this vector-class and I was thinking that this can be the fastest way. Delete and resize-functions not working right but I have not found any good answer how to fix them.

http://forum.arduino.cc/index.php?topic=45626.0

It might be the fastest but it's also ostrich policy. Maybe start a new thread about the problem (don't forget to post the code) so it can be solved instead of sticking your head in the sand :wink:

As that is going to be C++ stuff, I will more than likely not be able to help.