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?
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:
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.
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?