gpt4 book ai didi

c - 写入内存? (PIC内部EEPROM)

转载 作者:行者123 更新时间:2023-11-30 18:58:25 26 4
gpt4 key购买 nike

我正在关注这个tutorial它向您展示了如何将数据写入内部 EEPROM。唯一不同的是,他们使用的是 p18f4520,而我使用的是 PIC18F87J11。当我尝试构建代码时出现以下错误,我可以知道为什么吗?

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

最佳答案

抱歉,PIC18F87J11 MCPU 中没有内部 EEPROM!您的示例适用于具有内部 EEPROM 的 MCPU。

关于c - 写入内存? (PIC内部EEPROM),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16678612/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com