Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bootloader works only once [solved]
#5
(2010-11-02, 14:55:18)Lotusx Wrote: Hello,

As you change OSC by FOSC this make conflict with the definition of FOSC in settings.inc just after "radix DEC".
You could change FOSC to FSC in settings.inc and also in ds30loader.asm line 158 & 162.

About your bootloader not respondig after reset, if you set config bits in your program, they are programmed by the bootloader (place config bits only in one place).

Lotusx.

Hi Lotusx,

It worked now after using latest version of the PIC18FJ firmware. However there are some modifications:-

1) The GUI doesn't recognize ver1.0.3 yet and doesn't let me proceed, so i renamed it back to ver1.0.2. #define VERREV 2

2) The Configuration bits at settings.inc is not compatible with PIC18F67J10 so I have made some modifications and commented out the unused ones:-

;for pic18f67j10
CONFIG WDTEN = OFF ;wathcdog timer
CONFIG STVREN = OFF ;stack over-/underflow reset
CONFIG XINST = OFF ;extended instruction set
CONFIG CP0 = OFF ;code protect
CONFIG FOSC = HS ;oscillator
;CONFIG T1DIG = OFF ;T1OSCEN enforcement
;CONFIG LPT1OSC = OFF ;low-power timer1 oscillator
CONFIG FCMEN = OFF ;fail-safe clock monitor
CONFIG IESO = OFF ;nternal External Oscillator Switch Over Mode
CONFIG WDTPS = 1 ;watchdog postscaler
;CONFIG DSWDTOSC= INTOSCREF ;dswdt clock select
;CONFIG RTCOSC = INTOSCREF ;rtcc clock select
;CONFIG DSBOREN = OFF ;deep sleep bor
;CONFIG DSWDTEN = OFF ;deep sleep watchdog timer
;CONFIG DSWDTPS = 2 ;deep sleep watchdog postscaler
;CONFIG IOL1WAY = OFF ;iolock one-way set enable bit
;CONFIG MSSP7B_EN=MSK5 ;mssp address masking
;CONFIG WPFP = PAGE_0 ;write/Erase Protect Page Start/End Location:
;CONFIG WPEND = PAGE_0 ;write/Erase Protect Region Select bit (valid when WPDIS = 0):
;CONFIG WPCFG = OFF ;write/Erase Protect Configuration Region
;CONFIG WPDIS = OFF ;write Protect Disable bit

Very Nice Bootloader! No modification needed for my application hex file!
Reply


Messages In This Thread
Bootloader works only once [solved] - by vincewyh - 2010-11-02, 11:34:46
RE: Bootloader works only once - by Lotusx - 2010-11-02, 14:55:18
RE: Bootloader works only once - by vincewyh - 2010-11-03, 04:22:56
RE: Bootloader works only once - by Lotusx - 2010-11-02, 23:45:47

Forum Jump:


Users browsing this thread: 2 Guest(s)