Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] how to write specific value to program memory? [RSS Feed]

#1 Nov. 24, 2005 16:39:10

David B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] how to write specific value to program memory?


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ÀÓÁö¼ö <> 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>>


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] how to write specific value to program memory? [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support