Question

I am following this tutorial which shows you how to write to data to Internal EEPROM. The only thing that is different in this tut is that they are using p18f4520 and I am using PIC18F87J11. When I try to build the code I get the following errors, may I know why?

113:Error [1105] symbol 'EEADR' has not been defined
113:Error [1101] lvalue required
114:Error [1105] symbol 'EEDATA' has not been defined
114:Error [1101] lvalue required
116:Error [1205] unknown member 'EEPGD' in '__tag_222'
116:Error [1131] type mismatch in assignment
117:Error [1205] unknown member 'CFGS' in '__tag_222'
117:Error [1131] type mismatch in assignment
131:Error [1205] unknown member 'EEIF' in '__tag_215'
131:Error [1128] compatible scalar operands required for comparison
133:Error [1118] scalar type expected in 'while' statement
137:Error [1205] unknown member 'EEIF' in '__tag_215'
137:Error [1131] type mismatch in assignment
144:Error [1105] symbol 'EEADR' has not been defined
144:Error [1101] lvalue required
145:Error [1205] unknown member 'EEPGD' in '__tag_222'
145:Error [1131] type mismatch in assignment
146:Error [1205] unknown member 'CFGS' in '__tag_222'
146:Error [1131] type mismatch in assignment
147:Error [1205] unknown member 'RD' in '__tag_222'
147:Error [1131] type mismatch in assignment
148:Error [1105] symbol 'EEDATA' has not been defined
Was it helpful?

Solution

Sorry, but there is no internal EEPROM in PIC18F87J11 MCPU! Your example is intended for MCPUs with internal EEPROM.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top