Differences in WinAVR and avrgcc under Linux?

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

Hi Guys,

i'm using a ATMega32 with Bootloader (AVRProg compatible). I worked on a Windows System and compiled the code there with latest WinAVR Compiler. The project was working.
Now i moved to a Linux System with avrgcc 3.4.1 and avrdude. I recompiled the code and uploaded it and the code is not working correct. Sometimes the display initialization is working sometimes not. So i don't know if the compiles does the error, of if it is the avrdude bootloader.

If i do a verify with avrdude and the uC against the hex File there is no error reported.

So are there differences between the compilers?

Hava a look at my web page -> http://www.tobiscorner.at.tf

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

WinAVR usually includes some extra patches, but they are either Windows-specific, or in different areas (such as the ELF->COFF converter, or adding binary constant support). You will have to be more specific about your problem.

Also, did you compare your version numbers of all the tools to make sure they are the same across both platforms?

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

I can't verify the tools versions, because my windows machine is 700km away.

I'm programming a small MP3 Player. LCD, MP3 Decodes & SD-Memory are connected through SPI. With the Linux versions of my program the basic initialization of all this devices does not work correct. Sometimes the LCD gets initialized, sometimes not. I didn't have this problems under windows. Maybe avrdude does not work correctly. I'll try to upload the code from another windows machine using AVRProg. I'll keep you informed.

Hava a look at my web page -> http://www.tobiscorner.at.tf

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

Occasionally wrong LCD initialization looks like a timing problem to
me.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

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

By now i could not do some tests. But it's not a timing problem. It was always working compiled with WinAVR. In about 10 days i have my Windows System back und i can directly compare the Linux avrgcc with the WinAVR.

Hava a look at my web page -> http://www.tobiscorner.at.tf

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

Do you just want the version numbers of everything?

If so all you need is the readme (Attached).

-Colin

Attachment(s): 

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

Thank you Colin.

I have the same versions for all utils.....

Hava a look at my web page -> http://www.tobiscorner.at.tf