Hola a todos, estoy super emocionado con el tema de este link, yo manejo niple para generar mi codigo, he estado buscando por toooodos lados como adaptar mi codigo al bootloader, obviamente esto en el asm q me genera niple, a través de mplab. Se q esta pregunta tal vez deberia ir x alla, pero siento q los expertos en btldr podrian echarme una mano con esto, usé el btldr de la pagina 1, el demo 1 y 2, no me funcionan, supongo q por falta de los demas componentes, pero el btldr si q lo reconoce.
Entonces, solo quisiera saber, q lineas agregar para q mi codigo no pise la zona del btlr, y respetando tambien, los vectores de interrupciones.
Sin mas, les agradesco su tiempo, anexando el encabezado del codigo q me genera niple del asm:
;------------------------------------------------------------
; Código assembler generado por Niple V5.6.0
; Proyecto: simple led
; Autor: Iran Espinoza
; Fecha: 03/07/2012
; PIC: 18F4550
; Velocidad de reloj: 20 Mhz
; Descripcion:
;------------------------------------------------------------
LIST P=PIC18F4550
_PLLDIV_1 equ 0xF8
_CPUDIV_OSC1_PLL2 equ 0xE7
_USBDIV_1 equ 0xDF
_FOSC_HS equ 0xFC
_FCMEN_OFF equ 0xBF
_IESO_OFF equ 0x7F
_PWRT_ON equ 0xFE
_BOR_OFF equ 0xF9
_BORV_0 equ 0xE7
_VREGEN_ON equ 0xFF
_WDT_OFF equ 0xFE
_WDTPS_1 equ 0xE1
_MCLRE_OFF equ 0x7F
_LPT1OSC_OFF equ 0xFB
_PBADEN_OFF equ 0xFD
_CCP2MX_OFF equ 0xFE
_LPT1OSC_OFF equ 0xFB
_STVREN_OFF equ 0xFE
_LVP_OFF equ 0xFB
_ICPRT_OFF equ 0xDF
_XINST_OFF equ 0xBF
_DEBUG_OFF equ 0xFF
_CP0_OFF equ 0xFF
_CP1_OFF equ 0xFF
_CP2_OFF equ 0xFF
_CP3_OFF equ 0xFF
_CPB_OFF equ 0xFF
_CPD_OFF equ 0xFF
_WRT0_OFF equ 0xFF
_WRT1_OFF equ 0xFF
_WRT2_OFF equ 0xFF
_WRT3_OFF equ 0xFF
_WRTB_OFF equ 0xFF
_WRTC_OFF equ 0xFF
_WRTD_OFF equ 0xFF
_EBTR0_OFF equ 0xFF
_EBTR1_OFF equ 0xFF
_EBTR2_OFF equ 0xFF
_EBTR3_OFF equ 0xFF
_EBTRB_OFF equ 0xFF
_config1l equ 0x300000
_config1h equ 0x300001
_config2l equ 0x300002
_config2h equ 0x300003
_config3h equ 0x300005
_config4l equ 0x300006
_config5l equ 0x300008
_config5h equ 0x300009
_config6l equ 0x30000a
_config6h equ 0x30000b
_config7l equ 0x30000c
_config7h equ 0x30000d
__config _config1l, _PLLDIV_1 & _CPUDIV_OSC1_PLL2 & _USBDIV_1
__config _config1h, _FOSC_HS & _FCMEN_OFF & _IESO_OFF
__config _config2l, _PWRT_ON & _BOR_OFF & _BORV_0 & _VREGEN_ON
__config _config2h, _WDT_OFF & _WDTPS_1
__config _config3h, _MCLRE_OFF & _LPT1OSC_OFF & _PBADEN_OFF & _CCP2MX_OFF
__config _config4l, _STVREN_OFF & _LVP_OFF & _ICPRT_OFF & _XINST_OFF & _DEBUG_OFF
__config _config5l, _CP0_OFF & _CP1_OFF & _CP2_OFF & _CP3_OFF
__config _config5h, _CPB_OFF & _CPD_OFF
__config _config6l, _WRT0_OFF & _WRT1_OFF & _WRT2_OFF & _WRT3_OFF
__config _config6h, _WRTB_OFF & _WRTC_OFF & _WRTD_OFF
__config _config7l, _EBTR0_OFF & _EBTR1_OFF & _EBTR2_OFF & _EBTR3_OFF
__config _config7h, _EBTRB_OFF
;------------------------------------------------------------
; Declaración de Registros
;------------------------------------------------------------
w equ 0x0000
_np_tiempo equ 0x0001
_np_tiempo1 equ 0x0003
_np_tiempo2 equ 0x0004
_np_tiempo3 equ 0x0005
porta equ 0x0f80
portb equ 0x0f81
portc equ 0x0f82
portd equ 0x0f83
porte equ 0x0f84
lata equ 0x0f89
latd equ 0x0f8c
late equ 0x0f8d
trisa equ 0x0f92
trisb equ 0x0f93
trisc equ 0x0f94
trisd equ 0x0f95
trise equ 0x0f96
adcon2 equ 0x0fc0
adcon1 equ 0x0fc1
adcon0 equ 0x0fc2
status equ 0x0fd8
bsr equ 0x0fe0
pclath equ 0x0ffa
;------------------------------------------------------------
; Declaración de Bits
;------------------------------------------------------------
adon equ 0 ;
c equ 0 ;
rd1 equ 1 ;
vcfg0 equ 4 ;
vcfg1 equ 5 ;
z equ 2 ;
;------------------------------------------------------------
; Declaración de Registros EEPROM
;------------------------------------------------------------
;------------------------------------------------------------
; Inicio
;------------------------------------------------------------
org 0x00
goto paso2
;------------------------------------------------------------
; programa principal
;------------------------------------------------------------
paso2
movlb .0 ;cambiar al banco 0
clrf _np_tiempo,1
clrf _np_tiempo1,1
Les agradesco cualquier dato, y si alguien me hace alguna referencia, o donde buscar, yo le busco x ahi, saludos a todos!