Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help needed for 16F1827 bootloader [solved]
#5
Hi Andrew,
Can you share your complete modified version of the bootloader folder with us? I am trying to make it work with PIC16F1847 with an external 20 MHz resonator, and having the similar problem.

Thanks,
Raj
(2013-03-19, 00:19:48)andcvi Wrote: Hello Mikael,

I got the bootloader to work last night, I had to add the following code into user_code.inc

Code:
ifdef    ANSELB

                ;error Do you need to configura uart pins to be digital? If not, remove this line

                banksel  ANSELB
                clrf     ANSELB
                banksel  TRISB
                movlw    B'11110011'                 ;  hardware-UART Tx/Rx direction
                movwf    TRISB
                banksel  PORTB
                movlw    B'11111111'
                movwf    PORTB
            endif


now the bootloader works

I also set the config bits in settings.inc for my setup

regards Andrew

I was able to make the bootloader work for PIC16F1827 with the modifications suggested by Andrew. However, when I tried to do the same with PIC16F1847, the GUI returns the following error.

Searching for bl .
Found PIC16F1513 fw ver. 1.0.2
Wrong pic detected(499)/selected(468), aborting

Any suggestion, why the GUI is detecting a wrong PIC.

Thanks,
Raj

sds
(2013-05-15, 05:11:08)rajbex Wrote: Hi Andrew,
Can you share your complete modified version of the bootloader folder with us? I am trying to make it work with PIC16F1847 with an external 20 MHz resonator, and having the similar problem.

Thanks,
Raj
(2013-03-19, 00:19:48)andcvi Wrote: Hello Mikael,

I got the bootloader to work last night, I had to add the following code into user_code.inc

Code:
ifdef    ANSELB

                ;error Do you need to configura uart pins to be digital? If not, remove this line

                banksel  ANSELB
                clrf     ANSELB
                banksel  TRISB
                movlw    B'11110011'                 ;  hardware-UART Tx/Rx direction
                movwf    TRISB
                banksel  PORTB
                movlw    B'11111111'
                movwf    PORTB
            endif


now the bootloader works

I also set the config bits in settings.inc for my setup

regards Andrew
Reply


Messages In This Thread
Help needed for 16F1827 bootloader [solved] - by andcvi - 2013-03-17, 07:28:22
RE: Help needed for 16F1827 bootloader - by andcvi - 2013-03-19, 00:19:48
RE: Help needed for 16F1827 bootloader - by rajbex - 2013-05-15, 05:11:08
RE: Help needed for 16F1827 bootloader [solved] - by HavenTech - 2022-07-20, 14:06:00

Forum Jump:


Users browsing this thread: 1 Guest(s)