Hello everyone,
I've just registered here because I need some help from experts. I really hope someone can find a solution to my problem. I appreciate any and all help.
Please be aware that I do not have any programming experience but have a friend helping me out that has some experience in using C and programming AVRs but not with Arduino.
What I'm trying to accomplish:
I want an Arduino sketch to run on my ATmega8 or ATmega328 chip without using the Arduino board. I want to build my own circuit. No bootloader if possible.
As a test I'm trying to run the simple BLINK sketch.
What I've tried so far:
I have connected the AVR to a programmer and following the online guides for bread board programming I have uploaded the BLINK. I can communicate with the chip and I can burn the data which is then verified correctly. Everything checks out fine but the BLINK doesn't blink.
I have checked the connections time and time again and everything is fine. I have used different AVRs and crystals but still get nothing.
I have followed a guide describing using an Arduino board to program an AVR and did it exactly step-by-step. Everything seems fine but still no blinky.
I have tried changing the fuse bits and using an internal clock. I can still communicate with the AVR, burn the code and verify it but it doesn't run. No blinky-blinky.
I have tried burning the Arduino bootloader onto the AVR and again, no success.
I have tried burning the code without the bootloader. Same effect.
The only thing I didn't try was to install the chip in the Arduino board as the board I'm using has an SMD chip while I'm using a through hole package.
Important note - I have a code written in C (no Arduino involved here) and as soon as I upload this code it starts right up and runs just fine. With the Arduino code the chip just sits there doing absolutely nothing but I can still talk to it with the programmer.
What am I doing wrong??
There must be something that is not included in all those online guides that prevents the chip from executing the Arduino code.
Thanks,
Tom