2013-03-17, 07:28:22
(This post was last modified: 2013-03-20, 00:10:52 by Mikael Gustavsson.)
Hello to all,
I have been trying in the last few days to get the ds30loader to work on the 16F1827, which to date I can not get to work, also this is my first attempt in using bootloaders.
In the uploaded zip file I have selected 16F1827 in the SETTINGS.INC file & 20mhz for FOSC as that is the clock frequency for my project, I also selected USE_TXENABLE to see if the ds30loader program was working as PORTB.B2 (TX pin) was not being set as output despite setting ANSELB in the USER_CODE.INC and adding clrf ANSELB.
Also using 20mhz resonator instead of cystal.
Also the USE_TXENABLE PORTB.B0 should be set as output but PORTB.B3
is the one that is set as output, I tried PORTB.B4 as well but PORTB.B3 keeps on being set as output.
The 16F1827 I am using is working as it works in my project with the onboard UART PORTB.B1(RX) & PORTB.B2(TX)
I use a USB - RS232 TTL cable with the TX connected to RX(PORTB.B1)
and RX connected to TX(PORTB.B2)
Using the GUI loader I get no response from the bootloader, on the 1827
there is nothing on the TX pin of the 1827 PORTB.B2 to indicate data being sent out from the PIC, which seems to be set as input.
MPLAB used is V8.90 and I use MikroC Pro as my compiler.
Any help to steer me in the right direction would be appreciated
regards Andrew
I have been trying in the last few days to get the ds30loader to work on the 16F1827, which to date I can not get to work, also this is my first attempt in using bootloaders.
In the uploaded zip file I have selected 16F1827 in the SETTINGS.INC file & 20mhz for FOSC as that is the clock frequency for my project, I also selected USE_TXENABLE to see if the ds30loader program was working as PORTB.B2 (TX pin) was not being set as output despite setting ANSELB in the USER_CODE.INC and adding clrf ANSELB.
Also using 20mhz resonator instead of cystal.
Also the USE_TXENABLE PORTB.B0 should be set as output but PORTB.B3
is the one that is set as output, I tried PORTB.B4 as well but PORTB.B3 keeps on being set as output.
The 16F1827 I am using is working as it works in my project with the onboard UART PORTB.B1(RX) & PORTB.B2(TX)
I use a USB - RS232 TTL cable with the TX connected to RX(PORTB.B1)
and RX connected to TX(PORTB.B2)
Using the GUI loader I get no response from the bootloader, on the 1827
there is nothing on the TX pin of the 1827 PORTB.B2 to indicate data being sent out from the PIC, which seems to be set as input.
MPLAB used is V8.90 and I use MikroC Pro as my compiler.
Any help to steer me in the right direction would be appreciated
regards Andrew