Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
18f87j50 bootloader help [solved]
#1
Hallo everybody,

I am using this software to create bootloader for pic18f87j50.
My software version is
-Windows installation ds30_loader_110115.exe (2MB)
-Firmware PIC18FJ 1.0.4
-ds30 Loader GUI 1.3.14

I make the changes in the settings.inc file :

list P=18F87J50; ;xxx
;-------------------------------------------------------------------
; User preferences
;--------------------------------------------------------------------
radix DEC
#define DEV_MODE 1 ;xxx
#define OSCF 20000000 ;xxx
#define BLTIME 2000 ;xxx
#define BLINIT 2000 ;xxx
#define HELLOTRIES 2 ;xxx

CONFIG WDTEN = OFF ;wathcdog timer
CONFIG STVREN = OFF ;stack over-/underflow reset
CONFIG XINST = OFF ;extended instruction set
CONFIG CP0 = OFF ;code protect
;CONFIG OSC = INTOSC ;oscillator
;CONFIG T1DIG = OFF ;T1OSCEN enforcement
;CONFIG LPT1OSC = OFF ;low-power timer1 oscillator
CONFIG FCMEN = OFF ;fail-safe clock monitor
CONFIG IESO = OFF ;Internal External Oscillator Switch
CONFIG WDTPS = 1 ;watchdog postscaler
;----------------------------------------------------------

I have external oscillator of 20MHz, and use UART1 (RC6, RC7) for serial communication. For programming I use MPLAB ICD2. My OS is Windows 7/32 bit.

When I want to check if there is bootloader I have no response from the pic (I receive "time out" information).

I have tested the serial communication with standards program and works fine, so there is no hardware problem.

Can someone help me and see what am I missing?
Reply
#2
I did solve my problem.
In fact I just define all the CONFIG bits, which was not the case before.
In case someone is interested here is the definition of the bits:
CONFIG DEBUG = OFF
CONFIG FOSC = HSPLL
CONFIG WDTEN = OFF ;wathcdog timer
CONFIG STVREN = OFF ;stack over-/underflow reset
CONFIG XINST = OFF ;extended instruction set
CONFIG CP0 = OFF ;code protect
CONFIG FCMEN = ON ;fail-safe clock monitor
CONFIG IESO = ON ;Internal External Osc. SO Mode
CONFIG WDTPS = 128 ;watchdog postscaler
CONFIG CCP2MX = DEFAULT
CONFIG MSSPMSK = MSK7
CONFIG PLLDIV = 5
CONFIG CPUDIV = OSC1

Thanks anyway.
Reply
#3
Great! Also you should probably delete or comment this line:
Code:
#define        DEV_MODE        1                ;xxx remove or comment this line
Reply
#4
(2011-03-08, 22:00:28)MikaelĀ Gustafsson Wrote: Great! Also you should probably delete or comment this line:
Code:
#define        DEV_MODE        1                ;xxx remove or comment this line

Are you sure ?
This variable is used in asm file (line 250) (Firmware PIC18FJ)

Have also a look here :
[broken link]
Reply
#5
I'm pretty sure, I wrote the firmware including the comment that says that the line should be removed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)