ATMEG 328p getting bricked upon programming

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

Dear All, 

 

I am not new to programming. However possibly not as experienced as you all. 

I am programming my ATMEL328p (on a Nano Boar) with an ICE using the ISP header. Before programming, I am able to read the device signature and fuses etc. without an issue. The programming is successful and I am able to verify the code. 

 

However, after programming if I remove the power and then again reconnect via the ICE (I am using Atmel Studio). Then it says 

 

"

Timestamp:    2020-02-08 16:48:17.922
Severity:        ERROR
ComponentId:    20100
StatusCode:    1
ModuleName:    TCF (TCF command: Device:startSession failed.)

Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (Command has failed to execute on the tool)"

 

I have bricked now almost 5 Nanos this way. I never had a problem with this earlier.

 

Can someone help. I am much obliged. 

 

 

Regards

 

 

 

---

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

You are likely messing up the clock fuse bits.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Xxin wrote:

 

However, after programming if I remove the power and then again reconnect via the ICE (I am using Atmel Studio). Then it says 

 

You do give it an external power source right????? The ICE will not provide power to the device so you need to re-apply a second power source.

 

IN addition with JS his comment. What do you write the fuses to?

do you use the ICE/JTAG interface for programming and accidentally disable that? or do you use the ISP interface for programming?