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

PICDEM FS USB bootloader CCS

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







PICDEM FS USB bootloader CCS
PostPosted: Wed Jan 25, 2006 4:19 am     Reply with quote

Hi everyone,

I'm trying to use the CCS USB example code on the Microchip PICDEM FS USB board. I need to relocate the USB interrupt service routine because the first parte of the memory is occupied by the bootloader.
Does anyone know how if it is possible?

thanks in advance

Bruno
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Jan 25, 2006 9:14 am     Reply with quote

Lookup #build in the help file.

Also the bootloader example code shows how to use this.
tretec



Joined: 25 Jan 2006
Posts: 2

View user's profile Send private message Visit poster's website

error
PostPosted: Thu Jan 26, 2006 3:21 am     Reply with quote

Yeah, I've tried in this way but there is some code in CCS USB code that points at a determined position, so of I try to reserve some space fore the bootloader I get this message error:

Error[300] C:\Utenti\Corra\Progetti\USB_BOARD\TEST_CCS\boot_ccs.c 74 : More info: Segment at 00000-007FE (0000 used) Priv
Error[300] C:\Utenti\Corra\Progetti\USB_BOARD\TEST_CCS\boot_ccs.c 74 : More info: Segment at 00800-00806 (0004 used) Priv
Error[300] C:\Utenti\Corra\Progetti\USB_BOARD\TEST_CCS\boot_ccs.c 74 : More info: Segment at 00808-07FFE (0000 used)
Error[300] C:\Utenti\Corra\Progetti\USB_BOARD\TEST_CCS\boot_ccs.c 74 : More info: Attempted to create: 00806-0089C for ISR
Error[126] C:\Utenti\Corra\Progetti\USB_BOARD\TEST_CCS\boot_ccs.c 74 : Invalid ORG range
1 Errors, 0 Warnings.
beginner
Guest







PostPosted: Thu Jan 26, 2006 7:58 am     Reply with quote

Hi!

You can try this :

#build(reset=0x800, interrupt=0x808)
#org 0x000, 0x7ff { }

Regards
tretec



Joined: 25 Jan 2006
Posts: 2

View user's profile Send private message Visit poster's website

PostPosted: Fri Jan 27, 2006 1:55 am     Reply with quote

Thanks a lot!!!
It works fine!!
GREAT!! Very Happy

But now I've got a new question:
I had done a way like this. My old code was

#build(reset=0x800)
#build(interrupt=0x808)
#org 0x0000,0x07ff {} //bootloader()

but it didn't work..

Does anyone know why?

Congratulations for the forum, it's very useful and congratulations and tnx to the users!!

Regards Bruno
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