How to create separate EEPROM program

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

Can anyone tell as How to create separate EEPROM program.

So that I can load it with my main program.

I am using ATmega8515 and Atmel studio7.0 with GCC compiler.

 

 

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yogendra1 wrote:

... separate EEPROM program.

 

You don't put your program in EEPROM; it's meant for data. With that bit of knowledge a web search gives you lots of answers.

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Yes I know we cant write program in EEPROM,

I want a program to write some checksum in EEPROM and load that program.

Please check the attachment in that marked in red 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.atmel.com/webdoc/atme...

 

please check this link.

In this screen shot check EEPROM.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you aware of the user manual for the compiler you are using:

 

http://www.nongnu.org/avr-libc/u...

 

Within that you will find:

 

http://www.nongnu.org/avr-libc/u...

 

Those are the functions you use to read/write data to the EEPROM in an AVR  when using avr-gcc.

 

If you want to know more about how to use those functions then visit the Tutorial Forum here which has articles about using those functions.

 

note that since the eeprom_update*() functions have been added you would almost never use eeprom_write*() functions. Always use "update" as it will not wear the EEPROM if you try to write a value that is already there (an otherwise pointless write).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

can get any example code?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you see what clawson said about the Tutorial Forum ?

Did you do that?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Specifically this:

 

https://www.avrfreaks.net/forum/t...

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks all For your support and time.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

BTW you should do what that tutorial says and access the more up to date version at:

 

http://www.fourwalledcubicle.com...

 

(that later version knows about Update versus Write)

Last Edited: Fri. Feb 17, 2017 - 12:01 PM