Burning HEX code problem

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
suvarajB
 
Posts: 2
Joined: Wed Jul 04, 2012 4:12 am

Burning HEX code problem

Post by suvarajB »

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. :D
Thank you.

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: Burning HEX code problem

Post by mtbf0 »

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?

suvarajB
 
Posts: 2
Joined: Wed Jul 04, 2012 4:12 am

Re: Burning HEX code problem

Post by suvarajB »

mtbf0 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?
Here are the details

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

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: Burning HEX code problem

Post by mtbf0 »

so you're running at 1MHz.

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
}
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?

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: Burning HEX code problem

Post by mtbf0 »

weak pullup on pin 1?

i feel kind of helpless trying to guess your configuration. how about you describe it or take a picture.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Burning HEX code problem

Post by adafruit_support_rick »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”