Arduino Forum

Using Arduino => Microcontrollers => Topic started by: That1guy99 on Sep 26, 2012, 04:01 am

Title: help with programming ATTINY13a
Post by: That1guy99 on Sep 26, 2012, 04:01 am
its all in the title.
I have IDE 1.0 and downloaded this:  https://sourceforge.net/projects/ard-core13/
it installed at C:\arduino\arduino-1.0.1\hardware\arduino\cores/core13

and put this in my boards.txt
Code: [Select]
################################################################

attiny13.name=Attiny 13A standalone

attiny13.upload.using=arduino:arduinoisp
attiny13.upload.maximum_size=1024
attiny13.upload.speed=19200

attiny13.bootloader.low_fuses=0x7B
attiny13.bootloader.high_fuses=0xFF
attiny13.bootloader.path=empty
attiny13.bootloader.file=empty

attiny13.bootloader.unlock_bits=0xFF
attiny13.bootloader.lock_bits=0xFF

attiny13.build.mcu=attiny13a
attiny13.build.f_cpu=128000
attiny13.build.core=core13

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

attiny13int.name=Attiny13 @ 128 KHz (internal watchdog oscillator)
attiny13int.upload.using=arduino:arduinoisp
attiny13int.upload.maximum_size=1024
attiny13int.upload.speed=250 # important for not losing connection to a slow processor
attiny13int.bootloader.low_fuses=0x7B
attiny13int.bootloader.high_fuses=0xFF
attiny13int.bootloader.unlock_bits=0x3F
attiny13int.bootloader.lock_bits=0x3F
attiny13int.build.mcu=attiny13
attiny13int.build.f_cpu=128000
attiny13int.build.core=core13

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

attiny13at4.name=ATtiny13 @ 4.8MHz (internal 4.8 MHz clock)
attiny13at4.upload.using=arduino:arduinoisp
attiny13at4.bootloader.low_fuses=0x69
attiny13at4.bootloader.high_fuses=0xff
attiny13at4.upload.maximum_size=1024
attiny13at4.build.mcu=attiny13
attiny13at4.build.f_cpu=600000
attiny13at4.build.core=core13
###############################################################

attiny13.name=ATtiny13 @ 9.6MHz (interne 9.6 MHz clock)
attiny13.upload.using=arduino:arduinoisp
attiny13.bootloader.low_fuses=0x7a
attiny13.bootloader.high_fuses=0xff
attiny13.upload.maximum_size=1024
attiny13.build.mcu=attiny13
attiny13.build.f_cpu=1200000
attiny13.build.core=core13
###############################################################



Also hooked up the wires correctly to the attiny13a as shown here http://www.youtube.com/watch?v=p-fieBPj9Ng&feature=related

in the IDE I switched the board to attiny13(tryed all of the different attiny options with same result)
then selected tools/programmer and set it as arduino ISP
I use this code for testing it

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
*/

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 4;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}


and EVERYTIME I upload it I get this:
avrdude: stk500_getsync(): not in sync: resp=0x00

can somebody please tell me what I am doing wrong? its been driving me crAzy for 3 days now. I really would like some tips or help as to what is wrong.

thnks:)
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 26, 2012, 04:18 am
I am using the arduino UNO btw
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 26, 2012, 04:51 am
I know, it is a silly question, but did you "Burn Bootloader" for the ATTiny setup you want?  There is no actual bootloader, but it will set the fuses and such.  I have only done this once with an ATTiny, but I remember running at 5 MHz (4.8 actual) range internal. 

If none of those work, I will setup a "Tiny Project" and see how that library behaves.
Title: Re: help with programming ATTINY13a
Post by: nickgammon on Sep 26, 2012, 04:53 am
Can you provide a clear photo of your wiring please?

Then try running the sketch described here on your Uno:

http://www.gammon.com.au/forum/?id=11633

Judging by the video the wiring should stay the same. Please post the results you get.
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Sep 26, 2012, 04:55 am
Hi

Since you're using the Uno, have you added a 10?F capacitor between the RESET and GND to prevent the automatic reset?  In the video you embedded he's not using a uno, so he doesn't do that.

Cheers ! Geoff
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 27, 2012, 04:05 am
Quote
have you added a 10?F capacitor between the RESET and GND to prevent the automatic reset?

