homebrew board problems

Hi there. I am gradually sifting through problems with building my own
board based on the stand alone schematic.

Right now I have got pin 13 blinking which I infer means the boot is active.
If I try to program from the arduino gui I get a “Programmer is not responding” error
with a little number 1 in the corner.

AFter a lot of no luck with uisp, I finally managed to program the
bootloader using avrdude and these lines (b.hex being the boot)

avrdude -p m8 -c bascom -f i -i b.hex

There was one error at the bottom, I’m not sure if that would affect things… any ideas???

--------------snip---------------------

C:\avrdude\bin>avrdude -p m8 -c bascom -f i -i b.hex

avrdude: WARNING: the -f, -i, -I, -o, and -m options are deprecated.
Please use the -U option instead.

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% -0.00s

avrdude: Device signature = 0x1e9307
avrdude: reading input file “b.hex”
avrdude: writing flash (8184 bytes):

Writing | ################################################## | 100% 3.96s

avrdude: 8184 bytes of flash written
avrdude: verifying flash memory against b.hex:
avrdude: load data flash data from input file b.hex:
avrdude: input file b.hex contains 8184 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 2.76s

avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x12
avrdude: verification error; content mismatch

avrdude done. Thank you.

-------------------snip------------------------

Usually, if you get any errors, the bootloader won’t work. What happens if you try burning the bootloader again? What type of programmer are you using? Is b.hex the bootloader file that came with Arduino?

Usually, if you get any errors, the bootloader won’t work. What happens if you try burning the bootloader again? What type of programmer are you using? Is b.hex the bootloader file that came with Arduino?

I am using the bascom “sample programming cable” to program the boot loader
b.hex is the code from the boot folder from arduino 0003

I reloaded it. and didn’t get any errors.

After I reset the board the led blinks 8 times and then stops.
But it still gives error “programmer not responding” when i try to upload code.

Ahah, if it blinks slowly enough that you can count them, it must be running at 4 MHz instead of 16 MHz. You’ll need to run the complete burn.bat script, or its equivalent with avrdude, in order to properly set the fuses on the ATmega8.

Ahah, if it blinks slowly enough that you can count them, it must be running at 4 MHz instead of 16 MHz. You’ll need to run the complete burn.bat script, or its equivalent with avrdude, in order to properly set the fuses on the ATmega8.

Okay I reprogrammed with fusebit settings…

avrdude -c bascom -p m8 -U lfuse:w:0xdf:m

It blinks faster on reset but “Programmer is not responding” message still comes up…

Have you made a PCB or are you using a breadboard? Serial or USB connection to the computer? Did you select the correct serial device from the Tools > Serial Port menu? Do you know if the computer can program other Arduino boards? Are you using a 16 MHz clock? Also, recheck the instructions at: http://www.arduino.cc/en/Main/StandaloneAssembly as they were recently corrected.

Have you made a PCB or are you using a breadboard?

perfboard.

Serial or USB connection to the computer? Did you select

serial.

the correct serial device from the Tools > Serial Port menu?

yes.

Do you know if the computer can program other >Arduino boards?

I don’t have any others, but this board can be programmed by bascom avr
and I get data to/from the serial port in the bascom terminal.

Are you using a 16 MHz clock?

I am using a 16MHz resonator.

Also, recheck the instructions at: >http://www.arduino.cc/en/Main/StandaloneAssembly as they were recently corrected.

will do !