<?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>topic 56F807, PFIU_CNTL &amp; PFIU2_CNTL, Processor Expert in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F807-PFIU-CNTL-PFIU2-CNTL-Processor-Expert/m-p/788993#M1289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to erase\program flash on the 56F807. I have found that the application flash is comprised of two 32K flash modules (with some of the address space removed for boot flash &amp;amp; misc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CodeWarrior 8.3 with Processor Expert, i generated the flash programming code. In that code there are 2 #defines that provide the register set base addresses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PFIU_CNTL_ASM X:4928&amp;nbsp;&amp;nbsp; //For top 32k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PFIU2_CNTL_ASM X:5152&amp;nbsp;&amp;nbsp;&amp;nbsp; //For bottom 24k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;also there are:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PROG_FLASH_END&amp;nbsp;&amp;nbsp; 32767 //For top 32k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PROG_FLASH2_END&amp;nbsp;&amp;nbsp; 61439&amp;nbsp;&amp;nbsp; &amp;nbsp; //For bottom 24k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See "DSP56F800 Family User’s Manual, Rev. 8", page 3-12, for details on these base values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Processor Expert project is attached to this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IFsh_app_2.c file in the attached example uses the PFIU2 registers EXCEPT when the actual word programming is done. For that final step, it calls:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;IFsh_app_1_WIR_routine(address, Data); /* Process routine in RAM.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This routine uses PFIU_CNTL_ASM only, which is the base address for PFIU_CTRL, not the PFIU2_CTRL !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Why is this?&lt;/STRONG&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked through the documentation and have not found the description that states to use PFIU_CTRL when programming the PFIU2 flash module. It's probably there somewhere, but I haven't found this explanation in the documentation and I want to avoid issues as I am near the end of my deadline when I found this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have run into a lot of bugs &amp;amp; issues using these &lt;SPAN style="text-decoration: underline;"&gt;over-priced&lt;/SPAN&gt;, old, unreliable, un-maintained, CodeWarrior tools. I have to be proactive and understand this to prevent a potential issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;All I really need is to see where, in the documentation, it describes to use PFIU_CNTL for status when programming the PFIU2 flash module. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If it is not in the documentation, then can someone provide a rationale or experience for why this could\should work?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Sep 2018 12:40:00 GMT</pubDate>
    <dc:creator>j___</dc:creator>
    <dc:date>2018-09-23T12:40:00Z</dc:date>
    <item>
      <title>56F807, PFIU_CNTL &amp; PFIU2_CNTL, Processor Expert</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F807-PFIU-CNTL-PFIU2-CNTL-Processor-Expert/m-p/788993#M1289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to erase\program flash on the 56F807. I have found that the application flash is comprised of two 32K flash modules (with some of the address space removed for boot flash &amp;amp; misc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CodeWarrior 8.3 with Processor Expert, i generated the flash programming code. In that code there are 2 #defines that provide the register set base addresses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PFIU_CNTL_ASM X:4928&amp;nbsp;&amp;nbsp; //For top 32k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PFIU2_CNTL_ASM X:5152&amp;nbsp;&amp;nbsp;&amp;nbsp; //For bottom 24k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;also there are:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PROG_FLASH_END&amp;nbsp;&amp;nbsp; 32767 //For top 32k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;#define PROG_FLASH2_END&amp;nbsp;&amp;nbsp; 61439&amp;nbsp;&amp;nbsp; &amp;nbsp; //For bottom 24k of app flash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See "DSP56F800 Family User’s Manual, Rev. 8", page 3-12, for details on these base values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Processor Expert project is attached to this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IFsh_app_2.c file in the attached example uses the PFIU2 registers EXCEPT when the actual word programming is done. For that final step, it calls:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: courier new, courier, monospace;"&gt;&lt;STRONG&gt;IFsh_app_1_WIR_routine(address, Data); /* Process routine in RAM.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This routine uses PFIU_CNTL_ASM only, which is the base address for PFIU_CTRL, not the PFIU2_CTRL !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Why is this?&lt;/STRONG&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked through the documentation and have not found the description that states to use PFIU_CTRL when programming the PFIU2 flash module. It's probably there somewhere, but I haven't found this explanation in the documentation and I want to avoid issues as I am near the end of my deadline when I found this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have run into a lot of bugs &amp;amp; issues using these &lt;SPAN style="text-decoration: underline;"&gt;over-priced&lt;/SPAN&gt;, old, unreliable, un-maintained, CodeWarrior tools. I have to be proactive and understand this to prevent a potential issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;All I really need is to see where, in the documentation, it describes to use PFIU_CNTL for status when programming the PFIU2 flash module. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If it is not in the documentation, then can someone provide a rationale or experience for why this could\should work?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Sep 2018 12:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F807-PFIU-CNTL-PFIU2-CNTL-Processor-Expert/m-p/788993#M1289</guid>
      <dc:creator>j___</dc:creator>
      <dc:date>2018-09-23T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: 56F807, PFIU_CNTL &amp; PFIU2_CNTL, Processor Expert</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/56F807-PFIU-CNTL-PFIU2-CNTL-Processor-Expert/m-p/788994#M1290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jim,&lt;/P&gt;&lt;P&gt;I think it is a bug of the PE, it should be check the BUSY bit in PFIU2_CNTL register instead of PFIU2_CNTL if you program the second program flash from P:0x8000.&lt;/P&gt;&lt;P&gt;As you know that DSP56F807 is very old, the PE was developed later, the PE code is not test fully.&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>Tue, 25 Sep 2018 07:43:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/56F807-PFIU-CNTL-PFIU2-CNTL-Processor-Expert/m-p/788994#M1290</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2018-09-25T07:43:54Z</dc:date>
    </item>
  </channel>
</rss>

