|
|
View previous topic :: View next topic |
Author |
Message |
faessler
Joined: 28 Nov 2003 Posts: 3
|
BUG in WRITE_PROGRAM_MEMORY at PIC18F4520 ! |
Posted: Fri Jan 21, 2005 10:59 am |
|
|
Hello,
we use the PIC 18 CCS Compiler V3.216 Windows with MPLab 7.
In our Project we use now the PIC18(L)F4520 with 25MHz Clock.
We recompiled our Bootloader from the PIC18F452.
The Problem is:
We want to Programm the Memory at 0x2000.
We transfer 64 Bytes to the PIC RAM and then we want to
Programm the Flash Memory with the command:
write_programm_memory(0x2000, Ptr,64);
but the Problem are the first 32 Bytes are 0xFF
and the second 32 Bytes are correct programmed.
The Code works on an old version of the compiler 3.202 on PIC18F452 !!.
It is possible that we found a bug in the compiler ?
Thank you for your help
oliver |
|
|
dingelen
Joined: 25 Sep 2003 Posts: 1
|
Same problem with the 18F242 and 3.218 version |
Posted: Thu Feb 10, 2005 8:42 am |
|
|
I have reported the same problem for over a month ago. They said it was solved in the maen while, but I still get the same problem.
f.e.:
int16 address, data;
address = 0x0065;
data = 0x0776;
write_program_eeprom(2*address, data); // puts 0x0776 in line 101
address = 0x0065;
data = 0x0777;
write_program_eeprom(2*address, data); // puts 0x0776 in line 101
address = 0x0065;
data = 0x0778;
write_program_eeprom(2*address, data); // puts 0x0770 in line 101
address = 0x0065;
data = 0x0779;
write_program_eeprom(2*address, data); // puts 0x0770 in line 101
address = 0x0065;
data = 0x0780;
write_program_eeprom(2*address, data); // puts 0x0700 in line 101
The second time I simulate the program after a reset the value stays 0x0700 during the whole program..
Any help please, I need this code very fast because we are migrating to the 18f242
Greetz Tom |
|
|
|
|
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
|