Atmega2560 standalone programming but not executing.

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

hello,   

    I have build this board having Atmega2560, using ISP as programming  interface. I can detect uC using 'usbasp' even I can programme it but  nothing executing. I tried changing fuses to FF, D9,FD but again no luck. There is another issue if I use atmel ice then can't detect uC in atmel Studio programming mode but if I use Arduino Ide then it can upload the code using atmel ice but again no luck in executing any chunk of code. :(

 

Attachment(s): 

This topic has a solution.
Last Edited: Wed. Feb 24, 2021 - 02:09 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is not enough information to even help a little. Do you have an LED that you can flash or anything else that can be used as an indicator in a minimal program?

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

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

Thanks for reply Jim. Yes I have LED even relays on board.  Which are not toggling, I tried both ways using internal RC oscillator or external crystal using mega core bootloader but useless no response even tried changing 3 different uC's.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Shasha81 wrote:
I can detect uC using 'usbasp' even I can programme it but  nothing executing.
Is _Reset pulled permanently low? ISP happens with _Reset pulled low so that might work but if it remained low the chip would never come out of reset and would never begin to execute code.

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

What is VCC? Is the BOD set correctly?

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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


Shasha81 wrote:
I tried changing fuses to FF, D9,FD but again no luck.

Your missing the xtal, once you set those fuses it will no longer communicate with your ISP programmer as it has no clock!

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Thanks for reply, looks like this was culprit there was short between pullup and ground which made reset pin about 1v

Last Edited: Wed. Feb 24, 2021 - 02:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for reply VCC is 5v BOD disabled!

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

That photograph I took before I added crystal and changed fuse to external crystal. Problem I found was short between ground and reset pullup. Thanks for the suggestion

Last Edited: Wed. Feb 24, 2021 - 02:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Shasha81 wrote:
ooks like this was culprit there was short between pullup and ground which made reset pin about 1v
Holy mother of God I think this is the first time I answered a hardware question correctly!! cheeky