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

PIC18F2410 write_eeprom write_program_eeprom Compile Problem

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



Joined: 24 Jan 2006
Posts: 3

View user's profile Send private message

PIC18F2410 write_eeprom write_program_eeprom Compile Problem
PostPosted: Wed Feb 01, 2006 2:55 pm     Reply with quote

Hi,

We recently upgraded a PIC16F88 to a PIC18F2410. For the most part the upgrade has gone well except for writing to the PIC EEPROM. Previously we used the write_eeprom however this no longer compiles. We then tried the write_program_eeprom and write_program_memory functions with the appropriate parameters but get the same compile error:
Undefined identifier write_eeprom
Undefined identifier write_program_eeprom
Undefined identifier write_program_memory

On the other side the switch from read_eeprom to read_program_eeprom compiles with no problems.

Any insight would be greatly appreciated.

Thank you,

Robert
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 01, 2006 3:01 pm     Reply with quote

According to the 18F2410 data sheet:

1. There is no mention of Data EEPROM in this PIC.

2. This PIC can't write to its program memory.
From the data sheet:
Quote:
In PIC18F2X1X/4X1X devices, the program memory is
implemented as read-only Flash memory.


18F2410 data sheet:
http://ww1.microchip.com/downloads/en/DeviceDoc/39636a.pdf
hoppenfeld



Joined: 24 Jan 2006
Posts: 3

View user's profile Send private message

PostPosted: Wed Feb 01, 2006 3:07 pm     Reply with quote

You should be able to write to flash memory using the write_program_memory command. Correct?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 01, 2006 3:19 pm     Reply with quote

From the 18F2410 data sheet:
Quote:
In PIC18F2X1X/4X1X devices, the program memory is
implemented as read-only Flash memory.


From the Table of Contents of the 18F2410 data sheet in the
Acrobat Reader:
Code:
6.0  Flash Program Memory
  +  6.1  Table Reads
  +  6.2  Control Registers
  +  6.3  Reading the Flash Program Memory
hoppenfeld



Joined: 24 Jan 2006
Posts: 3

View user's profile Send private message

PostPosted: Wed Feb 01, 2006 5:23 pm     Reply with quote

Thanks. We are replacing the part with a PIC18F2420.
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