I still get the same error: avrdude: stk500_getsync(): not in sync: resp=0x00

Quote
but did you "Burn Bootloader" for the ATTiny setup you want?  There is no actual bootloader, but it will set the fuses and such.  I have only done this once with an ATTiny, but I remember running at 5 MHz (4.8 actual) range internal. 


avrdude: stk500_getsync(): not in sync: resp=0x00 I dont know why its doing that but thats what it says:/

Quote
Can you provide a clear photo of your wiring please?

Then try running the sketch described here on your Uno:

http://www.gammon.com.au/forum/?id=11633

Judging by the video the wiring should stay the same. Please post the results you get.


I rewired my attiny13a as described in your link just to verify it was right.

as for the sketch, I get a whole crap load of errors like these
Atmega_Board_Detector:378: error: 'Serial' was not declared in this scope:/

so far, nothing seems to work from what I have tryed:/ could somebody please make a WORKING stable core or something for the attiny13 please?

thanks for posting all the responses and tips (even though they did not appear to solve the issue)
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Sep 27, 2012, 04:14 am

could somebody please make a WORKING stable core or something for the attiny13 please?
You can trust that it will work if you get everything right your side.  Once it's sorted this will be second nature to you - so do keep at it.

As Nick suggested, can you post a photo of what you've done so we can verify it visually?
Title: Re: help with programming ATTINY13a
Post by: nickgammon on Sep 27, 2012, 04:42 am

as for the sketch, I get a whole crap load of errors like these
Atmega_Board_Detector:378: error: 'Serial' was not declared in this scope:/


Serial certainly should be defined. When you compile that sketch the target board is the Uno, not your Attiny13. You upload that sketch to the Uno, use the wiring you already had, and let the Uno test the Attiny chip.
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 27, 2012, 04:58 am
Hope this helps

http://i1065.photobucket.com/albums/u394/TheEPICness99/Capture.jpg
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 27, 2012, 05:03 am
Quote
Serial certainly should be defined. When you compile that sketch the target board is the Uno, not your Attiny13. You upload that sketch to the Uno, use the wiring you already had, and let the Uno test the Attiny chip.


Thnks:)

I still get an error but its only one error:
Atmega_board_Detector:300 error: 'SCK' was not declared in this scope
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 27, 2012, 05:13 am
I agree with Nick.  I just hooked up using Nick's ABP and it ID'd the chip out of the gate (Out of Box):

Code: [Select]
Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x90 0x07
Processor = ATtiny13A
Flash memory size = 1024 bytes.
LFuse = 0x6A
HFuse = 0xFF
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0x56
No bootloader support for this device.
Type 'C' when ready to continue with another chip ...


Hookups
Arduino  |  ATTiny13

D10     ---  Pin 1 - Reset (with the Indentation "Dot")
D11     ---  Pin 5 - MOSI (Bottom across from Pin 4)
D12     ---  Pin 6 - MISO (Up from Pin 5)
D13     ---  Pin 7 - SCK

Vcc 5v ---  Pin 8 - Vcc
Gnd    ---  Pin 4 - Gnd

No other passives.

You hookups appear to be like mine.  Only three things I can think of,

1. ATTiny Reset disabled
2. One of the jumpers has a short
3. Uno bootloader corrupted


Title: Re: help with programming ATTINY13a
Post by: nickgammon on Sep 27, 2012, 05:13 am

I still get an error but its only one error:
Atmega_board_Detector:300 error: 'SCK' was not declared in this scope


I compiled it with Arduino 1.0.1 on both Mac and Windows so I don't know what is going on with your installation.
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 27, 2012, 06:29 am
I just checked out the "core13" installed exactly as installed in the OP and it will upload the stated "Blink" with no problems with all three clock settings (128 kHz WD was a fast blink).

I pulled the ICSP wires one by one and the only ones that give the communication error were disconnected MOSI and MISO lines.

One of those jumpers are bad or flaky connection there abouts.
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 28, 2012, 03:16 am
I am so stupid.

I forgot to program the arduinoISP sketch
into the arduino before I switched the board to attiny13(or did I not have to do that part?)...

now I am getting the following errors:


avrdude: please define PAGEL and BS2 signals in the
configuration file for part ATtiny13
avrdude: Yikes! Invalid device signature.

        double check connections and try again, or use -F to

