Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Reading Locked Flash Rom

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Various
View previous topic :: View next topic  
Author Message
hajix

Bascom Member



Joined: 19 Apr 2006
Posts: 15

iran.gif
PostPosted: Thu Feb 14, 2008 1:17 pm    Post subject: Reading Locked Flash Rom Reply with quote

hello,
I'm using a Atmega16 MCU in my project.
it's written by someone else and lockbit 1 & Lockbit 2 are enabled.
when i use my programmer to read it, the buffer will be full of ascii codes from 0 to 255.
so how can i read the flash rom?
help me..........Sad
Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Thu Feb 14, 2008 7:38 pm    Post subject: Reply with quote

Hi,

The Lock bits can only be erased with a chip erase command.
During a chip erase the flash memory and EEPROM memory are erased.

Best regards,

Luciano
Back to top
View user's profile
cloudnine

Bascom Member



Joined: 29 May 2007
Posts: 58

blank.gif
PostPosted: Sat Mar 01, 2008 2:54 am    Post subject: Reply with quote

Hi there, on this topic, I have two ATtiny2313's that i have set the fuse bits incorrectly and now the chip is "locked" when I go and compile and send a program to it, I have tried the external crystal set up AND set up an external clock system and neither appear to unlock the chips any advise anyone. Or even send me to a forum here if the answer has already been published. Many thanks again
Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Sat Mar 01, 2008 9:36 am    Post subject: Reply with quote

Hi,

You have disabled the RESET pin. (RSTDISBL fuse bit).

You need a programmer supporting the High-voltage
Programming mode like the Atmel STK500.

Best regards,

Luciano
Back to top
View user's profile
cloudnine

Bascom Member



Joined: 29 May 2007
Posts: 58

blank.gif
PostPosted: Sun Mar 02, 2008 12:54 pm    Post subject: Reply with quote

Well, once again I thank you for you assistance. Much appreciated but not having the stk500 I will have to put it down to experience and be more coareful. I am fortunate enough to purchase these micro's for "loose change' so not to much loss.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Various All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum