Error writing CONFIG2L and CONFIG2H register of PIC18F2680:
//CONFIG2H
// 1:1
//CONFIG2L
//disabled in hardware and software
__code __at __CONFIG2L char conf2L = CONFIG2L_;
__code __at __CONFIG2H char conf2H = CONFIG2H_;
error: File "obj\Release\Heizung.o", section
".config_300002_OBJ\RELEASE\HEIZUNG.O" (0x300002) is absolute but occurs
in more than one file.
I have also tested two alternatives:
__code __at __CONFIG2L unsigned short conf2H_conf2L=(((unsigned
short)CONFIG2H_)<<8)|CONFIG2L_;
__code __at __CONFIG2L char conf2L[] = {CONFIG2L_,CONFIG2H_};
In both cases, only register CONFIG2L was described.And CONFIG2H always remains 0b00011111 (default) ..