News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Trouble Configuring Fuses for PIC18F4525 in Proton

Started by laserline, Feb 06, 2024, 02:28 PM

Previous topic - Next topic

laserline

Hello everyone,

I've been trying to use the PIC18F4525 in my project but I'm facing difficulties with correctly setting up its configuration bits. I've attempted the following approaches among other variations, but none seem to work:

Config1H  OSC_INTIO67_1, FCMEN_OFF_1, IESO_OFF_1
Config2L  PWRT_OFF_2, BOREN_OFF_2, BORV_2_2
Config2H  WDT_OFF_2, WDTPS_256_2
... through to the end.


Config1H = OSC_INTIO67_1, FCMEN_OFF_1, IESO_OFF_1
Config2L = PWRT_OFF_2, BOREN_OFF_2, BORV_2_2
Config2H = WDT_OFF_2, WDTPS_256_2
... and the rest down the line.


Config_Start
    Config1H = OSC_INTIO67_1, FCMEN_OFF_1, IESO_OFF_1
    Config2L = PWRT_OFF_2, BOREN_OFF_2, BORV_2_2
    Config2H = WDT_OFF_2, WDTPS_256_2
... through to the end.
Config_End


I'm at a loss for what to try next. Does anyone have any tips or suggestions on how to properly set the fuses for this microcontroller using Proton? Any help would be greatly appreciated.

Thank you in advance!

Pepe

Configuring Fuses

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

Device = 18F4525

Config_Start
  OSC = INTIO67 ;Internal oscillator block, port function on RA6 and RA7
  FCMEN = OFF ;Fail-Safe Clock Monitor disabled
  IESO = OFF ;Oscillator Switchover mode disabled
  PWRT = OFF ;PWRT disabled
  BOREN = SBORDIS ;Brown-out Reset enabled in hardware only (SBOREN is disabled)
  BORV = 2 ;
  WDT = On ;WDT enabled
  WDTPS = 256 ;1:256
  CCP2MX = PORTC ;CCP2 input/output is multiplexed with RC1
  PBADEN = OFF ;PORTB<4:0> pins are configured as digital I/O on Reset
  LPT1OSC = OFF ;Timer1 configured for higher power operation
  MCLRE = OFF ;RE3 input pin enabled; MCLR disabled
  STVREN = OFF ;Stack full/underflow will not cause Reset
  LVP = OFF ;Single-Supply ICSP disabled
  XINST = OFF ;Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
  Debug = OFF ;Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins
  Cp0 = OFF ;Block 0 (000800-003FFFh) not code-protected
  CP1 = OFF ;Block 1 (004000-007FFFh) not code-protected
  CP2 = OFF ;Block 2 (008000-00BFFFh) not code-protected
  CPB = OFF ;Boot block (000000-0007FFh) not code-protected
  CPD = OFF ;Data EEPROM not code-protected
  WRT0 = OFF ;Block 0 (000800-003FFFh) not write-protected
  WRT1 = OFF ;Block 1 (004000-007FFFh) not write-protected
  WRT2 = OFF ;Block 2 (008000-00BFFFh) not write-protected
  WRTC = OFF ;Configuration registers (300000-3000FFh) not write-protected
  WRTB = OFF ;Boot Block (000000-0007FFh) not write-protected
  WRTD = OFF ;Data EEPROM not write-protected
  EBTR0 = OFF ;Block 0 (000800-003FFFh) not protected from table reads executed in other blocks
  EBTR1 = OFF ;Block 1 (004000-007FFFh) not protected from table reads executed in other blocks
  EBTR2 = OFF ;Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks
  EBTRB = OFF ;Boot Block (000000-0007FFh) not protected from table reads executed in other blocks
Config_End

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

RGV250

Hi,
Have you tried the really good Fuse configurator, it is built in to Positron studio or should be available as a stand alone for the existing IDE.

Bob

laserline

#3
Not really, but it's good advice.

Yes... Pepe's suggestion solved my problem!

Thanks a lot!!

John Lawton

Pepe's suggestion is using the Fuse Configurator!