Gcctest1: LED won't flash on STK500

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

I compiled the Gcctest1.c with avr-gcc successfully. I also converted object file into hex format. However, the LEDs wouldn't flash on my STK500.

Can anyone help me?

Thanks!

admin's test signature
 

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

Interesting... I've run into the exact same situation. Unfortunately, I haven't been able to solve it either.

Anyone else run into this?

- wayne

admin's test signature
 

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

Yes, I have the same problem. I suspect that my problem is that I used the *.rom file that is generated when you run the make-file. I assumed this file is Intel hex format, but since the LEDs didn't flash I guess I was wrong. How do you generate the hex-file?

/Stefan

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

In perusing this issue, I believe I came across the answers.

According to the makefile, the .rom file *is*, in fact, the Intel hex file. My guess is that they chose the suffix, 'cuz it's far easier using a Makefile to use the file's suffix to differenciate. The .hex suffix is still used for the EEPROM contents.

As for the gcctest program, as it turns out, it *is* working, albeit a trifle fast. I inserted a third nested loop in the delay routine and discovered that the program had been working all along, but the LED's were flashing at such a rate as to appear constant.

(What tipped me off was that the next two programs compiled and executed without a hitch.)

Stephan, give this a try and see if this isn't your problem too.

- wayne

admin's test signature
 

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

Thanks Wayne,

It did solv my problem. Now I can really get going with Gcc :-)

/Stefan