override

        this check



WHAT is PAGEL?



It sounds like I am on the right track considering the original
error I was having...(I hope)...




"I pulled the ICSP wires one by one and the only ones that give the communication error were disconnected MOSI and MISO lines.

One of those jumpers are bad or flaky connection there abouts."

I will check that out and use different jumpers. thanks:)



Thnks for all the help   :)
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 28, 2012, 06:26 am
Quote
avrdude: please define PAGEL and BS2 signals in the
configuration file for part ATtiny13
avrdude: Yikes! Invalid device signature.


Try moving the 10uF to your Uno Reset and Gnd and try again (Remember polarity on the cap).  Apparently it is a common Uno problem when programming the ATTiny.  When I was pulling the ICSP jumpers, the Reset jumper not connected caused that error with me.
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 29, 2012, 03:39 am
Quote
Try moving the 10uF to your Uno Reset and Gnd and try again (Remember polarity on the cap).  Apparently it is a common Uno problem when programming the ATTiny.  When I was pulling the ICSP jumpers, the Reset jumper not connected caused that error with me.


I have tried and done that with multiple 10 uf caps( yes I did check to make sure I had it in the right way) with no success
Also, I made sure that there were no bad wires(there are none), checked the connections, I even changed the chip and put a fresh one in the slot and I still get this error:

avrdude: please define PAGEL and BS2 signals in the
configuration file for part ATtiny13
avrdude: Yikes! Invalid device signature.

        double check connections and try again, or use -F to

override

        this check


can someone please tell me why its doing this? because its been driving nuts.

Title: Re: help with programming ATTINY13a
Post by: strykeroz on Sep 29, 2012, 04:29 am
Hi,

Reading back through this I'm not precisely sure where you are at when you get this error.  Presumably your ArduinoISP sketch is loaded okay, then you've wired everything back up as per the tutorial so you're ready to program the ATTiny (added the reset capacitor and other wires to Arduino) then you've changed the target board to the correct ATTiny13, and changed the programmer to Arduino as ISP, then you've done the "burn the bootloader" step (or is this where you're getting the error) and now you're trying to upload a sketch and getting the error?

Geoff
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 29, 2012, 04:37 am
Another thing you can try is move the ATTiny to the opposite side of that breadboard and hook up there.

All I can say is I followed the same directions that you used and it loaded the first time.  I verified the core on all three frequencies and they worked.  No passive componets used (i.e. capacitors, resistors except the LED) just straight from D10-13 and power.

Is your "core13" folder (must be exact, no caps) in \hardware\arduino\cores next to the "arduino" core folder?
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 29, 2012, 04:40 am
Quote
Hi,

Reading back through this I'm not precisely sure where you are at when you get this error.  Presumably your ArduinoISP sketch is loaded okay, then you've wired everything back up as per the tutorial so you're ready to program the ATTiny (added the reset capacitor and other wires to Arduino) then you've changed the target board to the correct ATTiny13, and changed the programmer to Arduino as ISP, then you've done the "burn the bootloader" step (or is this where you're getting the error) and now you're trying to upload a sketch and getting the error?



that is correct.

I get the error regardless of what I upload. If I try to burn the bootloader I get the error, or if I try to upload a sketch I get the error.

"Is your "core13" folder (must be exact, no caps) in \hardware\arduino\cores next to the "arduino" core folder?"

yes it is in that folder

