<?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>MDK(Keil) SPI Flash Programming Algorithm</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/36225/mdk-keil-spi-flash-programming-algorithm</link><description> 
STM32F207 + S25FL128P(SPI Flash) 
I found a similar demo in folder
C:\Keil_v5\ARM\Flash\STM32F10x_M25P64 
with this kind of Flash Programming Algorithm, can i flash other
files like photo/fpga data( not the code data) into the SPI flash ?
how ? thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: MDK(Keil) SPI Flash Programming Algorithm</title><link>https://community.arm.com/thread/121191?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2017 02:12:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c0d88259-379e-4764-ab29-dd1db505454b</guid><dc:creator>chen rong</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok, i&amp;#39;m sorry to bother u again...&lt;br /&gt;
Actually, i failed the first step, i can&amp;#39;t flash the common program
data into the SPI-Flash with the newly created algorithm.&lt;br /&gt;
I wonder if i miss the Pre-download scripts, i didn&amp;#39;t add one, it
always prompt:&lt;br /&gt;
Erase Failed!&lt;br /&gt;
Error: Flash Download failed - &amp;quot;Cortex-M3&amp;quot;&lt;/p&gt;

&lt;p&gt;
As to STM32F207, when i use the SPI-Flash Programming Algorithm,
how to write the Init File? what commands should be done before the
program is flashed? Can u provide something? Thanks so much!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MDK(Keil) SPI Flash Programming Algorithm</title><link>https://community.arm.com/thread/118757?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 19:21:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:415a989e-613c-4ce1-9386-0049b236c424</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok, but that&amp;#39;s not an &amp;quot;Object File&amp;quot; in the sense the linker can
use.&lt;/p&gt;

&lt;p&gt;
Perhaps you have familiarity with File IO operations, where you
can fopen()/fread() the file and convert the binary data into an
array in a .C file which you can compile and include that way?&lt;/p&gt;

&lt;p&gt;
ie&lt;/p&gt;

&lt;p&gt;
uint8_t pga_data[] = {&lt;br /&gt;
0x00,0x01,0x02,0x03, ... };&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MDK(Keil) SPI Flash Programming Algorithm</title><link>https://community.arm.com/thread/94228?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 18:17:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:997b769f-8c91-4a7f-b372-1e89f14ea9b8</guid><dc:creator>chen rong</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks for the reply, can you describe in detail?&lt;br /&gt;
For example, i want to flash a fpga file named ABC.PGA into the
SPI-Flash at a fixed offset 0x100000, and the program data still in
the internal-flash , can that work?&lt;/p&gt;

&lt;p&gt;
i modify the scatter file like:&lt;/p&gt;

&lt;pre&gt;
LR_IROM1 0x08000000 0x00040000  {    ; &lt;b&gt;Internal-Flash&lt;/b&gt;
  ER_IROM1 0x08000000 0x00040000  {  ;
   *.o (RESET, +First)
   *(InRoot&amp;#36;&amp;#36;Sections)
   .ANY (+RO)
  }
  RW_IRAM1 0x20000000 0x0001FE00  {  ; RW data
   .ANY (+RW +ZI)
  }
}
LR_ROM1 0xC0100000 0x00100000  {    ; &lt;b&gt;SPI-Flash&lt;/b&gt;
  ER_ROM1 0xC0100000 0x00100000  {  ;
   ABC.PGA
  }
}
&lt;/pre&gt;

&lt;p&gt;
i tried and it didn&amp;#39;t work. Looking forward to your reply&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MDK(Keil) SPI Flash Programming Algorithm</title><link>https://community.arm.com/thread/86234?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 07:05:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:57dcb838-611b-4a68-be0d-6bd6cd1c7dc5</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
If you add data to the .AXF it will get written. So you can make
object files you link into the image.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>