ds30 Loader free edition forums
PIC18F26K22 troubles - Printable Version

+- ds30 Loader free edition forums (https://picbootloader.com/forum)
+-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3)
+--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7)
+--- Thread: PIC18F26K22 troubles (/showthread.php?tid=651)



PIC18F26K22 troubles - doubleeaz - 2013-08-31

This is only the second time that I have used the ds30 loader bootloader and running into some issues.

I am using a PIC18F26K22. Using UART1. I have compensated for the BRG issue in the errata (must set BRG16 and BRGH). I have made sure all ports are correct for analog & digital (ANSELx registers).

I am running 16MHz, 19200 baud (also tried 9600). I can run check for bl and it gets recognized. version 3.0.2.

When I try to write, i get the following.

Initiating write...
Searching for bl .
Found PIC18F26K22 fw ver. 3.0.2
Waiting for the boot loader to be ready...ok
Parsing hexfile...
File timestamp: 8/25/2013 6:51:46 PM
Opening hexfile...ok
Validating hexfile...ok
Hex file successfully parsed
Writing flash....response timed out
Write flash failed
Tx 7 bytes / Rx 4 bytes / 15.5s
Write failed

I probed the pins of the PIC and see traffic. Files are zipped and attached. Any help would be greatly appreciated.


RE: PIC18F26K22 troubles - Mikael Gustavsson - 2013-09-05

Hi,
Sorry for the late reply. I've been on vacation.

Do you use RS232 or RS485? If RS232, comment this line
Code:
#define    USE_TXENABLE    1



RE: PIC18F26K22 troubles - doubleeaz - 2013-09-12

Thanks Mikael,
I am using RS485. I found some files for a PIC18F25K22 that I modified and it seems to be working. About the only change was to go in and configure comparators and all TRIS registers.
Regards,
Rodger

(2013-09-05, 20:10:59)Mikael Gustavsson Wrote: Hi,
Sorry for the late reply. I've been on vacation.

Do you use RS232 or RS485? If RS232, comment this line
Code:
#define    USE_TXENABLE    1



RE: PIC18F26K22 troubles - Mikael Gustavsson - 2013-09-12

Thanks for the report.