<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>CodeWarrior Development Tools中的主题 Re: about LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size)</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471086#M3702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Method 1 is not the correct way. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;The Device data structure is necessary when calling the flash operation functions in FLASH_LDD component, it saves the data for operation status and routine buffers. This structure is initialized in FLASH1_Init(). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 07:02:03 GMT</pubDate>
    <dc:creator>TICS_Fiona</dc:creator>
    <dc:date>2016-02-19T07:02:03Z</dc:date>
    <item>
      <title>about LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471083#M3699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used PE generated the LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you kindly explain&amp;nbsp; the difference between the below two methods:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;(void)FLASH1_Init(NULL);&lt;/P&gt;&lt;P&gt;FLASH1_Erase(NULL,ERASE_START_ADD,ERASE_SIZE);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;void *pFlash_Device;&lt;/P&gt;&lt;P&gt;pFlash_Device = FLASH1_Init(NULL);&lt;/P&gt;&lt;P&gt;FLASH1_Erase(pFlash_Device,ERASE_START_ADD,ERASE_SIZE);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 01:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471083#M3699</guid>
      <dc:creator>jason_zhang</dc:creator>
      <dc:date>2016-02-19T01:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: about LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471084#M3700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason,&lt;/P&gt;&lt;P&gt;For the 2 ,&amp;nbsp; in the function of FLASH1_Init(), first&amp;nbsp; initialize something of the data structure ,&lt;/P&gt;&lt;P&gt;then return it . And in the function of FLASH1_Erase(), we use this structure .&lt;/P&gt;&lt;P&gt;While for the 1, after initialize , in the FLASH1_Erase(), it does not use that result of initialize, only use one NULL structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also in the note of the function&amp;nbsp; , it has tell us how to use parameter of the function FLASH1_Erase() :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53461iBE7845D7F3A9B559/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please use the second method you mentioned. Also you can refer to the "Typical Usage" of "help on component "&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53519iEEB75B6FA726ADF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53556iE408CDA87FC30F33/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 03:16:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471084#M3700</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-02-19T03:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: about LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471085#M3701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Hi Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I'll confirm the detail in&amp;nbsp; the "Typical Usage" of "help on component ".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;By the way, dose the "method 1" works?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It seems works not correctly in my demo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 03:55:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471085#M3701</guid>
      <dc:creator>jason_zhang</dc:creator>
      <dc:date>2016-02-19T03:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: about LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471086#M3702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Method 1 is not the correct way. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;The Device data structure is necessary when calling the flash operation functions in FLASH_LDD component, it saves the data for operation status and routine buffers. This structure is initialized in FLASH1_Init(). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 07:02:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/about-LDD-TError-FLASH1-Erase-LDD-TDeviceData-DeviceDataPtr-LDD/m-p/471086#M3702</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-02-19T07:02:03Z</dc:date>
    </item>
  </channel>
</rss>

