The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 09:19:58 09:19


Login with username, password and session length


Pages: [1]
Print
Author Topic: Question for AVR Lock Bit Fuse  (Read 4534 times)
0 Members and 1 Guest are viewing this topic.
chyun3
Junior Member
**
Offline Offline

Posts: 65

Thank You
-Given: 43
-Receive: 6


« on: February 19, 2008, 05:00:10 05:00 »

I read the datasheet of ATMEGA48 and still donot understand the function of the 3 modes of Lock Bit...It use to prevent other from read out the flash & eeprom ? Or it use to prevent other rewrite the flash & eeprom ? ..


Can ATMEGA48 code protect the Flash memory part while allow the eeprom data to be read out ?
Logged
telyadi
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 0
-Receive: 0


« Reply #1 on: February 19, 2008, 10:39:50 10:39 »

I usually release my chip with lockbit so no one can't read the flash. But if I need to update or bug fixed, I can erase that chip and write again.  With the lock bit set, my program can read and write value to the EEPROM. But someone can't read it via ISP programmer.
Logged
Mega32
Active Member
***
Offline Offline

Posts: 179

Thank You
-Given: 181
-Receive: 37


« Reply #2 on: February 19, 2008, 07:05:31 19:05 »

@chyun3

The lockbits will not prevent anyone from doing a "Full Chip Erase" , and then reprogram the MCU.
They can prevent anyone from reading out the application in flash , without doing a "full erase"

As for reading out the eeprom , you can implement a readout function in your application.


/Mega32
Logged
mpas
Guest
« Reply #3 on: February 24, 2008, 12:04:15 12:04 »

LB1,LB2:
 1    1     no restrictions for read/write
 0    1     you can read/verify but write is not allowed; fuses are disabled
 1    0     not allowed bits combination
 0    0     read/verify and write is not allowed; fuses are disabled

erase chip is allowed already
Logged
billy48
Guest
« Reply #4 on: March 04, 2008, 04:24:59 04:24 »

Be careful about setting bit
otherwise the system will become unstable
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC