Goto your project directory and look for a *.LST file.
Near the bottom of the file it will tell how much program memory is used/free.
Dave
Always wear safety glasses while programming.
I believe you are correct in your assumption.
Here is the LST file info:
All other memory blocks unused.
Program Memory Bytes Used: 16376
Program Memory Bytes Free: 8
Errors : 2
Warnings : 0 reported, 4 suppressed
Messages : 0 reported, 17 suppressed
The 18F2423 has 16KB Flash Program Memory.
Is there a switch in the compiler or assembler for optimization and are there any reasons why I might not want to do that?
I could switch to the 18F2523 at this point if I hacve to.
No, the optimization is done by the person behind the keyboard.Is there a switch in the compiler or assembler for optimization
Again, if you post your code someone may be able to help.
Dave
Always wear safety glasses while programming.
I had a similar error recently. It was caused by a DEBUG statement that was missing a comma.
I had intended the line to be
DEBUG 13, 10, "text here", 13, 10 but it got entered as
DEBUG 13, 10, "text here", 1310
The compiler was expecting a byte value but it got a word instead.
You may have a similar problem.
Re: Argument out of range - how to find what is causing it?
There is a simpler way.
All the necessary information is in the .LST file. You need to search for "Argument out of range" and then scroll up many pages until you find the PBP statement that caused the problem.
02247 ; C:\PWEE2011\10OCT2011\SEQUENCER VER BM 26 OCTOBER 2011_BU\SEQUENCER VER BM 26 OCTOBER 2011_111102_1512
00.PBP 00733 debug 13, 10, "598", 1310 The text in red is the offending PBP statement at line 733 in the MCSPX file.
HTH
BrianT
Bookmarks