<?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>Processor Expert SoftwareのトピックRe: 56f827xx flash driver problem</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712778#M4092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the info from the Service Request.&lt;/P&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;Dear Peter Becher,&amp;nbsp;&lt;BR /&gt;Thank you for the bug report, I will report it to PE team and suggest they pop up a warning or error message when the 'Wait in RAM' function is written beyond the end of RAM.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;X.j.&lt;BR /&gt;Technical Support&lt;/P&gt;&lt;P&gt;NXP Semiconductor &lt;/P&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;Hi X&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do not suggest that they have a pop up warning!&lt;/P&gt;&lt;P&gt;That is not good enough.&lt;/P&gt;&lt;P&gt;Have them fix the bug so I can use the driver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is enough information in my posts to let them know what the problem is and fix it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know when I can expect a bug fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;P&gt;____________________________________________________________&lt;/P&gt;&lt;P&gt;Hi, Pete,&lt;BR /&gt;I am sorry, what I can do is to report bug to PE team, it is upon PE team to fix the bug, launch new release. Because of lack of resource, we can not guarantee when we can&amp;nbsp; fix it. &lt;BR /&gt;I hope you can understand.&lt;BR /&gt;BR&lt;BR /&gt;XiangJun Rong&lt;SPAN style="color: #1f497d; white-space: pre; font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2017 17:12:44 GMT</pubDate>
    <dc:creator>dynapb</dc:creator>
    <dc:date>2017-11-17T17:12:44Z</dc:date>
    <item>
      <title>56f827xx flash driver problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712775#M4089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PE Group,&lt;/P&gt;&lt;P&gt;I moved this from the DSC Community to the PE Community to see if someone here my have a better idea on how to fix this PE Driver problem or work around it better.&lt;/P&gt;&lt;P&gt;I made a Support Request and they put in a Ticket to PE Dev Team to maybe fix it some day.&amp;nbsp; Not sure how long that might take.&amp;nbsp; I added the info from the support request to the end of the exchange.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using a 56F82746 and set up the flash driver IntFLASH from the Components Library and having problems with the required running mode.&lt;/P&gt;&lt;P&gt;It needs to be set for the 'Wait In RAM' mode since the device only has one Flash area.&lt;/P&gt;&lt;P&gt;The problem is that when it calculates the location for the Wait In RAM code it uses the pRAM word&amp;nbsp;start address but then the offset is calculated as a Byte offset which puts it in the wrong location, beyond memory and processor restarts at beginning.&lt;/P&gt;&lt;P&gt;I can see what is happening but cannot see how it is happening or why.&lt;/P&gt;&lt;P&gt;Let me know if there is a setting I am missing or if this is a bug in the driver.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;P&gt;Here is some information and I also attached a test project that it relates to. &lt;STRONG&gt;Just Added Attachment, 9/26/2017.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="194871_194871.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123176i0382DD13E3A08768/image-size/large?v=v2&amp;amp;px=999" role="button" title="194871_194871.png" alt="194871_194871.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlashBug-DriverSettings2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31531i9170CCA772A6DAF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlashBug-DriverSettings2.png" alt="FlashBug-DriverSettings2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fig 1. Driver is set to Wait In RAM. &amp;nbsp;Also shows simple program being run to test it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="194872_194872.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123177iFD8B96EFAF463738/image-size/large?v=v2&amp;amp;px=999" role="button" title="194872_194872.png" alt="194872_194872.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlashBug-HeapSizeSmall2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31577i665CFA71A5426565/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlashBug-HeapSizeSmall2.png" alt="FlashBug-HeapSizeSmall2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fig 2. Heap size is set to a small value to show problem but code still works. Stack ends at 0xF838 in pRAM.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="194891_194891.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123178iBFAE21FB596E03E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="194891_194891.png" alt="194891_194891.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlashBug-HeapSmall_SafeBeyondStack2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31592i1A10F964FFEEA418/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlashBug-HeapSmall_SafeBeyondStack2.png" alt="FlashBug-HeapSmall_SafeBeyondStack2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fig 3. Heap size is small but "Safe Routine" is beyond the Stack, 0xF8D2 vs 0xF838. &amp;nbsp;Code still runs since it is in RAM yet.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="194892_194892.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123179i631A1FC52BFE0CBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="194892_194892.png" alt="194892_194892.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlashBug-HeapSizeBig2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31644i761CC52179EF40A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlashBug-HeapSizeBig2.png" alt="FlashBug-HeapSizeBig2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fig 4. Heap size set to a large value to show problem and code fails.&lt;SPAN&gt;&amp;nbsp;Stack ends at 0xFC38 in pRAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="194893_194893.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123180i878E8330D36DCE31/image-size/large?v=v2&amp;amp;px=999" role="button" title="194893_194893.png" alt="194893_194893.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlashBug-HeapBig_SafeBeyondMemory2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31708i6B120791F345BB46/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlashBug-HeapBig_SafeBeyondMemory2.png" alt="FlashBug-HeapBig_SafeBeyondMemory2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fig 5. Heap size is larger and "Safe Routine" is beyond the Memory, 0x100D2 vs 0xFFFF&amp;nbsp;for end of memory vs 0xFC38 for end of&amp;nbsp;stack. &amp;nbsp;Code fails and restarts at beginning.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337760"&gt;Test82746FlashSave.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 22:14:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712775#M4089</guid>
      <dc:creator>dynapb</dc:creator>
      <dc:date>2017-09-25T22:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: 56f827xx flash driver problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712776#M4090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems taht the address is okay. i have tried to use the TWR-8200 board, the variable is written to the correct location.&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/42818i6DC466A0EA1B4753/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;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 07:40:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712776#M4090</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-09-27T07:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: 56f827xx flash driver problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712777#M4091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Xiangjun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- Thanks for doing some testing but as I outlined in Fig 2 and Fig 3 it does work to program the flash location but the location of the Safe 'Wait in RAM' function is still beyond the Stack area where it is supposed to be copied to.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- Fig 4 and Fig 5 show that when the Heap is increased in size (to simulate my larger .bss area) then it does not work since the &lt;SPAN&gt;Safe 'Wait in RAM' function is&lt;SPAN&gt;&amp;nbsp;trying to be copied beyond the RAM area.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;- Please try changing the Heap size to 600 as in Fig 4 and running it. &amp;nbsp;I am sure it will not work. &amp;nbsp;If it does you may have to bump up the Heap a little.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; - When if fails you can see what is happening by placing a breakpoint at the locaiton shown in the following code snippet and then check the location of either&amp;nbsp;SafeRoutineInDataPtr for an xRAM location beyond 0x0FFF or&amp;nbsp;SafeRoutineInCodePtr for a pRAM location beyond 0xFFFF.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;File is: IntFlashLdd1.c&lt;/P&gt;&lt;P&gt;Function is:&lt;/P&gt;&lt;P&gt;static void SafeRoutineCaller(void)&lt;BR /&gt;{&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;EnterCritical();&lt;BR /&gt; SafeRoutineInCodePtr(); &amp;nbsp;/* Run the Safe routine */ &amp;nbsp; &lt;STRONG&gt;PLACE BREAKPOINT HERE&lt;/STRONG&gt;&lt;BR /&gt;ExitCritical();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 21:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712777#M4091</guid>
      <dc:creator>dynapb</dc:creator>
      <dc:date>2017-09-27T21:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: 56f827xx flash driver problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712778#M4092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the info from the Service Request.&lt;/P&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;Dear Peter Becher,&amp;nbsp;&lt;BR /&gt;Thank you for the bug report, I will report it to PE team and suggest they pop up a warning or error message when the 'Wait in RAM' function is written beyond the end of RAM.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;X.j.&lt;BR /&gt;Technical Support&lt;/P&gt;&lt;P&gt;NXP Semiconductor &lt;/P&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;Hi X&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do not suggest that they have a pop up warning!&lt;/P&gt;&lt;P&gt;That is not good enough.&lt;/P&gt;&lt;P&gt;Have them fix the bug so I can use the driver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is enough information in my posts to let them know what the problem is and fix it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know when I can expect a bug fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;P&gt;____________________________________________________________&lt;/P&gt;&lt;P&gt;Hi, Pete,&lt;BR /&gt;I am sorry, what I can do is to report bug to PE team, it is upon PE team to fix the bug, launch new release. Because of lack of resource, we can not guarantee when we can&amp;nbsp; fix it. &lt;BR /&gt;I hope you can understand.&lt;BR /&gt;BR&lt;BR /&gt;XiangJun Rong&lt;SPAN style="color: #1f497d; white-space: pre; font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 17:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712778#M4092</guid>
      <dc:creator>dynapb</dc:creator>
      <dc:date>2017-11-17T17:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: 56f827xx flash driver problem</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712779#M4093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Just wanted to update anyone that is interested that I made a workaround for this issue a while back that I have not had problems with.&lt;/P&gt;&lt;P&gt;Change the code as&amp;nbsp;shown below in IntFlashLdd1.c (or whatever your driver IntFlashLdd... is named).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;static&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;STRONG&gt;SafeRoutineCaller&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;orig ver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 11px;"&gt;&amp;nbsp; SafeRoutineInDataPtr = (LDD_FLASH_TSafeRoutinePtr)&amp;amp;SaveRoutineStackSpace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;new ver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 11px;"&gt;&amp;nbsp; //NOTE: Fix for Bad Flash Driver - Divide by 2 to get word address so does not get put past stack/RAM, pjb014.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 11px;"&gt;&amp;nbsp; SafeRoutineInDataPtr = (LDD_FLASH_TSafeRoutinePtr)((UInt16)((LDD_FLASH_TSafeRoutinePtr)(&amp;amp;SaveRoutineStackSpace)) / 2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After making the change just do a "Build Project" not a "Build All" or the code change will be overwritten..&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;"Don't Write" does not seem to work right, it still rewrites the driver file.&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;- - After building it, set the Flash Bean to not generate code to keep the changes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Anyone know how to keep the bean from rewriting a driver&amp;nbsp;file?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CodeGenDisable.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29574iDE7CAADA1611263E/image-size/large?v=v2&amp;amp;px=999" role="button" title="CodeGenDisable.png" alt="CodeGenDisable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:11:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/56f827xx-flash-driver-problem/m-p/712779#M4093</guid>
      <dc:creator>dynapb</dc:creator>
      <dc:date>2018-03-02T17:11:35Z</dc:date>
    </item>
  </channel>
</rss>