and I will try moving the chip to the other side of the breadboard also.
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 29, 2012, 04:55 am
BTW, I just switched to an Uno and the reset cap is unnecessary, and all three speeds work; blinking on pin3 of the ATTiny.  I have Uploaded via Programmer and just the Normal Upload button (I didn't know that would work...).
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Sep 29, 2012, 05:01 am
Hi,

I've tried to reproduce what you're doing.  I don't have any ATTiny13's but had a fresh ATTiny85, unused right out of the tube.

That error appears to be when the ISP sketch gets 0's as the returned signature - which is what happens when there's no response from the chip.  One thought  - I can reproduce that error burning the bootloader if I put the ATTiny in the circuit wrong way round.  Just clutching at straws, but the dot at pin 1 really is indistinct.

Geoff
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 29, 2012, 05:15 am

Hi,

I've tried to reproduce what you're doing.  I don't have any ATTiny13's but had a fresh ATTiny85, unused right out of the tube.

That error appears to be when the ISP sketch gets 0's as the returned signature - which is what happens when there's no response from the chip.  One thought  - I can reproduce that error burning the bootloader if I put the ATTiny in the circuit wrong way round.  Just clutching at straws, but the dot at pin 1 really is indistinct.

Geoff


Hi Geoff,

I originally thought that setting the bootloader "fuses" were needed, but I was wrong.  I did it with and without with no difference.  We are just Uploading without bootloader to the ATTiny13.  The only instance of a "PAGEL" error that I could reproduce is when the reset signal is disconnected from the Tiny.  Obviously, disconnecting the MOSI or MISO causes the infamous communication error.  I think your replication is the RESET signal going into pin 5 MISO and MISO going into the RESET of the Tiny ;)
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 29, 2012, 05:27 am
Quote
BTW, I just switched to an Uno and the reset cap is unnecessary, and all three speeds work; blinking on pin3 of the ATTiny.  I have Uploaded via Programmer and just the Normal Upload button (I didn't know that would work...).


Just to verify, the reset cap goes between the ARDUINO reset and the GND, not the reset on the attiny13a and your using arduino 1.0.1

Ok, so far, I placed the core13 in the correct folder, copied and pasted the text:

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

attiny13.name=Attiny 13A standalone

attiny13.upload.using=arduino:arduinoisp
attiny13.upload.maximum_size=1024
attiny13.upload.speed=19200

attiny13.bootloader.low_fuses=0x7B
attiny13.bootloader.high_fuses=0xFF
attiny13.bootloader.path=empty
attiny13.bootloader.file=empty

attiny13.bootloader.unlock_bits=0xFF
attiny13.bootloader.lock_bits=0xFF

attiny13.build.mcu=attiny13a
attiny13.build.f_cpu=128000
attiny13.build.core=core13

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

attiny13int.name=Attiny13 @ 128 KHz (internal watchdog oscillator)
attiny13int.upload.using=arduino:arduinoisp
attiny13int.upload.maximum_size=1024
attiny13int.upload.speed=250 # important for not losing connection to a slow processor
attiny13int.bootloader.low_fuses=0x7B
attiny13int.bootloader.high_fuses=0xFF
attiny13int.bootloader.unlock_bits=0x3F
attiny13int.bootloader.lock_bits=0x3F
attiny13int.build.mcu=attiny13
attiny13int.build.f_cpu=128000
attiny13int.build.core=core13

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

attiny13at4.name=ATtiny13 @ 4.8MHz (internal 4.8 MHz clock)
attiny13at4.upload.using=arduino:arduinoisp
attiny13at4.bootloader.low_fuses=0x69
attiny13at4.bootloader.high_fuses=0xff
attiny13at4.upload.maximum_size=1024
attiny13at4.build.mcu=attiny13
attiny13at4.build.f_cpu=600000
attiny13at4.build.core=core13
###############################################################

attiny13.name=ATtiny13 @ 9.6MHz (interne 9.6 MHz clock)
attiny13.upload.using=arduino:arduinoisp
attiny13.bootloader.low_fuses=0x7a
attiny13.bootloader.high_fuses=0xff
attiny13.upload.maximum_size=1024
attiny13.build.mcu=attiny13
attiny13.build.f_cpu=1200000
attiny13.build.core=core13
###############################################################


in the boards.txt of the arduino,

programmed the arduinoISP sketch to the arduino

switched the tools/boards to attiny13
changed programmer to arduino ISP

connected the attiny13 with jumper wires

programmed the led blink getting the resulting error :

avrdude: please define PAGEL and BS2 signals in the
configuration file for part ATtiny13
avrdude: Yikes! Invalid device signature.

        double check connections and try again, or use -F to

override

        this check






Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 29, 2012, 05:38 am
Quote
Just to verify, the reset cap goes between the ARDUINO reset and the GND, not the reset on the attiny13a and your using arduino 1.0.1


I used the Arduino 1.0 as in the Opening Post.  I used no caps.  I used a FTDI type board and the Uno.  Just jumpers from the Arduino boards with the Arduino as ISP to the mini breadboard with an ATTiny13a.  I pasted the same board information as the OP into the boards.txt file.  Currently it is blinking with the ATTiny @ 128kHz.
Title: Re: help with programming ATTINY13a
Post by: Coding Badly on Sep 29, 2012, 06:17 am
BTW, I just switched to an Uno and the reset cap is unnecessary...


It depends on the Uno.  Sometimes it is necessary.  Sometimes not.  Because the Uno has a resonator and the timing between the bootloader and avrdude is so close an Uno that runs a bit slow will work.

Whether or not it works, uploads go a bit faster if auto-reset is disabled.
Title: Re: help with programming ATTINY13a
Post by: Coding Badly on Sep 29, 2012, 06:20 am
Just to verify, the reset cap goes between the ARDUINO reset and the GND, not the reset on the attiny13a and your using arduino 1.0.1


Yes.  Be careful to observe the polarity.

Turn on verbose output and post the results.
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 30, 2012, 02:50 am
Quote
Turn on verbose output and post the results.


Verbose output?






Thank you all for the help. Like I said, I am still getting the error. I have checked connections, put a fresh chip on the board, messed around with the 10uf cap, made sure I had the core in the right folder and the text correct, rechecked all of that over 3 times, and I still get the error. I dont know what to do or what I am doing wrong. I am thinking about getting a couple of attiny45/85's and try to program them because they seem to be more popular and have been more successfully programmed with more stable cores..........or not.....

anyways, thanks for all the help :)
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Sep 30, 2012, 02:59 am
File -> Preferences -> Show verbose output during [ ] compilation [X} upload
Title: Re: help with programming ATTINY13a
Post by: nickgammon on Sep 30, 2012, 03:00 am
(http://www.gammon.com.au/images/Arduino/Arduino_forum_124444.png)
Title: Re: help with programming ATTINY13a
Post by: That1guy99 on Sep 30, 2012, 04:18 am
OH MY GOD IT WORKS!!!!!!!! I re downloaded the IDE and REinstalled the cores and it WORKS.
Time to go relax now that I have FINALLY made it work

Thanks for all this help guys:)

Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 01, 2012, 11:07 am
How was your problem solved? because i have run in to a similar problem.

