ATTiny2313 bootloader

hi there

I am trying to programme ATTiny2313 I am using boot loader off this website ToasterBotics: ATTiny2313 with Arduino
Following the instructions on the web site it states I need to change the file main.cxx to cpp how do I go about doing this please?

Rename it to .cpp?

Doc

so i'm just changing the file name not the file type ?

i think that page is a little outdated, he is talking about #include "WProgram.h" which was used in older versions of Arduino (before vesion 1.00)
You could use this core instead:

https://code.google.com/p/arduino-tiny/

It come with an installation uide

https://code.google.com/p/arduino-tiny/source/browse/README

Note there is a version for Arduino 1.0x and 1.5.x

A step by step guide:

http://www.ernstc.dk/arduino/2313.htm

ok I will have a go with this one

where it says :
Open the "boards.txt" file and the "Prospective Boards.txt" file using your
favourite text editor

so am I ok opening it with notepad?

and where it says:
In the "boards.txt" file, change the "upload.using" entries to the
appropriate value for your setup

so what do I change it to?

so am I ok opening it with notepad?

Notepad is fine

change the "upload.using" entries

If you are using ArduinoISP, you use this

attiny2313at1.upload.using=arduino:arduinoisp

In response to the original question the data before the " . " is the file name the data after the " . " is the file type...
exe, .com, .txt refer to the file type. However if the contents of the file don't match the named file type you may have some issues however in this case I believe that they are of the correct content vs type, Just the file extension is named that way for the other code that employs that file. at least this is the way I was taught what an 8.3 file naming convention meant.

Doc

does that look ok was it still not working?

attiny2313at1.name=ATtiny2313 @ 1 MHz

The following do NOT work...

attiny2313at1.upload.using=arduino:arduinoisp

attiny2313at1.upload.using=arduino:arduinoisp

The following DO work (pick one)...

#attiny2313at1.upload.using=arduino:arduinoisp

attiny2313at1.upload.protocol=avrispv2

attiny2313at1.upload.using=arduino:arduinoisp

attiny2313at1.upload.maximum_size=2048

Default clock (slowly rising power; long delay to clock; 8 MHz internal; divide clock by 8)

Int. RC Osc. 8 MHz; Start-up time: 14 CK + 65 ms; [CKSEL=0100 SUT=10]; default value

Divide clock by 8 internally; [CKDIV8=0]

Brown-out detection disabled; [BODLEVEL=111]

Serial program downloading (SPI) enabled; [SPIEN=0]

Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny2313at1.bootloader.low_fuses=0x64
attiny2313at1.bootloader.high_fuses=0x9F
attiny2313at1.bootloader.extended_fuses=0xFF
attiny2313at1.bootloader.path=empty
attiny2313at1.bootloader.file=empty2313at1.hex

attiny2313at1.build.mcu=attiny2313
attiny2313at1.build.f_cpu=1000000L
attiny2313at1.build.core=tiny

