<?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>USBMem example : changing the contents of readme.txt file</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/35656/usbmem-example-changing-the-contents-of-readme-txt-file</link><description> 
Hi, 

 
I am playing around with the USBMem example for the MCB214x
Board. 
Using a hex editor I found the offset (0x800) of the data area on the
RAM and wrote the following code to change the data in the readme.txt
file. 

 
I created a counter variable</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: USBMem example : changing the contents of readme.txt file</title><link>https://community.arm.com/thread/69590?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 23:14:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2a3b13e1-2b99-4bf9-9a54-991cea4d30d7</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Why are you stepping forward the offset?&lt;/p&gt;

&lt;p&gt;
Another thing here is that you don&amp;#39;t have any logic to perform
each state only once and then wait until the switch toggles. So your
loop can do counter++ filling the memory with an increasing numeric
series while overwriting lots of other data.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>