CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Tiny bootloader problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pau



Joined: 18 Nov 2008
Posts: 8

View user's profile Send private message

Tiny bootloader problem
PostPosted: Thu Sep 03, 2009 3:11 am     Reply with quote

I use Tiny for programming the PIC18F452 and it works when I use a crystal of 4 Mhz, but I've tried with a 10 Mhz crystal and it doesn't work.Shocked

I've changed the xtal line, in the bootloader file, like this:
Code:
;xtal EQU 4000000
xtal EQU 10000000


I've programmed it, but when I try to send the hex file with the bootloader, it sometimes says that doesn't find the pic, just when I power up the device, and others ones says:

pic sending unknown data: "K" <> 0h=
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
ERROR!

I think I don't have to change the line of the oscillator type, is it true? Because a 10 Mhz crystal is also a HS oscillator.


Thanks
pau



Joined: 18 Nov 2008
Posts: 8

View user's profile Send private message

PostPosted: Fri Sep 04, 2009 1:58 am     Reply with quote

I can't believe nobody use tiny bootloader.

In this case, do you use any other bootloader for PIC18F452?
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Fri Sep 04, 2009 9:59 am     Reply with quote

When compiling the tiny bootloader, the following has to be modified according to your needs:
LIST P=18F2420 ; change also: Configure->SelectDevice from Mplab
xtal EQU 20000000 ;
baud EQU 115200 ; the desired baud rate

do not also forget to modify fuses
CONFIG OSC = HS, FCMEN = ON, IESO = ON, PWRT = ON, BOREN = OFF, WDT = OFF, MCLRE = ON, LPT1OSC = OFF
CONFIG PBADEN = OFF, CCP2MX = PORTC, STVREN = ON, XINST = OFF, DEBUG = OFF, LVP=OFF

Use OSC = HS for crystals >4Mhz
OSC = XT for crystals <=4Mhz

cheers
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group