Hi all, encountered the situation where the program bootloader block in PIC18F2455 cannot be performed without erasing the eeprom.
I made sequence of commands as described in specification 39622l.
Bulk erase of chip performed ok,
then i program all the blocks on chip and set all CPx to 0(Enabled).
The problem is when CPD and WRTD bits is set to Enabled i cannot program the bootblock 0x000-0x7FF.
To program bootblock I'm using the BULK erase of bootblock.
so i cant erase and reprogram the bootblock when CPD and WRTD bits are enabled.
If i erasing the EEPROM, then bootblock erasing and programming works ok.
Any ideas about this situation? No any information about in datasheet found.
While I don't use that PIC, any chance the software you're using to actually program the PIC has changed the 'flags'? It could easily be MPLAB (or whatever you're using) is overriding your PIC program's settings.
This has happened to others... might be for you as well !
hth
jay
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sat Aug 30, 2014 3:56 pm
Quote:
I made sequence of commands as described in specification 39622L.pdf.
http://ww1.microchip.com/downloads/en/DeviceDoc/39622L.pdf
I don't know why you're using this document. It's written for people who
want to make an ICD3, Pickit 3, ICD-U64, etc., programmer. Are you
trying to make your own ICD programmer ?
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