|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Confusing Compiler Error
I'm sure this is simply due to inexperience, but I'm stuck!
Quote:
Thank you! |
|
#2
|
||||
|
||||
|
Re: Confusing Compiler Error
As far as I can tell from the C18 manual available from microchip, you are correct, you have exceeded the allowable size for the udata section which stores "udata – contains statically allocated uninitialized user variables." (Too many static (includes global) uninitialized (not given a value on declaration) variables in your user_routines.c/h files?). Read section 2.9.1 for more information about sections.
|
|
#3
|
|||||
|
|||||
|
Re: Confusing Compiler Error
I'll backup Max on this one.
Although, it isn't due to your using up all of the available data space. The common reason for this (note the “.udata”) is that a data block is limited to 256 bytes. The total for global variables declared within a single MPLAB project file (e.g., user_routines.c/.h) cannot exceed 256 bytes. Use of “static” not withstanding. It's a byproduct of how the linker allocates the available 256 byte blocks of data space. P.S. Care to test what the declaration limit is per routine within a project file? It's not 256. ![]() Last edited by Mark McLeod : 28-10-2004 at 18:12. Reason: Added a quiz |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP and Wiki Error | Venkatesh | Website Design/Showcase | 2 | 24-07-2004 15:51 |
| Error in Visual C++ | Ashley Weed | Programming | 15 | 06-05-2004 14:53 |
| Strange 16 bit MS-DOS subsystem error | Crazy_Ed | Programming | 6 | 18-03-2004 14:31 |
| strange error | Anthony Kesich | Programming | 2 | 25-02-2004 18:55 |
| Basic Run Error | BBFIRSTCHICK | Programming | 10 | 02-04-2003 22:43 |