[proteus]How to use source code level debug in proteus7?

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

Hi, everyone,

I'm using proteus7 to simulate an atmega16 communication with a simple LCD. As said in proteus7, I should provide .elf or .cof for source code level debug. I'm using WinAVR2008 in WinXP, and the default Makefile:
DEBUG = dwarf-2

Well, proteus7 accept the .elf, and can show some of the source code, but the code line and PC pointer are totally wrong.

Next, I try "make coff", but get warning:
avr-objcopy: main.elf: no recognized debugging information. Using this .cof in protues7 will get error "Access violation in LOADER.DLL or AVR.DLL".

Finally I have tried DEBUG = stubs, avr-objcopy didn't compliant any more, but the access violation still occurred in protues.

Anyone got the same behavior? So, how to conquer the problem? Thank you.

--
ShenLei

Last Edited: Sun. Dec 15, 2019 - 04:55 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

good site

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

If you are using Proteus, you have paid for support, so go to labcenter and ask your questions!

jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

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

The original post is 11-freaking years old! Post #2 is just noise.

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

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

Good Catch!

 

 OOPS

 

Topic locked

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Topic locked