Proteus 8 is not showing eeprom initialized variables using .eseg

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

Hi guys,

 

I have made a .asm program for atmega16 in avr studio 4. I have defined initial variables using .eseg and then I am printing that on port B. The results are fine for avr simulator but when I verify the results using proteus 8. The PORTB output remains 0xff. I have already loaded the .bin file of eeprom contents in proteus but output is still 0xff.     

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

Does this look like the Proteus support website? If you paid for a Proteus licence why aren't you using their support system included in the price?

 

 

Ross McKenzie ValuSoft Melbourne Australia

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

Yes I know it is proteus related issue but I thinks anyone already had done this kind of tasks using avr because I am not able to find any appropriate support on proteus links.  

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

If it is not on their website , you should for sure ask them. Then they can add that question and in the future when someone has the same problem they can also find the answer here

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

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...
Last Edited: Mon. Nov 11, 2019 - 11:25 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SAK123 wrote:
already loaded the .bin file of eeprom contents
.bin file? You mean .eep HEX file don't you?

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

Could this be a confusion between the generic meaning of EEPROM = Electrically-Erasable Programmable Read-Only Memory - which would include Flash - and the specific use of "EEPROM" to imply non-volatile data storage ... ?

 

EDIT

 

AVR Memories - see: https://www.avrfreaks.net/comment...

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...
Last Edited: Mon. Oct 16, 2017 - 08:25 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

SAK123 wrote:

.bin file? You mean .eep HEX file don't you?

 

yes of coures I mean eep.hex file..

Last Edited: Mon. Oct 16, 2017 - 08:43 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And does that file contain valid data ? Or is it "empty"?

 

(an "empty" hex file will contain just a solitary termination record).

 

PS if the file is not empty then, as others have suggested, this is one for Proteus support.

Last Edited: Mon. Oct 16, 2017 - 08:47 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can you even load a file into EEPROM?

 

I have the demo version loaded here and can see how to load a program file but don't see an option to load a file for the EEPROM.

#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

I cannot find anything recent about this but going all the way back to 2007 I found this:

 

http://www.edaboard.com/thread98...

 

That does seem to suggest that the hex DOES need to be converted to bin and then you load that binary image in the dialog shown.

 

But maybe things have changed a bit in 10 years?

 

(EDIT: actually last post there is 2010 so it seems it was still the same 7 years ago in fact)

Last Edited: Mon. Oct 16, 2017 - 09:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OP says, "results are fine for avr simulator" - so does very much sound like a Proteus problem ?

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

awneil wrote:

OP says, "results are fine for avr simulator" - so does very much sound like a Proteus problem ?

... hence my "suggestion" to take it up with Labcentre because they took his money... (well I can be generous can't I?)

 

Ross McKenzie ValuSoft Melbourne Australia

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

valusoft wrote:
they took his money

or his school's money.

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

... all the more reason to contact their supplier ( more money paid = more leverage )

Ross McKenzie ValuSoft Melbourne Australia

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

clawson wrote:

I cannot find anything recent about this but going all the way back to 2007 I found this...

 

'cept that really is an EEPROM.

 

If we look at a '2560...

 

#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

Proteus AVR simulation has a number of issues and limitations. For the price it costs, it should be as close to perfect as possible, so, I agree, go the Proteus support forum and ask for help.