ATTINY104-XNANO Reset Disable bit won't set in Atmel Studio 7

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

I've started a project with the 104 Nano, and needed to use Port A 2 as an output. I set CONFW0 BTYE0.RSTDISBL to set the reset disable bit (0xFE), but the programming fails to verify. I have the same issue with two different 104-XNANO boards.

 

At first, I thought it was a circuit in the PCB the Xplained board was in, but I have two of them isolated from my project, and they both fail to verify on the reset disable bit, or to set it. Both boards continue to be able to be read and programmed afterwards, instead of needing the NVM reset.

 

Additionally, I tried erasing the boards first, then setting the reset bit, but I still get "Verify register BYTE0...Failed!" and the bit reads as not set. (The other three fuses can be programmed before and after this step.) I wrote a program to clock all outputs, and they are all measuring as expected on the oscilloscope, other than the PA2/reset line, since I can't get the RSTDISBL to program.

 

Any suggestions would be appreciated.

This topic has a solution.
Last Edited: Sat. Oct 21, 2017 - 10:52 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The on board debuggers for the Xplained Mini and Xplained Pro boards disallows writing some fuse values (for instance RSTDISBL if the target has this fuse). This is so that the debugger chip can stay in controll of the target device.

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Thank you for the quick reply. It makes perfect sense now, although I wish the documentation and software made it more obvious that this fuse cannot be programmed this way.

On the hardware side, I desoldered the xplained board, so I’ll add some jumpers so I can disconnect and reroute the I/O pins with our current PCB design.

For the programmer/debugger, would the Atmel-ICE be what I need to fully program the 104 in the next revision of our design? I want to maximize our IO usage, so I’ll need a programmer/debugger solution that has 12V reprogramming capability. I considered desoldering the 0R on the XNano and breaking the reset trace and trying to use the medbg to program the fuses, but even that wouldn’t have worked since the programmer masks that fuse bit, so that would have been a dead end.

Again, thanks for your helpful comments! There are certain things like this that are easy to overlook in design review.

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

Perryman1138 wrote:
 I wish the documentation and software made it more obvious 

+1

 

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

Perryman1138 wrote:
For the programmer/debugger, would the Atmel-ICE be what I need to fully program the 104 in the next revision of our design?
No as Atmel-ICE cannot generate the 12V RESET.

Atmel-ICE

Atmel-ICE Main Board

http://www.atmel.com/webdoc/GUID-DDB0017E-84E3-4E77-AAE9-7AC4290E5E8B/index.html?GUID-11CB875B-461E-4F25-A26B-5CCD1D06BDCE

...

All signal channels can be operated in the range 1.62V to 5.5V, although the Atmel-ICE hardware can not drive out a higher voltage than 5.0V.

...

Perryman1138 wrote:
I want to maximize our IO usage, so I’ll need a programmer/debugger solution that has 12V reprogramming capability.
STK600 for programming.

tiny104 does not have OCD; in lieu of is Atmel Studio 7's AVR Simulator.

STK600

Serial High Voltage Programming

http://www.atmel.com/webdoc/GUID-EE00BF20-2F37-4A8A-B685-B91173F8915D/index.html?GUID-BB83E97E-067C-42D2-9199-CE999057D0EC

http://packs.download.atmel.com/#collapse-Atmel-ATtiny-DFP-pdsc (ATtiny104)

 

"Dare to be naïve." - Buckminster Fuller

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

Thanks for all your help!

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

You're welcome!

 

In another thread, 12V RESET and programming were discussed and a statement was made that AVR Dragon has 12V capability.

Atmel

AVR Dragon
Connecting the Atmel AVR Dragon

High Voltage Serial Programming Description

http://www.atmel.com/webdoc/avrdragon/avrdragon.hvsp_description.html

 


http://new.microchipdirect.com/product/search/all/ATAVRDRAGON

https://octopart.com/search?q=atavrdragon&avg_avail=(1__*)&start=0

 

"Dare to be naïve." - Buckminster Fuller