Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Discussion Groups

Discussion Groups | Rabbit-Semi | FS2 errno = 28 no space left on device??

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

FS2 errno = 28 no space left on device?? - dbasberg - Aug 1 14:05:24 2008


If anyone can steer me to any info on my problem, I would greatly
appreciate it. I am doing a system with UCOSII with 5 tasks. From the
lowest priority task I attempt to save a large struct (0x2700 - 9984
bytes) to an fs2 file. I expect to save one for each day of the week.
So, 7 files of 9,984 bytes each. Before the fwrite, I do an fclose,
fdelete, and fcreate to make sure the file number is free. Then
fwrite returns errno = 28 . In memconfig.lib, I have
XMEM_RESERVE_SIZE 0x15000L. In the program I set FS_MAX_FILES 16,
FS_USE_PROGRAM_FLASH 85, MY_LS_SHIFT 8 (256 byte sectors), & LX_2_USE
fs_get_flash_lx(). The power on (in main) does err = fs_init(0,0);
This is a shotgun of info, I can answer any question as requested. I
hope to maintain values in the fs2 files through a reset, if
possible. There is a fixed ID in each file that can be tested for
sanity to keep files through a powerup. But that is for later
development after I get past errno = 28.

The struct address in data section is 0x9015. Can I save a struct??
rc = fwrite(&fh[day], vp_Log, sizeof(Log)); yields rc=0, errno =28

Any help would be greatly appreciated. I am quite willing to work for
my answer, if you can point me to material to read.

Thanks, Doug

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )