View previous topic :: View next topic |
Author |
Message |
koenbielen
Joined: 23 Apr 2009 Posts: 42
|
Invalid ORG range |
Posted: Wed May 19, 2010 3:57 am |
|
|
Hi,
never had a problem compiling this for my PIC18F4525
#define MAX_FLASH 0xC000 //for PICs with 48KB of mem
#define LOADER_SIZE 0xFF //tinybld size + a bit more (200 bytes is enough)
#org MAX_FLASH-LOADER_SIZE , MAX_FLASH-1 {}
Today I installed the new MPlab plugin and gave me the error
Executing: "C:\Program files\Picc\CCSC.exe" +FH "Jaga_DBE_PRO.c" #__DEBUG=1 +ICD +LN +T -A +M -Z +Y=9 +EA #__18F4525=TRUE
--- Info 300 "Jaga_DBE_PRO.c" Line 133(42,43): More info: Segment at 00000-0BCBE (0000 used)
--- Info 300 "Jaga_DBE_PRO.c" Line 133(42,43): More info: Attempted to create: 0BF00-0BFFE for #org
*** Error 126 "Jaga_DBE_PRO.c" Line 133(42,43): Invalid ORG range
1 Errors, 0 Warnings.
Help is appreciated
Thanks
Koen |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19589
|
|
Posted: Wed May 19, 2010 7:34 am |
|
|
I'd be very surprised if the compiler will allow you to put a bootloader in the top 256 bytes of memory, with DEBUG selected.
If you look at the resources 'used' by ICD (example for ICD2), it will say something like:
'Program memory used 0xBD80-0xBDFF'.
Best Wishes |
|
|
|