Hello, Yes I've saw that application notes (851 IIRC), though it seems like it wasn't what I was looking for. Someone at irc told me that a bootfile isn't needed at all when trying to do things such like blinking leds, and that I could flash that code directly within the pic and it will work. Then I though on just getting an output pin high so I could start by turning on the led before even trying to make it blink. Started looking at gpasm's documentation, got the original configuration bits from microchip's MCHPFSUSB, which are these: ;; CONFIG1L Options _CPUDIV_OSC1_PLL2_1L _PLLDIV_5_1L _USBDIV_2_1L ;; CONFIG1H Options _FOSC_HSPLL_HS_1H _FCMEM_OFF_1H _IESO_OFF_1H ;; CONFIG2L _PWRT_OFF_2L _BOR_ON_2L _BORV_21_2L _VREGEN_ON_2L ;; CONFIG2H _WDT_OFF_2H ; watchdog timer _WDTPS_32768_2H ; watchdog post-scaler ;; CONFIG3H _MCLRE_ON_3H ; mclr enabled, re3 disabled _LPT1OSC_OFF_3H ; low power timer1 _PBADEN_ON_3H ; portb<4:0> digital input on reset ;; CONFIG4L _STVREN_ON_4L ; stack overflow reset _LVP_OFF_4L ; low voltage programming _ICPRT_OFF_4L ; dedicated in-circuit port _DEBUG_OFF_4L ; debug ;; CONFIG5L _CP0_OFF_5L ; code protect _CP1_OFF_5L ; code protect ;; CONFIG5H _CPB_OFF_5H ; boot block code protection ;; CONFIG6L _WRT0_OFF_6L ; write protection _WRT1_OFF_6L ; write protection ;; CONFIG6H _WRTB_ON_6H ; boot block write protection _WRTC_OFF_6H ; configuration register write protection ;; CONFIG7L _EBTR0_OFF_7L ; Table Read Protection _EBTR1_OFF_7L ; Table Read Protection ;; CONFIG7H _EBTRB_OFF_7H ; Boot Block Table Read Protection But then, if I try this: Processor 18f4550 #include __CONFIG (_CPUDIV_OSC1_PLL2_1L & _PLLDIV_5_1L & _USBDIV_2_1L & FOSC_HSPLL_HS_1H & _FCMEM_OFF_1H & _IESO_OFF_1H & _PWRT_OFF_2L & _BOR_ON_2L & _BORV_21_2L & _VREGEN_ON_2L & _WDT_OFF_2H & WDTPS_32768_2H & CLRE_ON_3H & _LPT1OSC_OFF_3H & _PBADEN_ON_3H _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L & _CP0_OFF_5L & _CP1_OFF_5L & _CPB_OFF_5H & _WRT0_OFF_6L & _WRT1_OFF_6L & _WRTB_OFF_6H & _WRTC_OFF_6H & _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTRB_OFF_7H) END I get error 103 (syntax error). If I get rid of all but those which define clock and spped settings I get this: blink.asm:3:Warning [212] 18cxxx devices should specify __CONFIG address where neither the documentation specifies __CONFIG as an instruction that expects an address, nor warning 212 appears on the documentation. I haven't seen either on the internet examples for gpasm appart from those on gputils-extra and which would be really helpfull, as I could make use of them together with the documentation and understand how this goes. Cand someone tell me something about? Best Regards, ----- Original Message ----- From: John Chung Date: Thursday, November 2, 2006 2:59 am Subject: Re: [PIC] looking for a bootfile's source code To: "Microcontroller discussion list - Public." > do you mean bootloader? There is an application in > microchip.com itself. check it out. > > John > > --- antoniarodri@canarias.org wrote: > > > Hello, > > > > I've been a few months around pics, though I > > consider myself as a complete ignorant on the > > subject. > > > > I'd like to know if there's anywhere I cand find a > > boot file's source code so I can study it, burn it, > > try it and learn how all of this work together with > > userspace applications (just flashing a led is mi > > goal by now). > > > > What I'm using is a pic18f4550, I've already seen > > microchip's usb project zip for building it with > > MPLAB, though I've left usb right appart by now as > > it's way too much the knowledge I have at the > > moment. Appart from it, I'm not using windows but > > linux. > > > > So I wonder if is there somewhere users could find > > sdcc, or gpasm bootfiles' source code for this model > > of PIC? any close model would also be helpful > > > > Thanks so much for any pointers or advises. > > > > Best Regards, > > > > > > -- > > http://www.piclist.com PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > > ____________________________________________________________________________________ > Want to start your own business? Learn how on Yahoo! Small Business > (http://smallbusiness.yahoo.com) > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist