RSTDSBL and lock bits

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

In a tiny13 programmed with an ispmkii i want to use Reset pin as an ADC input and set lock bits to further programming and verification disabled.
When i set lock bits the fuse bits can not be changed,and when i disable the Reset pin cant do anything anymore.
I have my own homemade fuse recovery tool only for 8 pin avr and in every chip model i upload different hex file for chip erase and recovery only.
How can i set both of the settings,and if i kill only the Reset pin then is very easy for someone how owns a commercial high voltage programmer to restore and to read the hex file.

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

Surely you can set RSTDISBL and then set the lock bits.

I have never bothered, but then I am not paranoid.
You obviously are paranoid. So why not try it for yourself.

Having toggled the power, your AVR should now be secure. All you have to do now, is try to break into your own AVR. If you succeed, PM me. I will give you a medal.

If you don't succeed to break into your code, book a visit with your psychiatrist.

David.

Edit. Sorry for the mickey-taking.
The point about fuse and lock setting is to do it in the same session. ISP needs Reset pin to 'enter programming mode'. New settings don't take place until you leave or toggle power.

Last Edited: Thu. Nov 1, 2012 - 11:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can you really put 512 opcodes into a tiny13 in such a complex pattern that an external viewer could not simply watch the external activity and recreate it with their own implementation of the algorithm?

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

I have no doubt about the lock bits security,sure they lock the access in flash,even if they read the mcu returns false,useless opcodes.
What i already have done it is when i set and program RSTDSBL fuse then nothing can be done anymore,not even read fuses and lock bits.
When set lock bits to "further programming and verification disabled" can read fuses and lock bits but not program the fuses anymore.
But in the same time can not be programmed both the settings since ispmkii uses a different form(buttons and screens in the program) for fuses and different for lock bits and i think that is a native limitation of the ISP,and if RSTDSBL fuse is set with any kind of programming method to set then the lock bits only the HVSP must be used,and into my insanity this seems the most logical to me,and by the way its time to me to celebrate the year of the dragon by buying one of them.
I salute you.

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

What software is driving your programmer? AVR Studio 4? Atmel Studio 6?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

I use AVR studio 4.17.