I have a project where I have data written to the ATmega but it seems whenever it losses power, it loses all data. Could someone explain why? and if possible, a solution.
I have a project where I have data written to the ATmega but it seems whenever it losses power, it loses all data. Could someone explain why? and if possible, a solution.
No idea. I really can't explain that.
I have had a 'complaint' about the opposite: A user who was surprised that his last program started running after power up.
How/where did you place the program and how do you boot?
I am not an expert on the ATmega but it can be programmed to have a boot loader which then
loads and programs the main program. That is how the Arduino works, but not the Gertboard.
For the Gertboard the program has to be the main program and placed from address 0 onwards.
I wonder if Gorden knows?
Hi,
Your question is incomplete.
The atmega has RAM. It also has program memory.
If you send it some data and you have a program that stores that in RAM, then this data will be lost in a power-cycle.
If you send a program to the atmega (I don't know how that works with the gertboard) it is stored in program memory and should remain in place the next time you boot.
Please use a few more words to explain your problem.
Your message can be explained as:
You send it data, which does not get stored in program memory, but in RAM, so I have now explained to you why it does not remember it and your problem has been solved.
But I suspect you might mean something else. Feel free to explain what you mean.