[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] how to write specific value to program memory?
From: |
David Breeze |
Subject: |
Re: [avr-gcc-list] how to write specific value to program memory? |
Date: |
Thu, 24 Nov 2005 15:08:25 +0000 |
The following will store a string in flash memory
static uint8_t PROGMEM top_menu_title[] = { "Test program\n\r" };
Note that FLASH memory is page addressable not byte addressable thus with
certain exceptions it is not possible to write to the memory from your program.
Boot programs which can re-write your application all have to be at the top of
memory, that is how the device is designed.
Also there is a limit to the number of times flash can be re-written and so is
unsuitable as a volatile memory replacement.
HTH
David Breeze
>>> $(CÀÓÁö¼ö <address@hidden> 24 November 2005 12:49 >>>
hi,
I am using atmega128 mic.
i want program memory to store data, not eeprom.
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
an addressing or transmission error has misdirected
this e-mail, please notify the author by replying to this e-mail. If you are
not the intended recipient you must not use, disclose, copy, print or rely on
this e-mail.
Joy Mining Machinery Limited/P&H Minepro Services aims to prevent the
propagation of viruses, but cannot guarantee that this email is virus free.
You are advised to scan all attachments and open them at your own risk.
Joy Mining Machinery Limited/P&H Minepro Services may monitor outgoing and
incoming e-mails and other telecommunications on its e-mail and
telecommunication systems.
<<Privacy - UK>>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [avr-gcc-list] how to write specific value to program memory?,
David Breeze <=