Re: RCM5600w & RCM5700 large data storing
You want to get a copy of Dynamic C 10.56 and take a look at sflash.lib. On lines 136 to 152, there's a series of defines that can be adapted to work on the RCM5600W so you can write directly to serial flash pages using the API you probably used on the RCM3700.
In your program, before you #use "sflash.lib", you'll want to duplicate the serial config shown for Serial Port B with chip select on PD6, and define the SF_PROTECT_LOW and SF_PROTECT_HIGH macros appropriately (protect the firmware with _LOW and protect the UserBlock with _HIGH). I'd copy the existing _HIGH definition, and set _LOW to 300K (to give yourself a little room).
-Tom
--- In rabbit-semi <at> yahoogroups.com, rout192 <at> ... wrote:
>
> Hello,
> I'm trying to make a porting of my own file system from the rcm3700 board to rcm5600w board.
> The rcm5600w has 1Mb serial flash and my firmware is about 200Kb long.
> I planned the minimum size of my own file system should not be less 250 Kbytes.
> I'm looking for a way to read from and write into the serial flash.
> I think the functions "writeUserBlock" & "readUserBlock" are not suitable for my intent for the following reasons:
> 1) the area for the userblocks is limited to few Kbytes.
> 2) the power-fail safe feature of the userblock functions is redundant for my own file system becouse it already has a similar feature.
> I think sbfWriteFlash function should be right for my purpose becouse it has not limits in the total amount of byte that an user can write in flash (at my own risk, I know it),but it don't work.
> So I ask if you could show me an example code for sbfWriteFlash and sbfRead, or if you have a better way to suggest me.
> thank you in advance for your consideration
>
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
RSS Feed