when im trying to upload the blink sketch i get the the following error:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny13
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny13

then the led on the attiny goes high but does not blink.

i am confident that my connections from the arduino(duemilanove with 328) i correct

parts and software used:

arduino duemilanove with 328p proccessor
10uf capacitor between reset and ground
arduino isp sketch loaded
arduino IDE 1.0.1 on OSX10.8.2
core 13 attiny13 core


there where no hardware folder i my arduino folder so i had to create one. and the core13 is now placed in /Users/gaggenau/Documents/Arduino/hardware/Core13/cores/
the boards.txt is placed in:
/Users/gaggenau/Documents/Arduino/hardware/Core13/

i guees the fact that i can choose attiny13 and compile the sketch in the IDE means that the placement is correct?
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Nov 01, 2012, 11:19 am
Hi

Quote
when im trying to upload the blink sketch i get the the following error:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny13
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny13

This indicates no problem - your ATTiny has been programmed successfully at that stage and it confirms your connections were good.

What LED on the ATTiny goes high?

Geoff
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 01, 2012, 12:38 pm
oh sorry I mean a led is connected to output 0 on the attiny.
actually i have tried different outputs on the attiny and the result i the same.

what could i possibly have done wrong if i am using the blink example sketch and upploading is not the problem?
i have a light from the led but no blink. that must indicate that i hav e chosen the right output in the sketch.
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Nov 01, 2012, 01:59 pm
Just clarifying: which blink example sketch are you using?  If it's the Arduino one it blinks D13, and an ATTiny doesn't have one of those...  Or have you got it blinking D0 and you've got the LED connected to leg 5?
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 01, 2012, 02:13 pm
yes its connected to to D0 at legfive.

Code: [Select]
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
*/


// give it a name:
int led = 0;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}


seems like it´s getting stuck in the first line of the code in the loop. because when change the code to start with low it the led is dark. It´s the same on the other digital pins.
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Nov 01, 2012, 03:14 pm
What happens when you switch pins?

Code: [Select]
// give it a name:
int led = 4;
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 01, 2012, 04:00 pm
the same thing happens when i switch pins. tried them all.

