News:

;) This forum is the property of Proton software developers

Main Menu

Impossible to compile

Started by GERARD, Oct 20, 2023, 08:11 PM

Previous topic - Next topic

GERARD

Hello,
My program does not compile with Positron.
Context :
PIC 16F88
Config1 0x3F31
Config2 0x3FFC
It tells me: invalid fuse setting

Thanks for your help.
I am the happy grandpa of twins

ricardourio

#1
Gerard, send some code so we can try to help.

Ricardo Urio

RGV250

Hi,
Why do you not use fuse configurator. I have just used the defaults and then changed the values from 0x3FF9 to 0x3F31 and 0x3FFF to 0x3FFC and it compiles.

;**** Added by Fuse Configurator ****
; Use the Fuse Configurator plug-in to change these settings

Device = 16F88
Declare Xtal = 4

Declare Reminders Off
@ CONFIG_REQ = 0 ; Override Compiler's configuration settings
Asm-
__Config _Config1, 0x3F31  'F9     ;FOSC_XT & WDTE_ON & PWRTE_OFF & MCLRE_ON & CP_OFF & CPD_OFF & BOREN_ON & IESO_ON & FCMEN_ON & LVP_ON & DEBUG_OFF
__Config _Config2, 0x3FFC  'F     ;BOR4V_BOR40V & WRT_OFF
Endasm-
Declare Reminders On

;**** End of Fuse Configurator Settings ****
;-------------------------------------------------------------------------------

Bob

Pepe

Device = 16F88
Config1 HS_OSC, WDT_ON, PWRTE_OFF, MCLR_ON, CP_OFF, CPD_OFF, BODEN_ON, IESO_ON, FCMEN_ON, LVP_ON, DEBUG_OFF
Config2 WRT_PROTECT_OFF
 Xtal 4

GERARD

Hi all,
I changed the configuration directive as follows :

  @ CONFIG_REQ = 0 ; Override Compiler's configuration settings
    Asm
    __Config _Config1, 0x3F31     
    __Config _Config2, 0x3FFC       
    EndAsm

And now it compiles,
Thanks to all.

Other question : where to find fuse configurator?   
I am the happy grandpa of twins

Stephen Moss

#5
Quote from: GERARD on Oct 21, 2023, 08:58 PMOther question : where to find fuse configurator? 

Try this post if you are using the Mechanique IDE that comes with Positron as it has to be installed as a plug-in.
However, if you are using the Positron Studio IDE then it is built in to the IDE, it is the "Fuses" tab located at the bottom right corner or any open code window.

GERARD

My configuration :
IDE 2033
Loader 3703
Compiler 3703

do I need to update and how?
Thanks again.
I am the happy grandpa of twins

joesaliba

Quote from: GERARD on Oct 23, 2023, 02:27 PMMy configuration :
IDE 2033
Loader 3703
Compiler 3703

do I need to update and how?
Thanks again.

That version is very old. You must contact Les to buy the most recent version of the compiler.

Joe

GERARD

My mistake, I have version 4030 of the compiler, sorry.
I had looked on another computer.
I am the happy grandpa of twins

RGV250

Hi,
I have a fuse config file dated 19/06/2021 which I can upload but not sure if there is a later version.

Bob

Dompie

@GERARD : The version of your compiler is in the assembler listing, hit <F2> after a compile and in the heading of this file is your compiler version.

Johan

GERARD

Hello,
I have the 4030 version, I bought it a few months ago.
I am the happy grandpa of twins