Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Unable to view arguments in AVRStudio

2005-04-11 by wbounce

You are using dwarf2 and that is correct. What do you mean they do not
disaply correctly? Are you openning the .elf file. Are you setting the
correct chip and avr simulator? Are you adding a watch statement? What
do they look like? 

-----Original Message-----
From: Chuck Hackett [mailto:egroupscdh@WhiteTrout.net] 
Sent: Monday, April 11, 2005 2:18 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Unable to view arguments in AVRStudio



I'm using AVRStudio 4.10.356 and avr-gcc (GCC) 3.4.3.

I seem to be able to step through code ok but arguments passed into
functions do not (in my mind) display the correct values.  It's as
though AVRStudio is looking in a location that is different from what
the disassembled code indicates.

Below are the results of a make "all" from within Programmer's Notepad.

Can someone tell me what debug format I should be using with AVRStudio
4.10.356?

Regards,

Chuck Hackett

-----------------------------------------------------
> "make.exe" all

-------- begin --------
avr-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


Size before:
easyavr_acix.elf  :
section            size      addr
.text             12008         0
.data               210   8388704
.bss                339   8388914
.noinit               0   8389253
.eeprom               0   8454144
.debug_aranges       20         0
.debug_pubnames    1364         0
.debug_info        2871         0
.debug_abbrev       334         0
.debug_line        4047         0
.debug_str         1220         0
Total             22413


AVR Memory Usage:
-----------------
Device: atmega16

Program:   12218 bytes (74.6% Full)
(.text + .data + .bootloader)

Data:        549 bytes (53.6% Full)
(.data + .bss + .noinit)



Compiling: easyavr_acix.c
avr-gcc -c -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=8000000UL  -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=easyavr_acix.lst  -std=gnu99 -MD -MP -MF
.dep/easyavr_acix.o.d easyavr_acix.c -o easyavr_acix.o 

Linking: easyavr_acix.elf
avr-gcc -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=8000000UL  -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=easyavr_acix.o  -std=gnu99 -MD -MP -MF
.dep/easyavr_acix.elf.d
easyavr_acix.o --output easyavr_acix.elf
-Wl,-Map=easyavr_acix.map,--cref    -lm

Creating load file for Flash: easyavr_acix.hex
avr-objcopy -O ihex -R .eeprom easyavr_acix.elf easyavr_acix.hex

Creating load file for EEPROM: easyavr_acix.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex easyavr_acix.elf easyavr_acix.eep

Creating Extended Listing: easyavr_acix.lss
avr-objdump -h -S easyavr_acix.elf > easyavr_acix.lss

Creating Symbol Table: easyavr_acix.sym
avr-nm -n easyavr_acix.elf > easyavr_acix.sym

Size after:
easyavr_acix.elf  :
section            size      addr
.text             12008         0
.data               210   8388704
.bss                339   8388914
.noinit               0   8389253
.eeprom               0   8454144
.debug_aranges       20         0
.debug_pubnames    1364         0
.debug_info        2871         0
.debug_abbrev       334         0
.debug_line        4035         0
.debug_str         1220         0
Total             22401


AVR Memory Usage:
-----------------
Device: atmega16

Program:   12218 bytes (74.6% Full)
(.text + .data + .bootloader)

Data:        549 bytes (53.6% Full)
(.data + .bss + .noinit)


-------- end --------


> Process Exit Code: 0




 
Yahoo! Groups Links

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.