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?
admin's test signature
Interesting... I've run into the exact same situation. Unfortunately, I haven't been able to solve it either.
Anyone else run into this?
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?
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.
It did solv my problem. Now I can really get going with Gcc :-)
© 2020 Microchip Technology Inc.