Hi all,
I am using the arduino cosole for generating hex code(i have used the 'blinky' sample program). The settings for board is arduino NG or older atmega8. After compiling the sketch, I am fetching the HEX code and trying to burn it to my atmega8 using parallel port BSD programmer. The code gets burned fine, but it is not working . I am not understanding why the code is not running. Can anyone please help me out in this matter. Any help is highly appreciated.
Thank you.
Burning HEX code problem
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 1645
- Joined: Sat Nov 10, 2007 12:59 am
Re: Burning HEX code problem
not much to go on. what board? what programmer? what programming software? not working in what way? guess there's no bootloader on the chip. what's the clock source? how are the fuses set?
-
- Posts: 2
- Joined: Wed Jul 04, 2012 4:12 am
Re: Burning HEX code problem
Here are the detailsmtbf0 wrote:not much to go on. what board? what programmer? what programming software? not working in what way? guess there's no bootloader on the chip. what's the clock source? how are the fuses set?
I am not using any arduino board in this case. I am just using the arduino console to generate the hex code. The settings in the console i made is for "arduino NG or older for atmega 8"
i am using a "parallel port programmer"(i have a bsd-programmer) to burn that hex code into the chip
Yes i am not using any bootloader
The chip is new, no fuse settings is done and running at its internal clock
-
- Posts: 1645
- Joined: Sat Nov 10, 2007 12:59 am
Re: Burning HEX code problem
so you're running at 1MHz.
i guess you're programming with avrdude and it reports loading and verifying the following code successfully.
you have an led with a series resistor connected between pin 19 of the mega8 and ground.
the led should be on for 16 seconds, then off for 16 seconds.
does the led come on at all? did it blink during programming?
i guess you're programming with avrdude and it reports loading and verifying the following code successfully.
Code: Select all
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
the led should be on for 16 seconds, then off for 16 seconds.
does the led come on at all? did it blink during programming?
-
- Posts: 1645
- Joined: Sat Nov 10, 2007 12:59 am
Re: Burning HEX code problem
weak pullup on pin 1?
i feel kind of helpless trying to guess your configuration. how about you describe it or take a picture.
i feel kind of helpless trying to guess your configuration. how about you describe it or take a picture.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Burning HEX code problem
You might want to check if the blinking pattern is appearing on some other GPIO pin. Should be able to see that with a multimeter.
Please be positive and constructive with your questions and comments.