Solved: Unable to program Attiny13V

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please help. I am using an USB AVRISP XPII from Waveshare to program an ATTiny13V. Or I am hoping to.

One issue is the programmer likes to blink its orange light to signal something is wrong. I have connected the programmer to the ATTiny correctly. I have tried placing pullup resistors ranging from 0-18kOhms on the reset, MISO,MOSI, and SCK ports. Tried pullups on reset only as well. 

Second issue: I cannot program. The computer recognizes my programmer. It recognizes it as AVRISP mkII from Atmel, as it should. I have AVR Studio 5 which also seems to recognize it. However AVR Studio doesn't recognize I have an ATTiny13? or something? See the picture I attached below. My program is compilable. So the issue seems to be the connection between the programmer and the chip? I am a complete beginner please help me

Attachment(s): 

Last Edited: Thu. Sep 14, 2017 - 01:49 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sebe16 wrote:
I have tried placing pullup resistors ranging from 0-18kOhms on the reset, MISO,MOSI, and SCK ports. Tried pullups on reset only as well. 

Only reset needs pull up.
Try to lower ISP speed setting.
.
MG

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also tried that. Actually went down to 100Hz

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have tried placing pullup resistors ranging from 0-18kOhms on the reset, MISO,MOSI, and SCK ports.

 

Zero ohm pullups on any of the programming pins are just plain wrong.

 

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sebe16 wrote:
Also tried that. Actually went down to 100Hz

Then it's the wiring problem. Or you accidentally disable reset pin on fuse setting.
valusoft wrote:
Zero ohm pullups on any of the programming pins are just plain wrong.

Absolutely.
.
MG

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is 8-18kOhm acceptable? Because I tried that as well

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can you elaborate on accidentally disable reset pin on fuse setting?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sebe16 wrote:
Can you elaborate on accidentally disable reset pin on fuse setting?

If it couldn't read the signature of your Tiny from the very first time you connected it to your programmer then it won't be happen so ignore it.
But if you managed to program the fuse bit then it may happen by wrongly set fusebit.
.
Make sure that your programmer can read other MCU, also re-check the hardware connection including VCC and Ground.
I don't know if your programmer can also supply VCC to Tiny from the ISP connection or Tiny have to have self power supply. Make sure it has VCC supplied.
.
MG

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can anybody make sense of the picture I attached?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I externally supply VCC and gnd with a teensy3.2. Maybe not conventional but it supplies power. I don't know what a fuse bit is or how I could program it. I suppose I'll google that. Unless you can easily explain that one? If I fix the "fuse bit" problem, could I possibly then program my ATtiny?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you tested it to read other AVR and succeeded? That mean your programmer ISP connection is fine and you can focus on the Tiny problem.
Are you sure you wired the ISP correctly?
.
Read the Tiny datasheet at fusebit section for fusebit setup. I believe AS5 had a section for setting fusebit?
.

sebe16 wrote:
If I fix the "fuse bit" problem, could I possibly then program my ATtiny?

If you don't messed up with fusebit (you said you don't know what is it) then there's nothing to fix.
.
MG

I don't know why I'm still doing this hobby

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can anybody make sense of the picture I attached?

What picture? The one in #1?

 

You have chosen a debug tool not a programmer, the AVR ISP is NOT a debugger.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have AVR Studio 5

Toss your computer into the river and then go take a long hot shower.  5 was a bug-riddled disaster.  Try 4, 6, or 7.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

haha ok thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

so erm first problem solved.... I was applying a resistor from reset to ground, instead of VCC to reset... clearly I don't know what a pull up resistor is. My xpII now has two green stable lights. Now i will attempt to program