Go Down

Topic: Save data in program ROM automatically (Read 498 times) previous topic - next topic

winnaing

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

johnwasser

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.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

winnaing

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

Cybernetician

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 8)
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
From Idea To Invention

PeterH


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?
I only provide help via the forum - please do not contact me for private consultancy.

Go Up