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 support@ccsinfo.com

tiny bootloader problems!!!

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



Joined: 24 Feb 2009
Posts: 15
Location: Addis

View user's profile Send private message

tiny bootloader problems!!!
PostPosted: Sun Mar 15, 2009 1:14 am     Reply with quote

I'm using the tiny bootloader. I burnt the bootloader on the PIC(18F458)
and then when I tried to load my code using the tiny bootloader PC
application it reports "pic sending unknown data: K not found ERROR!"

But according to the tiny bootloader algorithm the PIC sends 'K' after the
PIC ID, isn't it?

Anybody who had the same problem, please help?
_________________
chips are forever
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Sun Mar 15, 2009 3:48 pm     Reply with quote

The tiny bootloader has always worked like a charm for me.
Did you compile the tiny bootloader by yourself? Did you set correct crystal setting, frequency and UART baud rate?
How did you connect the PC and the PIC? Do you have MAX232 chip in your circuit?
electrogen



Joined: 24 Feb 2009
Posts: 15
Location: Addis

View user's profile Send private message

PostPosted: Mon Mar 16, 2009 3:13 am     Reply with quote

yeah, I connected everything as stated on the tinybootloader website, ofcourse the hardware connection is all provided with the zip file I downloaded. Surely no problem with the connections

I also used max232 as stated there. but I cann't figure out why the PIC sends more than one byte of ID and K afterwards.
_________________
chips are forever
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Mon Mar 16, 2009 2:52 pm     Reply with quote

As I wrote, check crystal and its configuration when compiling the bootloader source code.
As for serial line test (MAX232), if you didn't do so, disconnect the PIC and short RX and TX TTL pins going from the MAX chip. What you send from the computer should also be received by the computer.
electrogen



Joined: 24 Feb 2009
Posts: 15
Location: Addis

View user's profile Send private message

PostPosted: Tue Mar 17, 2009 1:12 am     Reply with quote

Alright, the problem is the MAX232 works only @ 5V, but I operated it @3V3.
Unfortunately I can't go up more than 3V6 bcoz I have components on board that can't tolerate a voltage more than that, otherwise I should cut the VCC line to the PIC on the PCB and supply it alone with 5V.

Thanks!
_________________
chips are forever
Guest








PostPosted: Tue Mar 17, 2009 10:59 am     Reply with quote

You can get versions of the max232 that work on 3.3 volts.
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Tue Mar 17, 2009 6:08 pm     Reply with quote

such as MAX3232
you can also use a simple voltage divider as an input to the PIC from the MAX232 chip
vijay s



Joined: 20 Oct 2007
Posts: 17
Location: coimbatore,india

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Wed Mar 18, 2009 1:45 am     Reply with quote

I tinyBoot loaded PIC16f877A. Actually I altered the PIC16f873A source code for 877A. Problem here is bootloader is working i.e. I am able to fuse my application, but my application code is not working. When I fuse my application code directly it's working. What might be the problem ?

I wrote my application using MPLAB 8.20, CCS 4.76.
_________________
with regards
vijay s
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