Skip to main content
added 1491 characters in body
Source Link
zero
  • 21
  • 6

I was looking for simple boot loader which can program my PIC 18F4550 using uart communication. What I saw in all serial port boot loader program is, they are changing configuration bits especially LVP. Is it necessary to set

  LVP=OFF (Turn off Low Voltage Programming)

in order to program flash using boot loader ??

Thanks I advance.

Update- Add Config Bits used by Boot Loader

Boot loader is used from this site

; CONFIG1H
CONFIG  FOSC = INTOSC_HS      ; Oscillator Selection bits (Internal oscillator, HS oscillator used by USB (INTHS))
CONFIG  FCMEN = OFF           ; Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor disabled)
CONFIG  IESO = OFF            ; Internal/External Oscillator Switchover bit (Oscillator Switchover mode disabled)

; CONFIG2L
CONFIG  PWRT = OFF            ; Power-up Timer Enable bit (PWRT disabled)
CONFIG  BOR = OFF             ; Brown-out Reset Enable bits (Brown-out Reset disabled in hardware and software)
CONFIG  BORV = 3              ; Brown-out Reset Voltage bits (Minimum setting 2.05V)
CONFIG  VREGEN = OFF          ; USB Voltage Regulator Enable bit (USB voltage regulator disabled)

; CONFIG2H
CONFIG  WDT = OFF             ; Watchdog Timer Enable bit (WDT disabled (control is placed on the SWDTEN bit))
CONFIG  WDTPS = 1             ; Watchdog Timer Postscale Select bits (1:1)

; CONFIG3H
CONFIG  CCP2MX = ON           ; CCP2 MUX bit (CCP2 input/output is multiplexed with RC1)
CONFIG  PBADEN = OFF          ; PORTB A/D Enable bit (PORTB<4:0> pins are configured as digital I/O on Reset)
CONFIG  LPT1OSC = OFF         ; Low-Power Timer 1 Oscillator Enable bit (Timer1 configured for higher power operation)
CONFIG  MCLRE = ON            ; MCLR Pin Enable bit (MCLR pin enabled; RE3 input pin disabled)

I was looking for simple boot loader which can program my PIC 18F4550 using uart communication. What I saw in all serial port boot loader program is, they are changing configuration bits especially LVP. Is it necessary to set

  LVP=OFF (Turn off Low Voltage Programming)

in order to program flash using boot loader ??

Thanks I advance.

I was looking for simple boot loader which can program my PIC 18F4550 using uart communication. What I saw in all serial port boot loader program is, they are changing configuration bits especially LVP. Is it necessary to set

  LVP=OFF (Turn off Low Voltage Programming)

in order to program flash using boot loader ??

Thanks I advance.

Update- Add Config Bits used by Boot Loader

Boot loader is used from this site

; CONFIG1H
CONFIG  FOSC = INTOSC_HS      ; Oscillator Selection bits (Internal oscillator, HS oscillator used by USB (INTHS))
CONFIG  FCMEN = OFF           ; Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor disabled)
CONFIG  IESO = OFF            ; Internal/External Oscillator Switchover bit (Oscillator Switchover mode disabled)

; CONFIG2L
CONFIG  PWRT = OFF            ; Power-up Timer Enable bit (PWRT disabled)
CONFIG  BOR = OFF             ; Brown-out Reset Enable bits (Brown-out Reset disabled in hardware and software)
CONFIG  BORV = 3              ; Brown-out Reset Voltage bits (Minimum setting 2.05V)
CONFIG  VREGEN = OFF          ; USB Voltage Regulator Enable bit (USB voltage regulator disabled)

; CONFIG2H
CONFIG  WDT = OFF             ; Watchdog Timer Enable bit (WDT disabled (control is placed on the SWDTEN bit))
CONFIG  WDTPS = 1             ; Watchdog Timer Postscale Select bits (1:1)

; CONFIG3H
CONFIG  CCP2MX = ON           ; CCP2 MUX bit (CCP2 input/output is multiplexed with RC1)
CONFIG  PBADEN = OFF          ; PORTB A/D Enable bit (PORTB<4:0> pins are configured as digital I/O on Reset)
CONFIG  LPT1OSC = OFF         ; Low-Power Timer 1 Oscillator Enable bit (Timer1 configured for higher power operation)
CONFIG  MCLRE = ON            ; MCLR Pin Enable bit (MCLR pin enabled; RE3 input pin disabled)
Source Link
zero
  • 21
  • 6

Programming PIC 18F4550 using Bootloader

I was looking for simple boot loader which can program my PIC 18F4550 using uart communication. What I saw in all serial port boot loader program is, they are changing configuration bits especially LVP. Is it necessary to set

  LVP=OFF (Turn off Low Voltage Programming)

in order to program flash using boot loader ??

Thanks I advance.