could have something to do with the core? maybe that the delay is not supprted? I´m guessing wild now. :D
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 01, 2012, 04:25 pm
one thing i noticed is that in som versions of the boards.txt differs slightly.


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

attiny13.name=ATtiny13 @ 9.6MHz (interne 9.6 MHz clock)
attiny13.upload.using=arduino:arduinoisp
attiny13.bootloader.low_fuses=0x7a
attiny13.bootloader.high_fuses=0xff
attiny13.upload.maximum_size=1024
attiny13.build.mcu=attiny13
attiny13.build.f_cpu=1200000                                               in some versions of this its 9600000 or 100000L
attiny13.build.core=core13
###############################################################

I have understand that this is the setup of the internal clockspeed, nothing else.
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Nov 01, 2012, 07:55 pm
The core is fine.  As I stated in this topic earlier, I used everything posted with no changes and it worked "out of box".  Since there is no pin mapping with this core, I do not think pin 0 will work.  I will verify this afternoon.

I tried setting the LED to 0 and it did not work.  Try hooking pin 3 2 on the tiny and change int led = 0 to int led = 4.

--- EDIT ---

Never-mind.  All digitals (PCINT0-4) "blink" except for PCINT5/RESET.

PCINT5 - VCC
PCINT4 - PCINT2
PCINT3 - PCINT1
GND     - PCINT0


Title: Re: help with programming ATTINY13a
Post by: strykeroz on Nov 01, 2012, 09:36 pm
If you swap make that first line a write to LOW is the LED still lit or does it correctly respond?
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 02, 2012, 12:47 pm
yes i have tried change the first line to low with the result that the led is not lit.
thats why i get a feeling that the loop gets stuck after the first line.

and i have tried using int led=4.

still not working

now im going to try a another attiny.
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Nov 02, 2012, 01:08 pm

now im going to try a another attiny.
Sounds like a plan !
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 02, 2012, 02:01 pm
well now i have tried another attiny and i have the same problem.
tried a uno as programer instead of the duemilanove.....no luck

I disassembled everything and restarted over . but i got the same result just won´t blink just stay in its status is has on the first line in the loop.



this is starting to get a little bit frustrating now. any more suggestions?
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Nov 02, 2012, 03:14 pm

this is starting to get a little bit frustrating now. any more suggestions?
Perhaps a silly question but not sure if you've covered it: did you do the "burn bootloader" step to make sure it's running at that clock speed?
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Nov 02, 2012, 04:50 pm
Also, you can try what That1Guy99 did to fix it by installing another copy of Arduino IDE (say, 1.0) and reinstalling the core files and modifying the boards.txt with everything in the beginning of this Topic.

@strykeroz - I found the "burn bootloader" isn't necessary with core13 for setting the clockspeed because the high and low fuses come from the boards.txt.  I just select the 128kHz board and upload the sketch (Don't even have to select Upload via Programmer).
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 02, 2012, 05:52 pm
first i tried without the bootloader and then with. same result.
other things i tried was updating arduino ide to 1.0.1
reinstall core13 cores

im going to try to reinstall it on another mac that never had the arduino on it.
im not going to give up. programing a attiny13a with the blinky sketch is not rocket science.


guys! thanks for helping me out.
Title: Re: help with programming ATTINY13a
Post by: spcomputing on Nov 03, 2012, 04:15 am
Just an FYI, when you install other versions of Arduino IDE, it creates a new folder and an isolated version with all the aminities of that version but isolated from other versions other than the Documents\Arduino  directoryand the driver for USB2TTL.

Good luck!
Title: Re: help with programming ATTINY13a
Post by: strykeroz on Nov 03, 2012, 07:51 am

@strykeroz - I found the "burn bootloader" isn't necessary with core13 for setting the clockspeed because the high and low fuses come from the boards.txt.  I just select the 128kHz board and upload the sketch (Don't even have to select Upload via Programmer).
nice one.  I defer to your experience on that as I have settled on ATTiny85 as pretty much my weapon of choice ;)
Title: Re: help with programming ATTINY13a
Post by: gaggenau on Nov 06, 2012, 11:32 am
problem solved! thanks for the help!

the solution was to do a fresh install of the IDE and the core on a another mac.

now the biggest problem is to fit the code in to that tiny little memory of the attiny13 i guess thats why the attiny 85 is more popular.