Save data in program ROM automatically

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

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.

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

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 8)

winnaing:
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?