[SOLVED] PIC18F67K22 Code protect without config byte write disable

Status
Not open for further replies.

elt42at

Newbie level 6
Joined
Mar 26, 2011
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,387
Hi!

There is a device with pic18f67k22. In MPLAB, with pickit3, i am trying to read pic.
Code area fills with 0x00 from address 0x0 to 0x1FFFFF.

But i can see configuration data from menu "Configure->Configuration Bits" in MPLAB. Also i can change bits by removing the tick from "Configure Bits set in code."

I try to disable code-protection CPx bits and set pickit3 only configuration area from "Programmer->Settings->Program memory->memories"

Than pickit3 output secren says,
Address: 00300008 Expected Value: 000000ff Received Value: 00000000

So, i have to clean (set 0xFF) config bytes before program.

Pickit3.exe (Stand alone), mplab, mplabx programs permits chip erase only (bulk erase). But i want to clean only "CONFIG BYTES" from 300000 to 30000F

So a way is necessery to block to block erase command/method.

In microchips forum:
"http://www.microchip.com.edgekey.net/forums/m637187-print.aspx"


how can i clear to program config bits only???. So i can disable code protect bits ????
 

The behaviour of code protection bits is described in datasheet paragraph 28.6.1 PROGRAM MEMORY CODE PROTECTION.

Common sense would tell why is it so.
 
Thanks for your reply "FvM"
I look the datasheet and find this:
So it is not possible to change CPx bits without a chip erase. Than the data will cleared which i want to get by changing CPx bits to disable state.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…