Avr mkll programmer busy

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

I was working on a project and I was getting a head ache becuase my LED matrix's last line was showing garbage so i tried to see everything in slow motion . i was using shift register and my DOT matrix was udpating using a timer interrupt of 5 ms. in my attempt to see everything slowly i ended up editing my ISR routine of timer as following, where latch low  and latch high are latch pins of my shift registers

any way now I am unable to program my atmega128, I built my code again without that 2seconds delay but when i tried to went to the device programming section of atmel studio it shows avrisp mkll(busy)  .  i realize this is my own foolishness , but is there any way to erase chip ? my controller is smd , Thanks!!  


ISR()
{

Latch_LOW

delay(2000);

LATCH HIGH

}

 

This topic has a solution.
Last Edited: Fri. Jul 12, 2019 - 04:42 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SufyanRaza26 wrote:
any way now I am unable to program my atmega128, I built my code again without that 2seconds delay but when i tried to went to the device programming section of atmel studio it shows avrisp mkll(busy)  .
I think it's very unlikely that anything you have done in the 128 code has ANY connection to the ability to reprogram the chip. remember that when the AVRISPmkII is perforuming ISP it holds the AVR _reset pin low so it is completely reset while being reprogrammed. As such no code is running so nothing in the last code you programmed into it can have any effect on the ability to program it.

 

It's far more likely a wire has come loose.

 

An outside possibility is that if you weren't just programming code but you were also programming fuses last time you may have made some fuse combination that makes it difficult to do ISP.

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

clawson wrote:

remember that when the AVRISPmkII is perforuming ISP it holds the AVR _reset pin low so it is completely reset while being reprogrammed.

 

Thanks. I didn't know that