Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC18F26K22 troubles
#1
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.


Attached Files
.zip   ds30 Loader.zip (Size: 923.12 KB / Downloads: 28)
Reply
#2
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
Reply
#3
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
Reply
#4
Thanks for the report.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)