CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

question about write program memory

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

question about write program memory
PostPosted: Mon Apr 16, 2007 7:55 am     Reply with quote

Hi to All,

I've a strange situation with PIC16F877A returned back from over 100 hours of work. On part of software doesn't work and I suppose depend from microcontroller because changed it all work fine. Ther's no any problem in hardware.

I belive something happend to program memory but I can't verify it because the micro i protected from reading.
There's no bootloader or other routine writing program memory in software.

Is there any way to verify program memory ?

Does possible the micro write program memory instead eeprom ?

Have you got to suggest me ?

thanks for replay
Ttelmah
Guest







PostPosted: Mon Apr 16, 2007 8:46 am     Reply with quote

If write protection is enabled, then the micro could not write it's program memory. The question is what protection mode you had got turned on?.
You can write a chip, turn on the protection, and read it. The you get back, will be the same for any chip, given the same code is loaded. Use this data to verify the faulty chip. Where the verification fails, will show which cell(s) are involved.

Best Wishes
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Mon Apr 16, 2007 9:12 am     Reply with quote

Hi,

I have all configuration bit in ON except low voltage program.

So there's no possibility to read eeprom o program memory.

Quote:

You can write a chip, turn on the protection, and read it. The you get back, will be the same for any chip, given the same code is loaded. Use this data to verify the faulty chip. Where the verification fails, will show which cell(s) are involved


Would explain me ?
Ttelmah
Guest







PostPosted: Mon Apr 16, 2007 9:18 am     Reply with quote

Basically, if you program a chip, and enable the read protection, you can still read the chip, but get back encrypted data. So the recommended way to verify a protected chip, is to program it with the protection 'off'. Verify that the code is working, and then enable the protection. Then read the chip. You will now get back the _encrypted_ data, for a known 'good' chip and program. Then when you program future chips with the same program (and protection 'on'), you can perform a verification against the encrypted data. This will still work, and still tell you where the verification fails. Some production programmers have an automated mode to support this.

Best Wishes
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Tue Apr 17, 2007 8:12 am     Reply with quote

Hi Ttelmah,

I use ICD2 Microchip as in circuit programmer and when I read protected chip it doesn't show anything in program memory mask.

Is there anyway to read protected chip with ICD2 ?

Regards,
Fabri
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group