Memory Usage

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
alanwms
Posts: 67
Joined: Tue Sep 16, 2008 2:09 pm
Location: Minnesota USA
Has thanked: 4 times
Been thanked: 17 times
Contact:

Memory Usage

Post by alanwms »

Currently using PIC18F4525 with 48K flash, and 24576 single word instruction locations. 3968 Sram and 1024 Eeprom.

When using Constants, I would like to understand where they reside - Which memory types are used
When using variables, where are they stored?

Secondly - Do you have an example for reading and writing a USB thumb drive without using eblocks?

Thanks.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Memory Usage

Post by kersing »

alanwms wrote:Currently using PIC18F4525 with 48K flash, and 24576 single word instruction locations. 3968 Sram and 1024 Eeprom.

When using Constants, I would like to understand where they reside - Which memory types are used
When using variables, where are they stored?
Variables are stored in RAM. Constants are generally stored in flash with the code, unused constants are not stored anyware. The easiest way to find the information yourself would be to create a simple program, compile and note the sizes reported, add a variable, compile again and compare the new values to the earlier ones.
alanwms wrote: Secondly - Do you have an example for reading and writing a USB thumb drive without using eblocks?
This device can not read an USB drive without additional hardware. None of the 8 bit PIC devices can be an USB host and USB host is required to connect to a USB drive. A possible solution would be to use a Vinculum 1 USB Host Controller.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply