<?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>PowerQUICC ProcessorsのトピックShut down power ,when doing erase flash.Reset,read flash make ECC,then turn the IVOR2:Storage interrupt handler</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/Shut-down-power-when-doing-erase-flash-Reset-read-flash-make-ECC/m-p/841178#M2593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Shut down power ,when doing erase flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Then Reset MCU ,read flash make ECC,then turn the IVOR2:Storage interrupt handler .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;But,it's make the MCU cycle in it.&lt;/P&gt;&lt;P&gt;I don't know ,how to insert a function to deal this interrupt!&lt;/P&gt;&lt;P&gt;could you please show me the way to insert a function to deal like this interrupt?&lt;/P&gt;&lt;P&gt;thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;asm void ivor_branch_table_p0(void) {&lt;BR /&gt;nofralloc&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR0trap: b IVOR0trap /* Critical Input interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR1trap: b IVOR1trap /* Machine check / (NMI) interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR2trap: b IVOR2trap /* Data Storage interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR3trap: b IVOR3trap /* Instruction Storage interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR4trap: b INTC_INTCInterruptHandler /* External Interrupt interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR5trap: b IVOR5trap /* Alignment interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR6trap: b IVOR6trap /* Program interrupt handler */&lt;/P&gt;&lt;P&gt;//and so on&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;my work turn on the third , it's IVOR2trap ,and cycling forever .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #d52020; background-color: #ffffff; font-weight: 400; font-size: 13.600001335144043px;"&gt;Appendix:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #d52020; background-color: #ffffff; font-weight: 400; font-size: 13.600001335144043px;"&gt;if you not&amp;nbsp;&lt;EM style="color: #999999; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&lt;A data-keyword="comprehend" style="color: #2b77c5; font-weight: bold; font-size: 15px;"&gt;comprehend yet ,&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;I'll tell you a little bit more about that.&lt;/P&gt;&lt;P&gt;first, we made one section of flash for save the run time of machine . about onece time an huor.&lt;/P&gt;&lt;P&gt;so,we got read old data ,and then show it for our client ,then erase flash ,and finally save new data.&lt;/P&gt;&lt;P&gt;but ,we find it when got test ,if we shut down power &amp;nbsp;,when the machine erase flash , it will make inflash ECC worng,but EDC and EER the bit of MCR can't aim the error before i read the flash.&lt;/P&gt;&lt;P&gt;when i read the flash ,that can show the flag , but it's too late.MCU run into interrupt ,and i don't know how to insert my own function in it and deal it.&lt;/P&gt;&lt;P&gt;we also try to read LVD of power for&amp;nbsp;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&lt;A data-keyword="prohibit" style="color: #2b77c5; font-weight: bold;"&gt;prohibit erase flash ,when the power low.&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;but it is too long ,that erase the whole flash .the power down mabey occur after check LVD flag .&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;Chinese:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;大家好：&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; 是这么个情况，公司打算用FLASH存储一些参数，大约每一小时一次，先读参数，然后上传，再擦扇区，最后再存进去。但是呢，在测试的时候，发现这么个情况，擦扇区的时间太长了，无法保证擦扇区的时候不掉电。这是模拟极端情况。掉电之后，程序没啥别的问题，就是那个扇区任意地址不能读了。如果读的话，直接跳入内核中断，或者是硬中断，这个我也不清楚应该叫啥，就是上边程序那个位置，IVOR2。而且，提前读EDC和ERR位没用，只有读的时候，它检测到ECC故障才会出现，但是这个时候已经没啥用了，我不知道应该怎么往这个中断处添加用户中断处理函数。能否指点一下？&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2018 12:15:26 GMT</pubDate>
    <dc:creator>神战1</dc:creator>
    <dc:date>2018-11-15T12:15:26Z</dc:date>
    <item>
      <title>Shut down power ,when doing erase flash.Reset,read flash make ECC,then turn the IVOR2:Storage interrupt handler</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Shut-down-power-when-doing-erase-flash-Reset-read-flash-make-ECC/m-p/841178#M2593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Shut down power ,when doing erase flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Then Reset MCU ,read flash make ECC,then turn the IVOR2:Storage interrupt handler .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;But,it's make the MCU cycle in it.&lt;/P&gt;&lt;P&gt;I don't know ,how to insert a function to deal this interrupt!&lt;/P&gt;&lt;P&gt;could you please show me the way to insert a function to deal like this interrupt?&lt;/P&gt;&lt;P&gt;thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;asm void ivor_branch_table_p0(void) {&lt;BR /&gt;nofralloc&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR0trap: b IVOR0trap /* Critical Input interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR1trap: b IVOR1trap /* Machine check / (NMI) interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR2trap: b IVOR2trap /* Data Storage interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR3trap: b IVOR3trap /* Instruction Storage interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR4trap: b INTC_INTCInterruptHandler /* External Interrupt interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR5trap: b IVOR5trap /* Alignment interrupt handler */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;.align SIXTEEN_BYTES&lt;BR /&gt;IVOR6trap: b IVOR6trap /* Program interrupt handler */&lt;/P&gt;&lt;P&gt;//and so on&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;my work turn on the third , it's IVOR2trap ,and cycling forever .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #d52020; background-color: #ffffff; font-weight: 400; font-size: 13.600001335144043px;"&gt;Appendix:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #d52020; background-color: #ffffff; font-weight: 400; font-size: 13.600001335144043px;"&gt;if you not&amp;nbsp;&lt;EM style="color: #999999; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&lt;A data-keyword="comprehend" style="color: #2b77c5; font-weight: bold; font-size: 15px;"&gt;comprehend yet ,&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;I'll tell you a little bit more about that.&lt;/P&gt;&lt;P&gt;first, we made one section of flash for save the run time of machine . about onece time an huor.&lt;/P&gt;&lt;P&gt;so,we got read old data ,and then show it for our client ,then erase flash ,and finally save new data.&lt;/P&gt;&lt;P&gt;but ,we find it when got test ,if we shut down power &amp;nbsp;,when the machine erase flash , it will make inflash ECC worng,but EDC and EER the bit of MCR can't aim the error before i read the flash.&lt;/P&gt;&lt;P&gt;when i read the flash ,that can show the flag , but it's too late.MCU run into interrupt ,and i don't know how to insert my own function in it and deal it.&lt;/P&gt;&lt;P&gt;we also try to read LVD of power for&amp;nbsp;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&lt;A data-keyword="prohibit" style="color: #2b77c5; font-weight: bold;"&gt;prohibit erase flash ,when the power low.&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;but it is too long ,that erase the whole flash .the power down mabey occur after check LVD flag .&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;Chinese:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;大家好：&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-size: 13.600001335144043px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; 是这么个情况，公司打算用FLASH存储一些参数，大约每一小时一次，先读参数，然后上传，再擦扇区，最后再存进去。但是呢，在测试的时候，发现这么个情况，擦扇区的时间太长了，无法保证擦扇区的时候不掉电。这是模拟极端情况。掉电之后，程序没啥别的问题，就是那个扇区任意地址不能读了。如果读的话，直接跳入内核中断，或者是硬中断，这个我也不清楚应该叫啥，就是上边程序那个位置，IVOR2。而且，提前读EDC和ERR位没用，只有读的时候，它检测到ECC故障才会出现，但是这个时候已经没啥用了，我不知道应该怎么往这个中断处添加用户中断处理函数。能否指点一下？&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:15:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Shut-down-power-when-doing-erase-flash-Reset-read-flash-make-ECC/m-p/841178#M2593</guid>
      <dc:creator>神战1</dc:creator>
      <dc:date>2018-11-15T12:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shut down power ,when doing erase flash.Reset,read flash make ECC,then turn the IVOR2:Storage interrupt handler</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Shut-down-power-when-doing-erase-flash-Reset-read-flash-make-ECC/m-p/841179#M2594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which processor and which OS is in question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 06:15:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Shut-down-power-when-doing-erase-flash-Reset-read-flash-make-ECC/m-p/841179#M2594</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2018-12-17T06:15:19Z</dc:date>
    </item>
  </channel>
</rss>

