<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: PSoC 4 Flash Write	</title>
	<atom:link href="https://iotexpert.com/psoc-4-flash-write/feed/" rel="self" type="application/rss+xml" />
	<link>https://iotexpert.com/psoc-4-flash-write/</link>
	<description>Engineering for the Internet of Things</description>
	<lastBuildDate>Thu, 20 Jul 2017 11:26:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Alan Hawse		</title>
		<link>https://iotexpert.com/psoc-4-flash-write/#comment-3178</link>

		<dc:creator><![CDATA[Alan Hawse]]></dc:creator>
		<pubDate>Thu, 20 Jul 2017 11:26:30 +0000</pubDate>
		<guid isPermaLink="false">https://iotexpert.com/?p=3679#comment-3178</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://iotexpert.com/psoc-4-flash-write/#comment-3177&quot;&gt;Alan Hawse&lt;/a&gt;.

I tried it and it works fine... here is a little block of code 

When you program this and run it the LED is red... then hit reset and the LED becomes green.

int main(void)
{
    CyGlobalIntEnable; /* Enable global interrupts. */
        
    uint8_t buff[CY_SFLASH_SIZEOF_USERROW];
    
    uint8_t *mySFlash;
    mySFlash = (uint8_t*)CY_SFLASH_USERBASE;    
  
    if(mySFlash[0] != 0x12)
    {
        red_Write(0);
        buff[0] = 0x12;
        CySysSFlashWriteUserRow(0, buff);

    }
    else
    {
        green_Write(0);
    }
    
    while(1);
}]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://iotexpert.com/psoc-4-flash-write/#comment-3177">Alan Hawse</a>.</p>
<p>I tried it and it works fine&#8230; here is a little block of code </p>
<p>When you program this and run it the LED is red&#8230; then hit reset and the LED becomes green.</p>
<p>int main(void)<br />
{<br />
    CyGlobalIntEnable; /* Enable global interrupts. */</p>
<p>    uint8_t buff[CY_SFLASH_SIZEOF_USERROW];</p>
<p>    uint8_t *mySFlash;<br />
    mySFlash = (uint8_t*)CY_SFLASH_USERBASE;    </p>
<p>    if(mySFlash[0] != 0x12)<br />
    {<br />
        red_Write(0);<br />
        buff[0] = 0x12;<br />
        CySysSFlashWriteUserRow(0, buff);</p>
<p>    }<br />
    else<br />
    {<br />
        green_Write(0);<br />
    }</p>
<p>    while(1);<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alan Hawse		</title>
		<link>https://iotexpert.com/psoc-4-flash-write/#comment-3177</link>

		<dc:creator><![CDATA[Alan Hawse]]></dc:creator>
		<pubDate>Thu, 20 Jul 2017 11:14:52 +0000</pubDate>
		<guid isPermaLink="false">https://iotexpert.com/?p=3679#comment-3177</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://iotexpert.com/psoc-4-flash-write/#comment-3174&quot;&gt;Rob Berry&lt;/a&gt;.

You should be able to use uint32 CySysSFlashWriteUserRow(uint32 rowNum, uint8 *rowData)
There is a macro called CY_SFLASH_NUMBER_USERROWS which tells you the number of user rows.
There is another macro called CY_SFLASH_USERBASE which tells you where the 0th row of user sflash resides.
I haven&#039;t tried it... but it should work]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://iotexpert.com/psoc-4-flash-write/#comment-3174">Rob Berry</a>.</p>
<p>You should be able to use uint32 CySysSFlashWriteUserRow(uint32 rowNum, uint8 *rowData)<br />
There is a macro called CY_SFLASH_NUMBER_USERROWS which tells you the number of user rows.<br />
There is another macro called CY_SFLASH_USERBASE which tells you where the 0th row of user sflash resides.<br />
I haven&#8217;t tried it&#8230; but it should work</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rob Berry		</title>
		<link>https://iotexpert.com/psoc-4-flash-write/#comment-3174</link>

		<dc:creator><![CDATA[Rob Berry]]></dc:creator>
		<pubDate>Wed, 19 Jul 2017 14:52:30 +0000</pubDate>
		<guid isPermaLink="false">https://iotexpert.com/?p=3679#comment-3174</guid>

					<description><![CDATA[Alan,
How do we access the user sflash portion to save data like calibration data that wont get overwritten with a firmware update?
I have tried to use the code / api from the 100 projects for 100 days, but it fails.
I am using the CyBle-224110-00
Thanks,
Rob]]></description>
			<content:encoded><![CDATA[<p>Alan,<br />
How do we access the user sflash portion to save data like calibration data that wont get overwritten with a firmware update?<br />
I have tried to use the code / api from the 100 projects for 100 days, but it fails.<br />
I am using the CyBle-224110-00<br />
Thanks,<br />
Rob</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alan Hawse		</title>
		<link>https://iotexpert.com/psoc-4-flash-write/#comment-3009</link>

		<dc:creator><![CDATA[Alan Hawse]]></dc:creator>
		<pubDate>Mon, 12 Jun 2017 09:05:45 +0000</pubDate>
		<guid isPermaLink="false">https://iotexpert.com/?p=3679#comment-3009</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://iotexpert.com/psoc-4-flash-write/#comment-2956&quot;&gt;Holger&lt;/a&gt;.

In general the SFLASH is reserved for use by Cypress to setup the part.  There are however somewhere between 0 and 4 rows which can be used by customers.  When you build each of the part there will be a #define created by PSoC Creator that will tell you how many rows you have to use.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://iotexpert.com/psoc-4-flash-write/#comment-2956">Holger</a>.</p>
<p>In general the SFLASH is reserved for use by Cypress to setup the part.  There are however somewhere between 0 and 4 rows which can be used by customers.  When you build each of the part there will be a #define created by PSoC Creator that will tell you how many rows you have to use.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Holger		</title>
		<link>https://iotexpert.com/psoc-4-flash-write/#comment-2956</link>

		<dc:creator><![CDATA[Holger]]></dc:creator>
		<pubDate>Fri, 09 Jun 2017 12:59:49 +0000</pubDate>
		<guid isPermaLink="false">https://iotexpert.com/?p=3679#comment-2956</guid>

					<description><![CDATA[Hi Alan,
again, great article. Thanks!
One question: Where to find more information about the SFLASH? Some devices seems to have SFLASH, but no comment is given in the related data sheet (e.g. CY8C4247LQI-BL483) How to identify devices having SFLASH?

Regards,
Holger]]></description>
			<content:encoded><![CDATA[<p>Hi Alan,<br />
again, great article. Thanks!<br />
One question: Where to find more information about the SFLASH? Some devices seems to have SFLASH, but no comment is given in the related data sheet (e.g. CY8C4247LQI-BL483) How to identify devices having SFLASH?</p>
<p>Regards,<br />
Holger</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
