Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

hexfile copying from microcontroller

Status
Not open for further replies.

hansika

Member level 2
Member level 2
Joined
Apr 13, 2010
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
hyderabad
Activity points
1,717
hi every one,
i am working on Atmega8 microcontroller i am using a USB AVR programmer and i am reading the hexfile in one working microcontroller from flash memory and save it in the system and when i am dumping the same hex file in another microcontroller the programmer is saying that programming the controller is succesfully completed but the program is not working i just want to know why this is happening
 

Please re-check that the .hex what you get is not like repeated letters and numerals like: 1111 2222 3333 4444 aaaa bbbb cccc. Coz when an AVR is locked, and read back, such characters are read back which are not actually the original hexfile. The original hex will look different. DIY: Just load a hex file in a new micro, lock it and read it back. You can see the difference.
Cheers
 
when i am reading the hexfile it showing 0000, 0101,0202,0303,0404,0505 etc when i am loading this hex file and read back from the new microcontroller the hex file showing same but it is not executing .what are the possible reasons for this
 

Check the LOCK BITS the micro may be locked.
as pranam77 said if the micro is locked what your reading is Dummy Hex code. the dummy hex code will not execute the program.

i am reading the hexfile in one working microcontroller from flash memory
Who written the program for the working controller????????.


P.Ashok Kumar
 
Yes..the mentioned hex says the chip is locked. Coz in a real hex file there will be rarely repetations of content. Just try programming and reading back as Pranam77 mentioned.. You'll learn youself how it looks when the AVR is locked and read back.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top