AS7 Stuck Scrolling Memory Window

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

I'm hoping for a bit of a miracle, but I figured I would ask.

I'm running AS7 with an ATMEL-ICE on an atmega2561 at a pretty low speed (it's an old project).

I can catch my breakpoint and access memory.  I want to capture as much of IRAM as possible, so I start scrolling.  Often the window will start scrolling on its own and never (I'm being patient at the moment, but previous times I gave up after waiting an hour) stops.  At this point, the only way to stop it is to either pull the USB cable or kill AS7. 

As the issue I am working on is infrequent and difficult to catch, I am hoping to get as much data as possible without resetting the device.

 

Any thoughts on how to force AS7 to stop scrolling?

Also, am I missing a simple way to dump the IRAM (or other windows)?

Thanks.

This topic has a solution.
Last Edited: Mon. Nov 4, 2019 - 04:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I would take a look at the python hooks available under debug: https://www.microchip.com/webdoc/GUID-ECD8A826-B1DA-44FC-BE0B-5A53418A47BD/GUID-E6AEB04E-0C45-43E6-AB02-33AC01E3A513.html
.
On a breakpoint, you can programmatically read and write memory to whatever form you need...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Well a couple of things:

 

1) why would you even need to examine the whole of the SRAM? You know form the .map file where the linker has actually placed objects so surely thta's the only place of intersest? The only other being the stack that is probably just a few hundred bytes at the upper end of the RAM

 

2) If you use all 4 of Memory 1, Memory 2, Memory 3 and Memory 4 and position each at offsets from the base I would have thought that on a "normal" sized monitor you could cover all 8K in those four windows? On my ultrawide 34" monitor I can see this in ONE window:

 

 

That easily covers the whole 8K from 0x200 to 0x2200. Actually, rather confusing the 0x00 seem to span almost all the way to 0x3B80 so I'm not sure what's going on there - the datasheet only admits to there being 2K of SRAM?

 

EDIT: Oh I see, it seems to be simulating a small amount of XRAM from 0x2200 onwards?

Last Edited: Mon. Nov 4, 2019 - 08:58 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1. You are right that I probably don't need the whole IRAM, but I'm using an OS that also has stacks.  So I end up needing a few large sections, which with the scrolling issue is difficult to grab.

2. Enlarging the window is a great, simple solution!

Thanks.

 

*edit - It finally stopped scrolling on its own overnight, so I was able to grab what I needed.  But I'm keeping the suggestions in mind for the future.

Last Edited: Mon. Nov 4, 2019 - 04:56 PM