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

Who can help me to solve bootloader

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



Joined: 05 Aug 2009
Posts: 37

View user's profile Send private message MSN Messenger

Who can help me to solve bootloader
PostPosted: Mon Nov 02, 2009 1:15 am     Reply with quote

Hello Everybody

I have question about bootloader. How can I build it ? Crying or Very sad
My CCS version is 4.084.
I use "Project > New > Project Wizard" to create a bootloader.
The CCS code as follows shows:
Code:

#include "CCS\Boot Loader\Boot Loader_18F452\18F452.h"
#include "CCS\Boot Loader\Boot Loader_18F452\18F452_bootloader.h"
#include <string.h>

//BOOTLOADER AT START - Include Bootloader.h in your application - See sample application Ex_Bootload.c 
//BOOTLOADER AT END - Always include the projectname_bootloader.h file in future versions of the project

// NOTE - User must include PROJECTNAME_bootloader.C in his final Application program

void application(void)
{
  while(TRUE); 
}

void main()
{     
   // Enter Bootloader if Pin B5 is low after a RESET
   if(!input(PIN_B5))
   {
      real_load_program();
   }
   application();   

}

But when I compile, it had wrong message about -
Shocked
Quote:

- Out of ROM,A seqment or the program is too large
Seq 0002A-004FE,001C left, need 003C
1 Errors, 0 Warming.

Who can help me to solve bootloader ? Please Crying or Very sad

Notice: I can't use Tiny-bootloader because Tiny can't support 18FJ
series. My PIC-IC have PIC18F4620, PIC18F452, PIC18F67J10.
I use "J" series finally.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 02, 2009 3:11 pm     Reply with quote

Quote:
Include Bootloader.h in your application

This is just some code that you found on the net, probably from here:
http://202.44.12.124/~kroeksak/castday/remoteio/main.c
How do you know this code works ?


Use the CCS example bootloader code.
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