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

Bootloader problem with PIC16F877

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



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

Bootloader problem with PIC16F877
PostPosted: Thu Sep 17, 2009 9:17 am     Reply with quote

I couldn't work with bootloader. I have read help of CCSC and I tried the examples but I couldn't succeed. Could you explain this problem very simply and step by step?
Thanks...
theasus



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

PostPosted: Fri Sep 18, 2009 11:02 am     Reply with quote

is there anyone to answer my question?????
My question is the usage of Bootloader
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 18, 2009 12:15 pm     Reply with quote

Did you try this CCS example of the bootloader firmware ?
Quote:
c:\program files\picc\examples\ex_bootloader.c


Also CCS has a short sample application program that can be downloaded
into a PIC that already has the above bootloader installed in it.
Here's the application program:
Quote:
c:\program files\picc\examples\ex_bootload.c


1. Post your compiler version.
2. Are you testing the bootloader in real hardware ?
theasus



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

PostPosted: Fri Sep 18, 2009 12:36 pm     Reply with quote

The version of my compiler is 4.088
I have tried these operations at real hardware.
And I have tried this bootloader example following this steps;
1-I have compiled ex_bootloader.c.
2-I have load the ex_bootloader.hex using my pic programmer.
3-I have compiled ex_bootload.c
4-And I tried to send this hex file "ex_bootload.hex" using SIOW.exe which is located at CCSC folder. I have clicked "Download Software" in this program but an error has occurred like this "Timeout while downloading"

Not:I didn't change anything in these codes ex_bootloader.c,ex_bootload.c except setting of frequency of oscillator.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 18, 2009 12:56 pm     Reply with quote

Did you follow the instructions in the Ex_bootloader.c file:
Quote:

//// This bootloader is designed to detect pin B5 low on reset. It
//// will then use the RS232 link to download a new program.
//// Otherwise the application program is started.


You have to put a jumper on pin B5 (to ground), and then reset the PIC.
You can reset the PIC by either turning the power on and off, or by
pressing a reset button which is connected to the MCLR pin.
(This button connects MCLR to ground when it is pressed).

When you do that, the PIC will go into "bootload" mode. It will wait for
you to send it an application program with SIOW. When you send it,
the PIC will program itself with the application program.
theasus



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

PostPosted: Sat Sep 19, 2009 3:35 am     Reply with quote

I did everything you said but it doesn't work.I think there is a problem with Siow.exe.this program gives this answer always "timeout while downloading".
Could you propose any different programs instead of Siow.exe?
Ttelmah
Guest







PostPosted: Sat Sep 19, 2009 5:12 am     Reply with quote

The bootloader, and SIOW, _both work_.
Have you actually proved that your serial connection to the PIC, is working, _before_ trying to get the bootloader going?. Can a 'hello world' type program print to the PC?. Can you receive data from the PC, and echo it back?. Write a program to send different mesages based on the signal on B5. Does this work?.
Only once all of these are working, start to look at the bootloader.

Best Wishes
theasus



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

PostPosted: Thu Sep 24, 2009 2:30 am     Reply with quote

Thanks to you I have solved this problem. The problem is MAX232. It is not working and I have changed it new one.
Best Regards
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