Searching \ for '[PIC] Make PIC C use all available memory banks' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/memory.htm?key=memory
Search entire site for: 'Make PIC C use all available memory banks'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Make PIC C use all available memory banks'
2008\07\12@212508 by Tomás Ó hÉilidhe

picon face

I have some C code that nearly uses all of the first memory bank. When I
compile it, I get the following:

Data space:
   BANK0                used    5Ch (    92) of    60h bytes   ( 95.8%)
   BANK1                used     0h (     0) of    50h bytes   (  0.0%)
   BANK2                used     0h (     0) of    60h bytes   (  0.0%)
   BANK3                used     0h (     0) of    60h bytes   (  0.0%)
   COMBANK              used     0h (     0) of    10h bytes   (  0.0%)

If I add a few more global variables, I get the following compiler error:

Error   [491] ; . can't find 0x5B words for psect "rbss_0" in segment
"BANK0"
Error   [491] ; . can't find 0x3 words for psect "rdata_0" in segment
"BANK0"
Error   [593] ; . can't find 0x2 words (0x2 withtotal) for psect
"code_ptr" in segment "BANK0"

Does anyone know how I tell PIC C to use all available memory banks? My
microcontroller is 16F887.

2008\07\12@214555 by John Temples

flavicon
face
part 1 311 bytes content-type:TEXT/PLAIN; charset=ISO-8859-15; format=flowed (decoded quoted-printable)

On Sun, 13 Jul 2008, Tomás Ó hÉilidhe wrote:

> Does anyone know how I tell PIC C to use all available memory banks? My
> microcontroller is 16F887.

The manual and the FAQ discuss this.

http://www.htsoft.com/support/faqs.php#faq42

--
John W. Temples, III

part 2 35 bytes content-type:text/plain; charset="us-ascii"
(decoded 7bit)

2008\07\13@082927 by olin piclist

face picon face
Tomás Ó hÉilidhe wrote:
> Error   [491] ; . can't find 0x5B words for psect "rbss_0" in segment
> "BANK0"
> Error   [491] ; . can't find 0x3 words for psect "rdata_0" in segment
> "BANK0"
> Error   [593] ; . can't find 0x2 words (0x2 withtotal) for psect
> "code_ptr" in segment "BANK0"
>
> Does anyone know how I tell PIC C to use all available memory banks?
> My microcontroller is 16F887.

Split up your variables into multiple sections so the linker can place them
independently.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.

2008\07\14@105307 by Michael Rigby-Jones

picon face


{Quote hidden}

Which version of the compiler are you using, i.e. full commercial version or the free 'lite' version?  The later is limited to the first two banks.

Irrespective, the bank# modifier used to locate objects within a specific bank is clearly described in the compiler manual.  Being such an advocate of correctly written C I'm somewhat surprised you haven't read the manual to check for compiler/target specific features and deviations from ANSI compliance.

Regards

Mike

=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================

More... (looser matching)
- Last day of these posts
- In 2008 , 2009 only
- Today
- New search...