独闷闷网

标题: Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0?已解答 [打印本页]

作者: jianhong_wu    时间: 2015-5-12 17:11
标题: Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0?已解答
问:
用picc编译器编译pic16系列单片机,发现“Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0”报错怎么办?

坚鸿-深圳:
picc的编译,对于变量有4个区域,依次是:bank0,bank1,bank2,bank3。
我们定义的变量如果前面没有这些关键字,则默认在bank0的区域,如果发现上述报错,就说明bank0区域已经用完,此时新定义的变量前面加上bank1关键字,同理,当bank1用完了,就继续加bank2或者bank3。定义变量格式如下:
bank1 unsigned char a;





欢迎光临 独闷闷网 (http://dumenmen.com/) Powered by Discuz! X3.2