Can't view memory

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

I'm trying to catch a bug where the program restarts without reset (jump in the reset vector).
I put a breakpoint at __init, but I don't seem to be able to view any memory except registers.
I'd like to see the stack and a contents of a global variable located at 0x2873, but what ever I try, I get
"No disassembly available." or "Unable to evaluate the expression."

How can I view at least internal RAM?
I can't do a lot of experiments, because the bug may take two hours run to hit.

 

My target is xmega256A3U on the other end of JTAGICE3, and I'm using Atmel Studio 7 (7.0.1931, Kits 7.0.122) on Windows 10.

 

Debugging is for sissies and delivery for surgeons. Real men do demonstration.

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

turboscrew wrote:
I'd like to see the stack and a contents of a global variable located at 0x2873, but what ever I try, I get "No disassembly available." or "Unable to evaluate the expression."
Are you talking about the Watch Window? Why can't you simply set a Memory Window to 0x2873 ?

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

I'm talking about memory window(s) (and disassembly window).

 

Debugging is for sissies and delivery for surgeons. Real men do demonstration.

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

Does the RAM map to a different offset perhaps? So the address would actually be 0x0873 ?

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

I'll try. I just reboot my machine first - just in case...

 

BTW, could this mean something? When I open a project...

 

(show output from: Script)

Error during compilation : Traceback (most recent call last):
  File "C:\PROGRAM FILES (X86)\ATMEL\STUDIO\7.0\EXTENSIONS\ATMEL\AS-VSIX-ATMELKITS\7.0.122\KitWindow.py", line 3, in <module>
  File "C:\Program Files (x86)\Atmel\Studio\7.0\IronPython\Lib\os.py", line 737, in <module>
NameError: global name 'statvfs_result' is not defined

 

Debugging is for sissies and delivery for surgeons. Real men do demonstration.

Last Edited: Thu. Nov 22, 2018 - 12:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I doubt it. Rebooted the machine, restarted AtmelStudio, opened the project and started debugging - now in breakpoint at 'main'.

Debugging is for sissies and delivery for surgeons. Real men do demonstration.