Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
18F26K22 [solved]
#1
I have spent ages trying to get bootloader working on USART1 of an 18F26K22. I have had no problems with other chips from the 18F family but this one has been a major headache.
After 2 days of fiddling i finally gave up and tried USART2. It worked on USART2 first time, but with errors. It would stop halfway through uploading a program and give a timeout error.
This is with

OSCF 16000000
BAUDRATE 115200

I realise that the Microchip manual gives this a 3% error rate but i have never had any problems with other chips.
I tried reducing the baudrate to 19200 (error rate 0.16) but had the same problems.

I finally fixed it by enabling USE_BRG16 and going back to 115200 (error -0.79%)

Now works perfectly (on USART2). Still nothing on USART1. I know USART1 works ok as i can program it fine using microchip C18 compiler.

Are these chips problematic or is there something i am missing?
I am using the latest version 3.0.0 of the bootloader software and my config settings are

config FOSC = INTIO67
config WDTEN = OFF
config BOREN = OFF
config PWRTEN = ON
config MCLRE = EXTMCLR
config LVP = OFF
config HFOFST = OFF
config PRICLKEN = OFF
config FCMEN = OFF
config CCP3MX = PORTB5
config XINST = OFF
config IESO = OFF

Has anyone got the bootloader working on USART1?

Thanks
Reply


Messages In This Thread
18F26K22 [solved] - by hobbytronics - 2011-07-07, 14:14:52
RE: 18F26K22 - by Mikael Gustavsson - 2011-07-07, 14:46:32
RE: 18F26K22 - by hobbytronics - 2011-07-07, 15:16:01
RE: 18F26K22 - by Mikael Gustavsson - 2011-07-07, 22:17:26
RE: 18F26K22 - by hobbytronics - 2011-07-08, 11:08:53
RE: 18F26K22 - by Mikael Gustavsson - 2011-07-08, 11:16:16
RE: 18F26K22 - by hobbytronics - 2011-07-08, 14:27:39
RE: 18F26K22 - by Mikael Gustavsson - 2011-07-08, 15:51:10
RE: 18F26K22 - by hobbytronics - 2011-07-08, 16:31:40
RE: 18F26K22 - by Mikael Gustavsson - 2011-07-08, 23:22:36
RE: 18F26K22 - by Mikael Gustavsson - 2011-07-15, 16:46:18
RE: 18F26K22 - by strud - 2012-02-19, 20:37:45
RE: 18F26K22 - by Mikael Gustavsson - 2012-02-20, 22:33:07
RE: 18F26K22 - by ghu - 2012-03-25, 21:26:04
RE: 18F26K22 - by Tom-H-PIC - 2012-04-01, 23:23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)