PDA

View Full Version : 12F683 RAM Warning



Johan
- 17th August 2007, 05:19
I got error message like this:
Warning[219] c:\pbp\pbppic14.lib 892 : Invalid RAM location specifed

The program works, but should I disregard the warning?
Where can I find explanation about all warning/error messages?

Thanks,



Compiler PBP 2.47/MPASM 5.1

mackrackit
- 17th August 2007, 08:35
The program works, but should I disregard the warning?

And not strive for perfect programing?:D

In the directory where PBP is installed there is a file "PM.txt" . Has all of the warnings and more.

You may want to fix the one you have.
From the PM.txt file:


219 Collision in HEX File @ Address

This error indicates that more than one word has been generated for the
specified ROM address.

Johan
- 17th August 2007, 14:57
Thanks for reply Mack,

In a perfect world where we live now, perfect programming is a must :)

I made typing mistake in my program, I wrote high portb.5 instead of porta.5 ( there are no portb on 12f683 )
The program works now .

Bruce
- 17th August 2007, 15:37
If you're using MPASM error 219 is shown in the MPASM assembler help file;

219 Invalid RAM location specified.
If the __maxram and __badram directives are used, this warning flags use of any RAM locations declared as invalid by these directives. Note that the provided header files include __maxram and __badram for each processor.

You might have a bad P12F683.INC file. Updating to the latest/greatest version of MPLAB
with the newest .INC files might cure it.

If you switch to the PM asembler, and the warning goes away, it seems the problem would
be the Mchip header file, but it's hard to say without seeing the offending code.

Johan
- 18th August 2007, 10:51
Thanks Bruce,