21 keil编译警告‘Argument':conversion:pointer to non-pointer是什么问题
应该是参数传递错误,指针参数处传递了非指针参数。
22 *** ERROR L114: SEGMENT DOES NOT FIT
块大小与目标设备不符。段溢出了,你的DATA区超过了256字节
你的idata变量太大(CEH),与器件容量不匹配。可能你的单片机型号选成31了,选个256字节内部RAM的应该就行,将定义为data的变量定义为xdata类型,问题解决了。
23 error C193 :bad operand type
% 取模不能用浮点数,
frequence 要转成整型来取模,小数位可以乘10后转整型来得到。
24 常见错误
error 1: Out of memory 内存溢出
error 2: Identifier expected 缺标识符
error 3: Unknown identifier 未定义的标识符
error 4: Duplicate identifier 重复定义的标识符
error 5: Syntax error 语法错误
error 6: Error in real constant 实型常量错误
error 7: Error in integer constant 整型常量错误
error 8: String constant exceeds line 字符串常量超过一行
error 10: Unexpected end of file 文件非正常结束
error 11: Line too long 行太长
error 12: Type identifier expected 未定义的类型标识符
error 13: Too many open files 打开文件太多
error 14: Invalid file name 无效的文件名
error 15: File not found 文件未找到
error 16: Disk full 磁盘满
error 17: Invalid compiler directive 无效的编译命令
error 18: Too many files 文件太多
error 19: Undefined type in pointer def 指针定义中未定义类型
error 20: Variable identifier expected 缺变量标识符
error 21: Error in type 类型错误
error 22: Structure too large 结构类型太长
error 23: Set base type out of range 集合基类型越界
error 24: File components may not be files or objectsfile分量不能是文件或对象
error 25: Invalid string length 无效的字符串长度
error 26: Type mismatch 类型不匹配
error 27:error 27:Invalid subrange base type 无效的子界基类型
error 28:Lower bound greater than upper bound 下界超过上界
error 29:Ordinal type expected 缺有序类型