View previous topic :: View next topic |
Author |
Message |
tretec Guest
|
PICDEM FS USB bootloader CCS |
Posted: Wed Jan 25, 2006 4:19 am |
|
|
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
|
|
Posted: Wed Jan 25, 2006 9:14 am |
|
|
Lookup #build in the help file.
Also the bootloader example code shows how to use this. |
|
|
tretec
Joined: 25 Jan 2006 Posts: 2
|
error |
Posted: Thu Jan 26, 2006 3:21 am |
|
|
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
|
|
Posted: Thu Jan 26, 2006 7:58 am |
|
|
Hi!
You can try this :
#build(reset=0x800, interrupt=0x808)
#org 0x000, 0x7ff { }
Regards |
|
|
tretec
Joined: 25 Jan 2006 Posts: 2
|
|
Posted: Fri Jan 27, 2006 1:55 am |
|
|
Thanks a lot!!!
It works fine!!
GREAT!!
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 |
|
|
|