|
|
View previous topic :: View next topic |
Author |
Message |
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
Error 111 [Solved] |
Posted: Fri Nov 22, 2019 8:02 am |
|
|
Scenario:
MPLAB IDE v8.92
CCS v5.091
Device PIC18F67J50
Windows 7 x64
When I compile in Debug mode I get this error
*** Error 111 "TJ50_Dual_V1.c" Line 8(7,105): Unknown keyword in #FUSES "NOSTVREN"
When I compile in Release mode I get this error with the same code
*** Error 111 "TJ50_Dual_V1.c" Line 8(7,105): Unknown keyword in #FUSES "PROTECT"
In the fuses there's no NOSTVREN
#fuses INTRC_PLL,PLL2,NOCPUDIV,NOIESO,NOFCMEN,STVREN,CCP2E7,NOWDT,WDT2048,PROTECT
Also there's a PROTECT fuse in the 18F67J50.h header file but not a NOSTVREN fuse.
I think that the compiler is adding this automatically for some reason. _________________ Electric Blue |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19555
|
|
Posted: Fri Nov 22, 2019 9:07 am |
|
|
Er. You are sure you are looking in the right place: From 5.091:
Code: |
#device PIC18F67J50
#nolist
//////// Program memory: 65532x16 Data RAM: 3904 Stack: 31
//////// I/O: 52 Analog Pins: 8
//////// C Scratch area: 00 ID Location: 0000
//////// Fuses: WDT,NOWDT,PLL12,PLL10,PLL6,PLL5,PLL4,PLL3,PLL2,PLL1,STVREN
//////// Fuses: NOSTVREN,XINST,NOXINST,DEBUG,NODEBUG,CPUDIV6,CPUDIV3,CPUDIV2
//////// Fuses: NOCPUDIV,PROTECT,NOPROTECT,INTRC_IO,INTRC,INTRC_PLL_IO
//////// Fuses: INTRC_PLL,HS,HSPLL,EC,ECPLL,FCMEN,NOFCMEN,IESO,NOIESO,WDT1
//////// Fuses: WDT2,WDT4,WDT8,WDT16,WDT32,WDT64,WDT128,WDT256,WDT512
//////// Fuses: WDT1024,WDT2048,WDT4096,WDT8192,WDT16384,WDT32768,CCP2E7
//////// Fuses: CCP2C1,MSSPMSK5,MSSPMSK7
|
As you can see both STVREN and NOSTVREN are there.
Fuses all 'default' to their erased state in current compilers. So to get
rid of PROTECT, you have to specify 'NOPROTECT'.
I'd suspect your compiler is loading an old header file, not the one for the
current compiler. I seem to remember the STVREN fuse being missing
on very early compilers for this chip. Check your paths, and what files
are in them. |
|
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Fri Nov 22, 2019 10:12 am |
|
|
I think the same, there's some old dll or something in the PICC folder
In my header file I have this fuses
Code: |
//////// Program memory: 65532x16 Data RAM: 3904 Stack: 31
//////// I/O: 52 Analog Pins: 8
//////// C Scratch area: 00 ID Location: 0000
//////// Fuses: NOWDT,WDT,PLL12,PLL10,PLL6,PLL5,PLL4,PLL3,PLL2,PLL1
//////// Fuses: STVREN,NOXINST,XINST,DEBUG,NODEBUG,CPUDIV6,CPUDIV3,CPUDIV2
//////// Fuses: NOCPUDIV,PROTECT,NOPROTECT,INTRC_IO,INTRC,INTRC_PLL_IO
//////// Fuses: INTRC_PLL,HS,HSPLL,EC,ECPLL,NOFCMEN,FCMEN,NOIESO,IESO,WDT1
//////// Fuses: WDT2,WDT4,WDT8,WDT16,WDT32,WDT64,WDT128,WDT256,WDT512
//////// Fuses: WDT1024,WDT2048,WDT4096,WDT8192,WDT16384,WDT32768,CCP2E7
//////// Fuses: CCP2C1,MSSPMSK5,MSSPMSK7 |
_________________ Electric Blue |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19555
|
|
Posted: Fri Nov 22, 2019 11:57 am |
|
|
That is not the header from 5.091. Lacks NOSTVREN straight away. You need to work out where this is loading 'from'. If you are using the IDE, simply
do 'open all files', select the header, and see what path it shows. Hopefully
will give a clue as to where stuff is loading from. |
|
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Mon Nov 25, 2019 9:21 am |
|
|
I'm using MPLAB X IDE v5.30
Anyway, I just solved this with CCS support, they give the current DLLs. _________________ Electric Blue |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|