Greetings,
I am using RCM2200 board; DCRabbit ver 9.62
In my project, I am required to store an Alarm Log and some user settings (3 FS2 files total)
I want to store as many Alarm Logs as possible.
Question 1: How do I calculate how much SRam space avaliable for me to use?
I configure FS2 filesystem for that purpose as below:
Question 2: Is it the right/best way?
// memconfig.lib: "#define FS2_RAM_RESERVE 12 //12x4096=49152 bytes
// STDBIOS.C: "#define DATAORG 0x9000
#define FX_MAX_FILES 3
#define FS2_USE_PROGRAM_FLASH 0
#use “FS2.LIB”
void setupFS()
{ int b, i;
Hinfo h; // Empty Log Record, value will be overwrite
FSLXnum Ram;
File file;
Ram=fs_get_ram_lx();
b=fs_init(0,0);
b=fs_format(0,0,0);
b=fcreate(&file, 1);
b=fopen_wr(&file, 1);
for(i=0;i