View previous topic :: View next topic |
Author |
Message |
Mancio Guest
|
Compiler problem |
Posted: Fri Aug 18, 2006 5:57 am |
|
|
Hi,
I've got some trouble with the compiler.
When I compile the program, everything seems to be correct but the program occupancy still ramain 1%, even if there is a lot of code.
Examining the .stm file, it seems that the assembler code is not generated.
What can I do?
Thank you |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Fri Aug 18, 2006 6:25 am |
|
|
Do you have more than one source file?
Do you have any #if's? |
|
|
Mancio Guest
|
|
Posted: Fri Aug 18, 2006 7:00 am |
|
|
Yes I've got some files.
I've just find an error in the definition of .h file.
I've wrote #device *=16 instead of *=8 and now something work with the RAM occupancy.
But with ROM nothing to do. Still at 1%.
I'm working with PIC18F4620 and it's my first time with pic18 family.
Previously I've worked without any problem with PIC16F876.
I compile but ROM wont grow up!! |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Fri Aug 18, 2006 10:58 am |
|
|
#device *=16 and *=8 aren't necessary for the PIC18's. My guess is that you are not including the other source files in you main C file. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Fri Aug 18, 2006 12:59 pm |
|
|
It would be easy to help if you post a short sample of your code. It doesn�t
matter the code you can add, the compiler would not generate any code related
to the "code increase" if inside main() the functions are not invoked.
Anyway the 18F4620 is a 64K device and to see 1% step growing you would
add 8x in the code size compared with the 16F876.
Humberto |
|
|
Mancio Guest
|
|
Posted: Sat Aug 19, 2006 2:03 pm |
|
|
Thank you everybody.
With yours helpful directives now I've seen that everything works!!
Once again thank you.
For the ROM problem... I havent put any instruction in the main().
Just adding some functions and the ROM occupancy grow up |
|
|
|