Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pic Program memory constraint

Status
Not open for further replies.

jbisht

Member level 1
Joined
Sep 26, 2009
Messages
32
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
delhi
Activity points
1,519
I am using PIc 16f882 and Hi-Tech C, but whenever i declares bigger array like
const char buffer[20][20];

it shows error: could not find space (26 bytes) for variable

is there any possible way to overcome this memory limitation without using external eeprom/memory?

How can i Know that all of its bank are being used.
 

optimize your code or write in Assembly. If not you have to redesign using a better mcu :)
 

Thanks,
I have migrated to pic24FJ64GA004. But unable to find its header file,
can anyone provide me a link to download the same.
 

The compiler will try to allocate 400 addresses in ROM for the array, that is much bigger than each page of memory so the compiler has tried to split it into smaller sections but still not managed. You are trying to use 20% of the entire PIC memory for the one array. If you really need to do that, try re-coding so the array is smaller or store the constants in a different way.

Brian.
 

the header files is there, inside some support folder. If i am not mistaken, has been a while not using it :)
 

ya, it contains upto Pic16F series, but not PIC24JA64 series
 

you need C30 compiler. **broken link removed** ~~
 

Hi

It is possible to use larger variables in the 16F and 18F PIC series too, with a trick in the linker script. A detailed explanation on how this can be done is described for example **broken link removed**.
 
  • Like
Reactions: jbisht

    jbisht

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top