Pages: [1]   Go Down
Author Topic: Save data in program ROM automatically  (Read 487 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
Is there any way to save a data into program ROM dynamically?
For example, I collect a data which is in RAM and want to save in ROM automatically.
Any snippet or code in Arduino?

Regards
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8967
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm guessing you mean the FLASH program memory.  Only the bootloader segment can write into the FLASH memory of the application segment.  The Arduino bootloader does not provide a function you can call to do that so you would have to start by modifying the bootloader.

More common choices for long-term memory are:

    The built-in EEPROM.
    An SD card connected through the SPI interface.
    An external F-RAM or EEPROM chip connected through SPI or I2C.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
Thanks for answer.
That is the case how to save IR pulse data in EEPROM?
IR pulse represent with on off intergers. One button of remote controller may consist of 100 intergers.
The question is how save those data inEEPROM in compact form.
I know how to save interger in EEPROM but do not know how to compress data and store.

Regards
Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
That is the case how to save IR pulse data in EEPROM?
IR pulse represent with on off intergers. One button of remote controller may consist of 100 intergers.
The question is how save those data inEEPROM in compact form.
I know how to save interger in EEPROM but do not know how to compress data and store.

IR pulses hmmm.

Actually you need to decode them first to store. If you read about the protocol of remote controller you will find a way to store them

This will help you lot smiley-cool
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
Logged

From Idea To Invention

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I know how to save interger in EEPROM but do not know how to compress data and store.

Why do you think you need to compress the data?
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Pages: [1]   Go Up
Jump to: