Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | Bug found in GCC-AVR/ AVRStudio

There are 50 messages in this thread.

You are currently looking at messages 0 to 10.

Bug found in GCC-AVR/ AVRStudio - 09:23 16-01-05

Hi,

I am using WinAVR-20040720 and AVRStudio 4.10. I have global variable
definitions in main.c. One of which is

char version[10]="1.0";

However, the version becomes "", i.e., version[0]=0 when the program is
debugged and the variable is watched.
Do anyone encounter similar problem? Thanks!




Re: Bug found in GCC-AVR/ AVRStudio - 09:30 16-01-05

>char version[10]="1.0";
>However, the version becomes ""

This sounds more like an issue with the startup code. What happens if
you declare it as const char instead?


Re: Bug found in GCC-AVR/ AVRStudio - 09:38 16-01-05

Same problem exists. Actually I tried const char firstly, but GCC
seemed to regard it as ram data.


Re: Bug found in GCC-AVR/ AVRStudio - Ulf Samuelsson - 09:43 16-01-05

> I am using WinAVR-20040720 and AVRStudio 4.10. I have global variable
> definitions in main.c. One of which is
>
> char version[10]="1.0";
>
> However, the version becomes "", i.e., version[0]=0 when the program is
> debugged and the variable is watched.
> Do anyone encounter similar problem? Thanks!
>

AVR Studio 4.11 is now released and avaialble at www.avrfreaks.net
Don't know if thias will improve things though...

--
Best Regards,
Ulf Samuelsson.
Ulf at atmel dot com
These comments are intended to be my own opinion and they
may, or may not be shared by my employer, Atmel Nordic AB.



Re: Bug found in GCC-AVR/ AVRStudio - 09:54 16-01-05

Has also tried avrstudio 4.11 beta and the problem still exists.


Re: Bug found in GCC-AVR/ AVRStudio - Nicholas O. Lindan - 11:30 16-01-05

<d...@yahoo.com.hk> wrote in message
news:1...@c13g2000cwb.googlegroups.com...
> Hi,
>
> I am using WinAVR-20040720 and AVRStudio 4.10. I have global variable
> definitions in main.c. One of which is
>
> char version[10]="1.0";
>
> However, the version becomes "", i.e., version[0]=0 when the program is
> debugged and the variable is watched.
> Do anyone encounter similar problem? Thanks!

I take it you want this variable to exist in program memory (ROM)?

--
Nicholas O. Lindan, Cleveland, Ohio
Consulting Engineer:  Electronics; Informatics; Photonics.
Remove spaces etc. to reply: n o lindan at net com dot com
psst.. want to buy an f-stop timer? nolindan.com/da/fstop/


Re: Bug found in GCC-AVR/ AVRStudio - CBFalconer - 11:41 16-01-05

l...@larwe.com wrote:
> 
> >char version[10]="1.0";
> >However, the version becomes ""
> 
> This sounds more like an issue with the startup code. What happens
> if you declare it as const char instead?

>From another thread we find that dereklai2k refuses to quote, and
also does not bother to reveal a solution when found.  Thus I
recommend ignoring him.

-- 
"If you want to post a followup via groups.google.com, don't use
 the broken "Reply" link at the bottom of the article.  Click on 
 "show options" at the top of the article, then click on the 
 "Reply" at the bottom of the article headers." - Keith Thompson



Re: Bug found in GCC-AVR/ AVRStudio - Tauno Voipio - 16:35 16-01-05

CBFalconer wrote:
> l...@larwe.com wrote:
> 
>>>char version[10]="1.0";
>>>However, the version becomes ""
>>
>>This sounds more like an issue with the startup code. What happens
>>if you declare it as const char instead?
> 
> 
>>From another thread we find that dereklai2k refuses to quote, and
> also does not bother to reveal a solution when found.  Thus I
> recommend ignoring him.
> 

My vote, too for a PLONK.

Let's give him an opportunity:

Please post a minimal example which does not
behave. Compile the code and run

   avr-objdump -D testfile.elf >testfile.dis

and post the output.

My feel is that this is an erroneous diagnosis
of some other problem.

----

Please post the solution with the original header line
added with '(solved)'. After pondering with a problem,
we deserve to hear what was the culprit to be able
to avoid it later.

-- 

Tauno Voipio
tauno voipio (at) iki fi


Re: Bug found in GCC-AVR/ AVRStudio - jim w - 16:51 16-01-05

what if you change your code to
	char *version="1.0"
  - jim

d...@yahoo.com.hk wrote:
> Hi,
> 
> I am using WinAVR-20040720 and AVRStudio 4.10. I have global variable
> definitions in main.c. One of which is
> 
> char version[10]="1.0";
> 
> However, the version becomes "", i.e., version[0]=0 when the program is
> debugged and the variable is watched.
> Do anyone encounter similar problem? Thanks!
> 

Re: Bug found in GCC-AVR/ AVRStudio - 21:03 16-01-05

Sorry, actually I do not intend to not reveal the solution of this
thread, as the solution is my very careless mistake and does not have a
greal learning value.


| 1 | 2 | 3 | 4 | 5 | next