View previous topic :: View next topic |
Author |
Message |
John Look Guest
|
Accessing Program memory in PIC16F877A |
Posted: Sat Sep 30, 2006 7:27 pm |
|
|
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. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Sep 30, 2006 8:20 pm |
|
|
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
|
|
Posted: Sun Oct 01, 2006 3:17 am |
|
|
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
|
|
Posted: Sun Oct 01, 2006 4:08 am |
|
|
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 |
|
|
|