![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
pau
Joined: 18 Nov 2008 Posts: 8
|
Tiny bootloader problem |
Posted: Thu Sep 03, 2009 3:11 am |
|
|
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.
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 |
|
![](templates/subSilver/images/spacer.gif) |
pau
Joined: 18 Nov 2008 Posts: 8
|
|
Posted: Fri Sep 04, 2009 1:58 am |
|
|
I can't believe nobody use tiny bootloader.
In this case, do you use any other bootloader for PIC18F452? |
|
![](templates/subSilver/images/spacer.gif) |
meereck
Joined: 09 Nov 2006 Posts: 173
|
|
Posted: Fri Sep 04, 2009 9:59 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|