<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>RealView FlashFS Question</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27135/realview-flashfs-question</link><description> 
Hi, 

 
Am I going mad? I have the RealView-MDK ARM dev system with the
RTOS and TCP/IP package. Included in that is a FAT implementation for
Flash devices. 

 
I have an SPI DataFlash (AT45DB321D) which is working fine.
Read/Write/Erase etc all tested</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/126081?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 18:32:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:abb64245-3350-43a3-b705-a70c50750feb</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
Did you implement the &lt;b&gt;fs_spi_ProgramPage()&lt;/b&gt; function and the
&lt;b&gt;FS_SPI_FlashDev.h&lt;/b&gt; header?&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_fs_cfgspiflash.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_fs_cfgspiflash.htm"&gt;www.keil.com/.../rlarm_fs_cfgspiflash.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_fs_spicfgprogf.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_fs_spicfgprogf.htm"&gt;www.keil.com/.../rlarm_fs_spicfgprogf.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_fs_spi_flashprg_c.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_fs_spi_flashprg_c.htm"&gt;www.keil.com/.../rlarm_fs_spi_flashprg_c.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/115674?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 06:09:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3777c829-a8a7-4baf-a99b-8ca8b0caf361</guid><dc:creator>Jack Sprat</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Also in File_Config.h there is a #ifdef block which fills the
FAT functions with null functions (right at the end), if the Memory
Card Device support is not included. I don&amp;#39;t have a memory card, but
I do want to use FAT...What gives?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I&amp;#39;m sorry, but I just don&amp;#39;t know. I&amp;#39;d need the code and
documentation in front of me to make any more guesses. If it&amp;#39;s
annoying you now drop Keil a line - I&amp;#39;ll bet it&amp;#39;s something small
that will only be obvious with hindsight!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/84689?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 05:38:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7f476dfa-c4b8-4e40-a164-7ed5cabf7d7b</guid><dc:creator>Chris W</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Jack,&lt;/p&gt;

&lt;p&gt;
I have implemented the routines, spi_init(), spi_send() etc. I
have also put the routines in FS_SPI_FlashPrg.c into the project.&lt;/p&gt;

&lt;p&gt;
Also enabled the SPI Flash Drive in File_Config.c and set it to
default drive.&lt;/p&gt;

&lt;p&gt;
Weird thing is,&lt;/p&gt;

&lt;p&gt;
If I call fformat(&amp;quot;&amp;quot;) it returns with no errors, I can see it go
into the correct fs_spi_EraseSector function erase the flash and
return. It makes no attempt to put any file system on the flash.&lt;/p&gt;

&lt;p&gt;
fcheck() fails.&lt;/p&gt;

&lt;p&gt;
I tried fat_format( &amp;quot;&amp;quot; ) as well. None of them ever attempt to
write data of any sort?&lt;/p&gt;

&lt;p&gt;
fopen fails as there is no filesystem, I would assume.&lt;/p&gt;

&lt;p&gt;
Also in File_Config.h there is a #ifdef block which fills the FAT
functions with null functions (right at the end), if the Memory Card
Device support is not included. I don&amp;#39;t have a memory card, but I do
want to use FAT...What gives?&lt;/p&gt;

&lt;p&gt;
Thanks&lt;/p&gt;

&lt;p&gt;
Chris&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/78226?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 05:19:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:36d32a17-6596-462f-8595-70b6d42ea747</guid><dc:creator>Jack Sprat</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thinking about it from an inplementor&amp;#39;s point of view I&amp;#39;d be able
to provide code that communicates with a generic SD/MMC device but
not for an unknown chip with unknown interface. I&amp;#39;d therefore guess
that you would need to provide functions to read/write/erase etc
yourself, and you&amp;#39;ve been looking at the part of the code that talks
to known devices. Somewhere it&amp;#39;ll probably make calls to user defined
functions.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/58018?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 05:13:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:18f393b4-cc8c-4302-b26b-0bcd6ac67e49</guid><dc:creator>Jack Sprat</dc:creator><description>&lt;p&gt;&lt;p&gt;
As far as I can tell you are going mad:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/arm/rl-arm/rl-flash_specs.asp"&gt;http://www.keil.com/arm/rl-arm/rl-flash_specs.asp&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/90343?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 04:54:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5ca87b6e-eacc-4ed0-98b5-99ffc7e1b87d</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
It would be far more helpful if they would say that explicitly
rather than just an ambiguous reference to &amp;quot;standard&amp;quot; &lt;i&gt;(sic)&lt;/i&gt;
Flash devices...&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;:-(&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/58016?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 04:52:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c9111099-3332-449f-a0e8-b1206fca5974</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
As far as I know, FlashFS can only work with flash devices that
are memory mapped. Thus, a NAND flash cannot be used via FlashFS, but
a NOR flash that is memory mapped probably can.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RealView FlashFS Question</title><link>https://community.arm.com/thread/65549?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2010 04:47:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:12fca7a6-c5c0-420a-959d-633354b87b0e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Presumably, Keil don&amp;#39;t consider this to be a &amp;quot;standard&amp;quot;
&lt;i&gt;(sic?)&lt;/i&gt; Flash device?&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;RL-Flash ... allows your embedded applications to create,
save, read, and modify files in standard storage devices such as ROM,
RAM, Flash ROM, and SD/MMC Memory Cards.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
And&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;RAM, ROM, Standard (sic?) Flash, and SD/MMC Memory
Cards&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/arm/rl-arm/rl-flash.asp"&gt;http://www.keil.com/arm/rl-arm/rl-flash.asp&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>