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

BUG in WRITE_PROGRAM_MEMORY at PIC18F4520 !

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



Joined: 28 Nov 2003
Posts: 3

View user's profile Send private message Send e-mail

BUG in WRITE_PROGRAM_MEMORY at PIC18F4520 !
PostPosted: Fri Jan 21, 2005 10:59 am     Reply with quote

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 ? Crying or Very sad

Thank you for your help

oliver
dingelen



Joined: 25 Sep 2003
Posts: 1

View user's profile Send private message

Same problem with the 18F242 and 3.218 version
PostPosted: Thu Feb 10, 2005 8:42 am     Reply with quote

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
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