Full Version : Help with watch view in AVR Studio debugger needed
avr >>BEGINNERS & BUTTERFLIES >>Help with watch view in AVR Studio debugger needed


Chris0711- 11-17-2007
Hi all,

I'm new to the AVR controllers and the AVR Studio (4.13 build 528) and I dispair of the 'watch view' during simulation.

I defined an array of bytes (for ATmega8):
CODE

.DSEG
data_buffer: .byte 16


and wanted to watch its content in the watch view, but I just managed to view the first byte.

I found several examples were GCC variables were watched and had a '+' before the name to explore the whole array.

I also tried data_buffer[1] and a lot more to see the rest, but it allways said 'Not in scope '.

I think when it is possible to watch C-arrays and even structs, it must also be possible to watch assembler arrays.

Here are my questions, and they all concern assembly language and not C
1. How can I see the rest of the array?
Has it to be defined in a different way?
(I know about the Memory-View, but it is not very comfortable, as you don't see the symbolic names)
2. Is it possible to watch expressions like data_buffer[index] or data_buffer+index or whatever the correct syntax is?
3. Is there a possibility to tell the Studio that
CODE
word_value: .byte 2
should be displayed as an 16 Bit value?

4. Although it would be too much to expect, is it even possible to define some kind of struct, to have a structured view of my data?

I urgently need a solution for question 1, the rest is just nice to have!

I searched the web, help files and app notes, but all I found, dealt with some kind of C-compiler.

Thanks for any help,
Chris


Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.