My Compiler Test

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

I've been screwing around with avr software (avr-gcc) trying to get it to work on my Mac OSX and I think I got it to spit out a usable .hex files. Can some one give me code (something simple) that they know works for there AVR, for me to compile to see if my compiler works? Then they can load it on there avr, to see if the hex file works.

(I want to get the software working before I bought anything. Bad exprence with the PICs :). )

Life Is Like A Bucket Of Chicken.

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

Download the WinAVR software; run your compiled software in its emulation. (Or Bascom can do this too, I think.)

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

The only bit of WinAVR that might be much use on a Mac (well unless one has bootcamp) is going to be the \winavr\examples files - wonder if they are available separately as they'd make a good test of a compiler installation.

Having said that in my prvious 10,700 posts I must have posted several hundred examples of working GCC code that might be used as a test and I'm sure a search for either "GCC" or "avr/io.h" would find LOADS of examples.

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

Damn, didn't read 'mac' :mrgreen:

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

But you can download MacAVR, the Mac equivalent of WinAVR.

Regards,
Steve A.

The Board helps those that help themselves.

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

Heres the code if anyone want to try it, I compiled for the atMega8 and the USBtinyISP programmer. I can change it the chip and the programmer if someone requests it.

Tell me if it works?

Attachment(s): 

Life Is Like A Bucket Of Chicken.