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

Bootloader AN851 with CCS

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



Joined: 10 Aug 2009
Posts: 3

View user's profile Send private message

Bootloader AN851 with CCS
PostPosted: Mon Aug 10, 2009 9:55 pm     Reply with quote

Hi, I would like to know if someone used the bootloader from Microchip AN851 but with CCS? I am very interested in doing it.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 11, 2009 12:19 pm     Reply with quote

Use the forum's search page to search for AN851. Then you'll see all
of our previous comments on that Appnote. Here's the link:
http://www.ccsinfo.com/forum/search.php
Alexandra1



Joined: 10 Aug 2009
Posts: 3

View user's profile Send private message

PostPosted: Tue Aug 11, 2009 11:34 pm     Reply with quote

Evil or Very Mad Anyone has done work the AN851 with CCS.. Crying or Very sad
Alexandra1



Joined: 10 Aug 2009
Posts: 3

View user's profile Send private message

PostPosted: Thu Aug 13, 2009 8:13 am     Reply with quote

Hi,
I had downloaded the AN851, I modified the file AMS for use with the PIC18f452, I had programed the pic with the bootload.hex using another programmer, now I can connect to the PIC18QP.exe, I can program my application using this bootloader, I can even read the memory, apparently everything is OK, but the problem is that when I press the "Normal Execution mode" and accept, apparently the pic must go the Modo RUN, but the application does not work and I can not enter again to boot mode, unless the bootloader program again or modify the last memory address of 0x00 to 0xff, someone could help me?

Here is aplication
Code:
#include <18F452.h>

#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=19200, xmit=PIN_C6, rcv=PIN_C7,RESTART_WDT,ERRORS)

#define LEDV    PIN_D0
#define LEDR    PIN_D1
#define LED_ON  output_high
#define LED_OFF output_low

#define VECTOR_RESET 0x200
#define VECTOR_INTERRUP 0x208
#build(reset=VECTOR_RESET, interrupt=VECTOR_INTERRUP)
#org 0x00, 0x1FF {} // Protejer este espacio
                     Necessary for Bootloader

void main()
{
   LED_OFF (LEDV);
   write_eeprom(255,"ff");
   Delay_ms(500);

while (TRUE){

           LED_ON (LEDV);
         Delay_ms(400);
   
            LED_OFF (LEDV);
            Delay_ms(400);
            
      }   
}
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