write_program_eeprom/read_program_eeprom bug?there a bug
Posted: Sat Apr 02, 2005 5:48 am
hi,
is there a bug wirh write_program_eeprom or read_program_eeprom in the PCH 3.214 compiler.
I have a bootloader that uses write_program_eeprom and read_eeprom_program to write and reread for verify the data. everything works fine from the bottom address up to address $6000. but exactly at $6000 there occurs a write failure over and over again.
As I realy can't see any problem with the code I would like to ask if there are any known problems (and maybe workarounds) ???
setb2609 Guest
Posted: Sat Apr 02, 2005 5:53 am
btw. the problem occurs with a PIC18F452 - but I haven't tested different devices ...
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sat Apr 02, 2005 11:38 am
Quote:
Everything works fine from the bottom address up to address $6000.
But exactly at $6000 there occurs a write failure over and over again.
You didn't show your #fuses statement. Do you have the WRT3 fuse
in your #fuses statement ? If so, it will write-protect that block.
I suggest that you remove it. From the data sheet:
Quote:
WRT3: Write Protection bit (1)
1 = Block 3 (006000-007FFFh) not write protected
0 = Block 3 (006000-007FFFh) write protected
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