Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
18F25K20 again ?
#1
I am stumped.

I got this bootloader going on a 16F887 and a 18F14K22.
I have been struggling with the 18F25K20 for 3 days now. The GUI simply does not recognise the chip. I checked weather PLL was enabled but it seems not to be the case. I used an osciloscope to chect the tx output but I cant make sense of it.

None of the previous posts on the same chip has helped.

What am I missing ?

Thanks for a great bootloader.


Attached Files
.zip   18f25k20.zip (Size: 71.27 KB / Downloads: 18)
Reply
#2
I cannot spot any problem with your code. I assume that the uart is working in your application. Try these changes:

1.
-change baud rate to 9600

2.
-enable brg16

3.
-change baud rate to 9600
-enable auto baud rate detectio in both fw and gui

4. Check oscillator frequency. Test code is available in ds30loader.s:
Code:
        ; Toggle pin, frequency on pin = PIC frequency / 16
        if 0
            bcf    TRISx, TRISxx
tsfloop        bsf LATx, LATxx
            bcf LATx, LATxx
            bra tsfloop
        endif
Reply
#3
Hi.
I feel kinda stupid, but I have to say a BIG THANKS Mikael.

It turnes out that the MAX3232 chip I was using simly looped back EVERYTHING sent to it from the terminal. So everytime I do a loopback to test the serial port by shorting out TX and RX on the 3232 it would work and I would asume everything is ok.
I wrote a program for the pic to send acending numbers to the terminal and when that did not work I found the problem with the 2323.

Thanks again for a great bootloader, your advice and support.
Reply
#4
Hi,
Thank you for the update and feedback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)