Hi all, Since I can't understand what I am doing wrong I just want to check if anybody has any sugestions. I have a PIC16LF871 with "01619 - bootldr-v26-16F870-71-16Mhz-19200bps.hex" programmed inside with the following configuration: Oscillator:HS / Code Protect off / Fuses: WDT 0,PWRT 0,BODEN 0,LVP 0,CPD 1,WRT 1,DEBUGGER 1 In my board I am using a 16MHz crystal, MCLR is connected to VDD by 1K2 res and RB3 is connected to ground by another 1K2 res. I am able to see the PIC oscillating signal with a scope. In order to load the test code "_19160 - Test_16F87x_Serial_Port_19200baud_16Mhz.hex" I use the "PIC downloader 1.08" software. It presents the message "searching for bootloader" and I can see some signals (don't know if the correct ones) in the RC7/RX pin, just after a ICL232-RS232 to TTL converter. Shouldn't something happen after I reset the PIC? Do you see anything wrong in the PIC configuration? Do you see anything wrong in my short schematic description? Any ideas would be apreciated... Thank you, VSC |
|
MICROCHIPC bootloader - Can't download code into PIC16LF871
I don't know that particular bootloader, but be aware that some (many?)
bootloaders put restrictions on the use of config bits. That is because changing even a single config bit could destroy the bootloader....that would be the case if oscillator settings were changed....the bootloader would loose coms with the host program PERMANENTLY. I have just finished my pic18 bootloader, with encryption and stuff,
and here too
vsc_mr wrote: Hi all,
|
|
Hi!
Do you have tried to use the serial port demo before
to use de bootloader?
Bye!
|
|
Hi, No. Fist I have programmed the bootloader and then I have tried to download the serial test file. At this point I have postponed the serial test and made a small test code. I downloaded it and it worked (almost (*)) as I expected, so I think the bootloader is OK but not the serial test file. ALMOST(*) - My test code is a infinite loop were I increment all ports of the 16F871 MCU. I was expecting to see "clock" signals at every port pin but that is not want happened. In the same port some pins worked and some didn't. I suspect that the ADC and the comparator blocks are not disabled as I expected. Do you (anyone) knows how to disable them and make all port pins general purpose I/Os? Thanks for the help, VSC --- In , "J. A. Casas" <ihouses@i...> wrote: > Hi! > > Do you have tried to use the serial port demo before to use de bootloader? > > Bye! > -----Mensaje original----- > De: Eirik Karlsen [mailto:eikarlse@o...] > Enviado el: miercoles, 26 de mayo de 2004 10:08 > Para: > Asunto: Re: [piclist] MICROCHIPC bootloader - Can't download code into > PIC16LF871 > I don't know that particular bootloader, but be aware that some (many?) > bootloaders put restrictions on the use of config bits. That is because > changing > even a single config bit could destroy the bootloader....that would be the > case if > oscillator settings were changed....the bootloader would loose coms with > the > host program PERMANENTLY. > I have just finished my pic18 bootloader, with encryption and stuff, and > here too > the config bits are off limits to the user. > Also most bootloaders put quite strict and specific restrictions on int > and reset vectors > (they are relocated in memory). > > vsc_mr wrote: > > Hi all, > Since I can't understand what I am doing wrong I just want to check if > anybody has any > sugestions. > > I have a PIC16LF871 with "01619 - > bootldr-v26-16F870-71-16Mhz-19200bps.hex" programmed > inside with the following configuration: > Oscillator:HS / Code Protect off / Fuses: WDT 0,PWRT 0,BODEN 0,LVP > 0,CPD 1,WRT 1,DEBUGGER 1 > > In my board I am using a 16MHz crystal, MCLR is connected to VDD by > 1K2 res and RB3 is > connected to ground by another 1K2 res. > I am able to see the PIC oscillating signal with a scope. > > In order to load the test code "_19160 - > Test_16F87x_Serial_Port_19200baud_16Mhz.hex" > I use the "PIC downloader 1.08" software. It presents the message > "searching for > bootloader" and I can see some signals (don't know if the correct > ones) in > the RC7/RX pin, just after a ICL232-RS232 to TTL converter. > > Shouldn't something happen after I reset the PIC? > Do you see anything wrong in the PIC configuration? > Do you see anything wrong in my short schematic description? > Any ideas would be apreciated... > > Thank you, > VSC > > -- > ******************************************* > VISIT MY HOME PAGE: > <http://home.online.no/~eikarlse/index.htm> > LAST UPDATED: 23/08/2003 > ******************************************* > Best Regards > Eirik Karlsen > to unsubscribe, go to http://www.yahoogroups.com and follow the > instructions ---- > -- > Yahoo! Groups Links > > a.. To |