Steve/Ben,
In Flowcode, I am using a PIC16F688. (256 bytes RAM, 256 bytes EEPROM).
I have a few variables and one array variable. When compiling the hex program the total RAM used is only about 50% of the 256 bytes.
I just cannot get it to access the full RAM.
I have had to reduce the array size right down.
Am I doing something wrong? Is there something I have to change/enter to access the full RAM?
Best regards,
Michael
PIC16F688- Unable to access full 256 bytes RAM
- Steve
- Matrix Staff
- Posts: 3426
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
BoostC has a limitation on the size of arrays (this is true for all licences).
This is from the BoostC manual:
This is from the BoostC manual:
RAM is organised into "banks" of 128 bytes, which explains this limitation. You might find that the maximum size of an array is 96 bytes or less due to the "special function registers" that reside in each bank of memory.Arrays can have any number of dimensions. The only constraint is that an array must fit into a single RAM bank.