You should just uncomment (remove the # sign) the options you want to use.

For example this line

#attiny2313at1.upload.using=arduino:arduinoisp

becomes

attiny2313at1.upload.using=arduino:arduinoisp

does that look ok was it still not working?

Which errors do you get ?
Please post them here

o I see so like this:

attiny2313at1.name=ATtiny2313 @ 1 MHz

# The following do NOT work...
# attiny2313at1.upload.using=avrispv2
# attiny2313at1.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny2313at1.upload.using=arduino:arduinoisp
# attiny2313at1.upload.protocol=avrispv2
# attiny2313at1.upload.using=pololu

attiny2313at1.upload.maximum_size=2048

# Default clock (slowly rising power; long delay to clock; 8 MHz internal; divide clock by 8)
# Int. RC Osc. 8 MHz; Start-up time: 14 CK + 65 ms; [CKSEL=0100 SUT=10]; default value 
# Divide clock by 8 internally; [CKDIV8=0]
# Brown-out detection disabled; [BODLEVEL=111]
# Serial program downloading (SPI) enabled; [SPIEN=0]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny2313at1.bootloader.low_fuses=0x64
attiny2313at1.bootloader.high_fuses=0x9F
attiny2313at1.bootloader.extended_fuses=0xFF
attiny2313at1.bootloader.path=empty
attiny2313at1.bootloader.file=empty2313at1.hex

attiny2313at1.build.mcu=attiny2313
attiny2313at1.build.f_cpu=1000000L
attiny2313at1.build.core=tiny

Which errors do you get ?
Please post them here

I don't have any, it does not show up in tools - board

Is your boards.tx located in the right place:

C:\Projects\Arduino\hardware\tiny\boards.txt

Note it is case sensitiv (small b)

Whisch Arduino IDE version are you using ?

Is your boards.tx located in the right place:

C:\Projects\Arduino\hardware\tiny\boards.txt

yes as you have show above
and yes all in lowercase

Whisch Arduino IDE version are you using ?

1.0

Just to be sure you use the right folder:

In the Arduino IDE use:
Sketch->Show SketchFolder

On my PC (Win Vista) the path is:

c:\Users\EC\Documents\Arduino

So my boards.txt is located here:

c:\Users\EC\Documents\Arduino\hardware\tiny\boards.txt

yes this is my one
c:\Users\Joe\Documents\Arduino\hardware\tiny\boards.txt

?

any ideas what the problem could be?
could it be anything else?

thanks Joe

Might seem daft, but have you closed and reopened the Arduino IDE after changing the boards.txt file?

I'm using the files that Erni give you in the Reply #3 and it works ok

Jus unzip in the folder hardware, and setup the boards.txt file.

I have mine here:

C:\Program Files\Arduino\hardware\tiny

the content of my boards.txt fiel is:

###########################################################################

attiny2313at8.name=ATtiny2313 @ 8 MHz

# The following do NOT work...
# attiny2313at8.upload.using=avrispv2
# attiny2313at8.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny2313at8.upload.using=arduino:arduinoisp
# attiny2313at8.upload.protocol=avrispv2
# attiny2313at8.upload.using=pololu

attiny2313at8.upload.maximum_size=2048

# Default clock (slowly rising power; long delay to clock; 8 MHz internal)
# Int. RC Osc. 8 MHz; Start-up time: 14 CK + 65 ms; [CKSEL=0100 SUT=10]; default value 
# Brown-out detection disabled; [BODLEVEL=111]
# Serial program downloading (SPI) enabled; [SPIEN=0]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny2313at8.bootloader.low_fuses=0xE4
attiny2313at8.bootloader.high_fuses=0x9F
attiny2313at8.bootloader.extended_fuses=0xFF
attiny2313at8.bootloader.path=empty
attiny2313at8.bootloader.file=empty2313at8.hex

attiny2313at8.build.mcu=attiny2313
attiny2313at8.build.f_cpu=8000000L
attiny2313at8.build.core=tiny
 
###########################################################################
###########################################################################

attiny2313at1.name=ATtiny2313 @ 1 MHz

# The following do NOT work...
# attiny2313at1.upload.using=avrispv2
# attiny2313at1.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny2313at1.upload.using=arduino:arduinoisp
# attiny2313at1.upload.protocol=avrispv2
# attiny2313at1.upload.using=pololu

attiny2313at1.upload.maximum_size=2048

# Default clock (slowly rising power; long delay to clock; 8 MHz internal; divide clock by 8)
# Int. RC Osc. 8 MHz; Start-up time: 14 CK + 65 ms; [CKSEL=0100 SUT=10]; default value 
# Divide clock by 8 internally; [CKDIV8=0]
# Brown-out detection disabled; [BODLEVEL=111]
# Serial program downloading (SPI) enabled; [SPIEN=0]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny2313at1.bootloader.low_fuses=0x64
attiny2313at1.bootloader.high_fuses=0x9F
attiny2313at1.bootloader.extended_fuses=0xFF
attiny2313at1.bootloader.path=empty
attiny2313at1.bootloader.file=empty2313at1.hex

attiny2313at1.build.mcu=attiny2313
attiny2313at1.build.f_cpu=1000000L
attiny2313at1.build.core=tiny
 
###########################################################################

I guess the only difference is that I have the files in the program files folder, the folder of the installation of arduino.
If not work please redo it again.

oh, suggesting that Tom tell you, you need to set it up before open the arduino IDE, other ways the changes may not have affect.
nice day.

I copy that one into my boards.txt and still not working, I do close the arduino before altering anything I do not open until everything else has been closed, by the looks of it it cant be that folder must be something else on the down load?

I have deleted and reinstalled to make sure I have not altered anything else, still no difference?

I don't know

If it is of any help, below is a screenshot from my PC.

The folder with the arrow contains the boards.txt file, which by the way is a just a copy of Prospective Boards.txt .

tiny_folders.jpg