Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
Taz Cast
tazcast

posted on 2014/05/17 07:14:59 AM CEST

Audio & Speech

PIC18F66K22 Serial Bootloader

Hi Guys!

Has anyone of you created a working bootloader for PIC18F66K22?

I have used the bootloader example in MicroC found in this directory C:\Users\ysa\Documents\Mikroelektronika\mikroC PRO for PIC\Examples\Other\Bootloader\P18\064K\Boot_Loader.mcppi.

I edited the part for setting up the baud rate from Susart_Init(51); // Init USART at 9600 to Susart_Init(77); // Init USART at 9600 so that it will be at 9600 baud rate for a clock of 12MHz (I am using 12Mhz external RC clock with no prescaler).

I also edited the project setting to use PIC18F66K22 and 12Mhz clock, recompiled and loaded the hex file on the MCU.

But it does not work. The PIC does not connect to the MikroBootloader app. It always show "Disconnected".