View previous topic :: View next topic |
Author |
Message |
dam
Joined: 10 May 2005 Posts: 4
|
EX_LOAD.C with 16F876A |
Posted: Mon Jun 27, 2005 11:56 am |
|
|
Hello,
I just tried to compile the EX_LOAD.C example file for the 16F876A, and I get the message "Out of ROM, A segment, or the program is too large". I guess that the driver LOADER.C is not suited for the 16FxxxA devices, but is there a way to adapt it ?
Thanks for your answers. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jun 27, 2005 12:23 pm |
|
|
The loader code is larger for the "A" chips.
If you look in Loader.c, they hardcode the loader size in the following
statement.
Quote: | #if defined(__PCM__)
#define LOADER_SIZE 0x15F
#elif defined(__PCH__)
#define LOADER_SIZE 0x3FF
#endif
#endif |
Based on the error message, if you increase value for PCM to
0x17F, that should be enough. I tried this and it now compiles OK.
However, this may not be enough to make it work and CCS may not
have tested the loader with the "A" chips. You must debug it.
I don't want to debug Loader.c for you. |
|
|
|