Olimex Support Forum

Microcontrollers => AVR => Topic started by: beatlerat on November 09, 2025, 01:14:54 AM

Title: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: beatlerat on November 09, 2025, 01:14:54 AM
I thought I could do this without help, but I need to find a good tutorial, or a push to get going.  Here is my program.

$crystal = 1000000
Dim X As Byte
Config Portb.3 = Output
Do
Toggle Portb.3
Waitms 200
Toggle Portb.3
Waitms 1300
Loop

It compiles OK, but when I send it to the chip, nothing happens.  I had to replace the LM317T regulator on the board, but when I apply 12 volts to the board, the LED does not light up.  I set the chip voltage to 5 volts and have the 3.3v shunt unplugged.  I am using an older Keyspan USB to serial converter, and I am assuming my baud rates are suspect.  I have everything set to 9600.
Please help me where to look.  I am trying to keep this simple as I have been unable to program the chip using a Arduino Nano.
Thanks for your help.
Title: Re: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: LubOlimex on November 10, 2025, 08:37:22 AM
Ummm, ATtiny13 doesn't come in a package suitable for AVR-P20-10MHZ...
Title: Re: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: beatlerat on November 10, 2025, 11:16:59 PM
Quote from: LubOlimex on November 10, 2025, 08:37:22 AMUmmm, ATtiny13 doesn't come in a package suitable for AVR-P20-10MHZ...
You are correct.  I added an eight pin socket and correctly ran wires from the existing socket to the eight pin.
THanks

I am also running BASCOM AVR Demo
Title: Re: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: LubOlimex on November 11, 2025, 08:56:47 AM
Describe the exact connections between the target and the AVR-P20, maybe I can spot something wrong.

Maybe also test with avrdude it should have support for STK200.
Title: Re: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: beatlerat on November 11, 2025, 10:41:21 PM
I have tried installing AVRDUDE.  I don't know how to run it. 
Pin 1 to pin 1
Pin 10 to pin 4
Pin 17 to pin 5
Pin 18 to pin 6
Pin 19 to pin 7
Pin 20 to pin 8
If I could post a pic, I would.
This project is so simple but I can't get through it.
If the Olimex board's serial port isn't the way, how else do I get the chip programmed?  I am limited in space and this footprint is about all the room I have.
Thanks
Title: Re: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: LubOlimex on November 12, 2025, 10:53:20 AM
You can host the picture elsewhere and provide just the link here. There are a lot of free image hosting web-sites. I use imgur.
Title: Re: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: beatlerat on November 13, 2025, 01:13:48 AM
(https://i.imgur.com/hM5J1Q9.jpeg)
Title: Re: Need Help Programming a ATTiny13 with a Olimex AVR-P20-10MHZ Developement Board
Post by: beatlerat on November 13, 2025, 01:17:36 AM
Here is the back.(https://i.imgur.com/ucXEwQ4.jpeg)