Can't use SPI after programming the uC (ATMEGA 328P) with Atmel Ice

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

Yesterday I used the Atmel Ice programmer on my Arduino Nano board, I mistakenly programmed the reset disable fuse, I tried to unprogramm it using an arduino based circuit for high voltage programming and didn't work. So I just got myself another Arduino nano board and read the fuses before doing anything else, this time I checked that the reset disable fuse was unprogrammed, so I uploaded the code, and now I can't programm it anymore, neither do debugging, any ideas of what happened?... 

 

I programmed the first board many times via the bootloader without any problem, so this really confuses me as I am using a dedicated programmer.

Victor

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

Nano's like all Arduinos have a boot loader to make loading code easy, why use the external programmer, as it will wipe out the bootloader when the programmer does a chip erase? 

 

As for why your HV solution did not work, that method only works on unmounted, bare chips, the HV will destroy anything else on the pcb.

 

Fuses are something you really need to understand before attempting to change, btw, why do you want to change the fuses? 

I always consult this web site before setting fuses so I know what I'm doing...   http://www.engbedded.com/fusecalc/

 

Again my advise, use the bootloader!

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

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

Thanks for repplying. I wanted to use the debbug mode on atmel studio 7 for testing it in hand with programming the chip, I ended up getting what happened:

 

So, I connected the chip and it got recognized, but as soon as I entered to the debug mode by setting the debbugg enable fuse I couldn't communicate to it because arduino boards have an RC network connected to the reset pin, and as that pin is needed for debbugging it didn't work, so what I did was unsolder this two as described in this post:

 

https://www.avrfreaks.net/forum/atmel-ice-failed-enable-dw

 

I had to do the same for the other arduino nano in order to get back to the normal fuse settings so I could use it as normal. So I ended up with two arduino nanos, one with debug capability and another on normal mode for uploading the code after I check everything after debbuging on the other one.

 

Thanks for your reply. I hope I can help someone out with this... hahaha

Victor

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

Ah, that makes sense now, if you had said you were trying to use debug mode, we could have told you about the reset issue. 

Having two nano's, one for normal use and one modified for debug is a good idea!

Good luck with your project!

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...