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

Accessing Program memory in PIC16F877A

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







Accessing Program memory in PIC16F877A
PostPosted: Sat Sep 30, 2006 7:27 pm     Reply with quote

Hi, I’m using PIC16F877A to transmit data from the computer to the PIC using RS232. I need to storage the data into program memory, but when I write the command in the CCS the compiler sent me a message telling that UNDEFINED IDENTIFIER READ_PROGRAM_MEMORY. What I consider odd is that the compiler recognizes the command WRITE_PROGRAM_MEMORY. If someone could help me I will appreciate. Question
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 30, 2006 8:20 pm     Reply with quote

Quote:

The compiler sent me a message telling that UNDEFINED IDENTIFIER
READ_PROGRAM_MEMORY.

Post a short little program that demonstrates the problem.
Make sure you show all variable and array declarations and show
how you call the read_program_memory() function.
The program should be able to be copied into an MPLAB project
and compile with no errors. (Because that's what I'm going to do).

Also post your compiler version. You can find the version at the top
of the .LST file after a successful compilation. It will be in your
project directory.
John Look
Guest







PostPosted: Sun Oct 01, 2006 3:17 am     Reply with quote

Hi, the compiler version that I?m using is 3.155. And I will transcribe a little part of the program that I?m using to write and read memory.
Code:


Int8 j , data [70]

read_program_memory(0x1000, data, 70);

Ttelmah
Guest







PostPosted: Sun Oct 01, 2006 4:08 am     Reply with quote

Simple answer.
Your compiler is too old.
The 'read_program_memory'function, did not exist till the early 3.200 versions. The 'readme.txt' (which documents 'extra' functions) file included with 3.191, does not have it, while the one for 3.221 does....

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