PDA

View Full Version : What is this error : Address Limit of FFFh Exceeded



lerameur
- 24th November 2010, 18:12
C:\PBP>pbpw -p16f88 charge.bas
PICBASIC PRO(TM) Compiler 2.60, (c) 1998, 2009 microEngineering Labs, Inc.
All Rights Reserved.
PM Assembler 4.08, Copyright (c) 1995, 2006 microEngineering Labs, Inc.
Warn C:\PBP\CHARGE.ASM 468 : [102] Code Crosses Boundary @ 800h
Error C:\PBP\CHARGE.ASM 959 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 960 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 960 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 960 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 961 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 961 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 961 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 962 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 962 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 962 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 963 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 963 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 963 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 964 : [218] Address Limit of FFFh Exceeded
Error C:\PBP\CHARGE.ASM 964 : [218] Address Limit of FFFh Exceeded
Fatal C:\PBP\CHARGE.ASM 964 : [300] Too Many Errors


K

lerameur
- 24th November 2010, 18:29
Ok I found it, exceeded the memory of the chip :(
I used the 16f877a, but now I am getting errors that it do not recognize, the INTRC_OSC, CCPMX_ON, MCLR_ON mode......

K

Archangel
- 24th November 2010, 20:14
Hello again,
If you open up the file P16F877A.inc found in the microchip\mpasm.suite you will find (all / only) the configs that work for that chip, as well as every possible register. Every PIC has such a file there.
The error is just saying that that config is unsupported.

lerameur
- 25th November 2010, 01:57
I am thinking of using the PIC16F2455 because it has a lot more memory, and I am running out of it on the pic16F88. I never used the PIB18 series, is it the to program or is it much harder ? I am going a project for a christmas gift, I dont have time to learn a new technology.

Archangel
- 25th November 2010, 03:46
Keep track of your gosub / return and gotos so you do not get stack overflow or underflows a return should only be approached from a gosub and gosub should always be terminated with return. You should not make word vars unless you actually need them, so as to save memory space. When you post a project, you will make it far easier to debug if you include ALL the code including the setup code, configs and variables. If you do not need IF/THEN/ELSE/ENDIF use a simple IF/THEN
one liner to save memory.
18F chips MAY require a programmer upgrade, I found my JDM did not work and had to buy PICKit2.

lerameur
- 25th November 2010, 04:37
Hi well i will post the full 500 line program tomorrow.
As for the programmer I use the Olimex programmer with usb connection. works great with the 16F series says it works with the 18F too but never tried it. just wandering if the programming if the ports is much di8fferent..
ken

mackrackit
- 25th November 2010, 09:21
Working with the 18Fs is not really any different than the 16Fs.

The 18Fs have many more options so sometimes the configs are a little more difficult, but the default setup in the PBP *.inc file is good to get started.

The benefits make running the 18Fs worth it in many cases.

lerameur
- 25th November 2010, 12:39
I think I will go aheah and get started with the 18F series. I will see what happens then programming it.

K

lerameur
- 25th November 2010, 12:45
I was looking through the *.inc files..

I dont see it for the 18F2445 also i looked atthe chip I know most 16F88 and could not find it either ! I am not familiar with the INC files. What are they used for ?.

K

mackrackit
- 25th November 2010, 14:34
I dont see it for the 18F2445
I do not find it on Microchips web site either. Do you mean another chip? 2455?
The 2455 is in PBPs current version, I do not remember when it was added.

The 16F88 is there. If Micro Code has it then it is in the PBP directory.


I am not familiar with the INC files. What are they used for ?.
That is where the configuration bits are set.

One other thing about the 18Fs. You hace to use MPASM for the assembler. PM will not work.

rsocor01
- 26th November 2010, 02:14
Dave,

Talking about upgrading, do you know if MeLabs is making any plans to include the 24 and 32 PIC series for PBP?

Robert

mackrackit
- 26th November 2010, 03:01
Dave,

Talking about upgrading, do you know if MeLabs is making any plans to include the 24 and 32 PIC series for PBP?

Robert
I have not heard a thing one way or the other.