<?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: programming flash using .elf file</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375515#M2109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;As per the post &lt;A _jive_internal="true" data-containerid="57346" data-containertype="2020" data-objectid="461367" data-objecttype="2" href="https://community.nxp.com/message/461367#461367" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #6a737b; background-color: #f6f6f6;"&gt;Re: Partitioning of Kinetis K50 with PE Multilink Universal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;it is said its not possible to do partitioning using flash programmer we have to do it in application code.&lt;/P&gt;&lt;P&gt;I have already done it in my application code,but once it runs the partitioning code due to OS interrupts controller is reset because of this reason I am not able to do partitioning through application code, then I used disable interrupt routine as below and my code worked properly through flash programmer also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__disable_interrupt();&lt;/P&gt;&lt;P&gt;error = Cpu_SetFlexNVMPartition();&lt;/P&gt;&lt;P&gt;Cpu_SetFlexRAMFunction(FlexRAM_AS_EEPROM);&lt;/P&gt;&lt;P&gt;__enable_interrupt();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure that should I use enable/disable interrupt since it disables the OS interrupt.&lt;/P&gt;&lt;P&gt;Please let me know is it ok to use enable/disable interrupt routines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 04:10:59 GMT</pubDate>
    <dc:creator>ava</dc:creator>
    <dc:date>2015-03-23T04:10:59Z</dc:date>
    <item>
      <title>programming flash using .elf file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375512#M2106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MK60FX512 controller, CW10.6 &amp;amp; MQX4.1.&lt;/P&gt;&lt;P&gt;Also I am using FlexEEPROM (did the partition).&lt;/P&gt;&lt;P&gt;If I programmed the flash with .elf file through flash programmer, flash is programmed successfully but application code doesn't execute.&lt;/P&gt;&lt;P&gt;and if I programmed flash with another .elf file (the code without EEPROM),application code runs successfully.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to resolve this problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 04:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375512#M2106</guid>
      <dc:creator>ava</dc:creator>
      <dc:date>2015-03-11T04:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: programming flash using .elf file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375513#M2107</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;&lt;/P&gt;&lt;P&gt;As per my previous (above) post I have checked that through debug in MQX4.1 FlexNVM is partitioned for EEPROM backup &amp;amp; D-flash but the same .s19 file if I programmed through flash programmer, through flash programmer FlexNVM is not partitioned for EEPROM backup &amp;amp; D-flash. Controller is getting reset everytime.&lt;/P&gt;&lt;P&gt;I have tested with processor expert and through debug &amp;amp; flash programmer able to partition device for flexEEPROM backup &amp;amp; D-flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 07:04:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375513#M2107</guid>
      <dc:creator>ava</dc:creator>
      <dc:date>2015-03-14T07:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: programming flash using .elf file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375514#M2108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi T tech,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look to the following post, it believe it is related to your question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/461367"&gt;Re: Partitioning of Kinetis K50 with PE Multilink Universal&lt;/A&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;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 00:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375514#M2108</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2015-03-20T00:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: programming flash using .elf file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375515#M2109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;As per the post &lt;A _jive_internal="true" data-containerid="57346" data-containertype="2020" data-objectid="461367" data-objecttype="2" href="https://community.nxp.com/message/461367#461367" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #6a737b; background-color: #f6f6f6;"&gt;Re: Partitioning of Kinetis K50 with PE Multilink Universal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;it is said its not possible to do partitioning using flash programmer we have to do it in application code.&lt;/P&gt;&lt;P&gt;I have already done it in my application code,but once it runs the partitioning code due to OS interrupts controller is reset because of this reason I am not able to do partitioning through application code, then I used disable interrupt routine as below and my code worked properly through flash programmer also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__disable_interrupt();&lt;/P&gt;&lt;P&gt;error = Cpu_SetFlexNVMPartition();&lt;/P&gt;&lt;P&gt;Cpu_SetFlexRAMFunction(FlexRAM_AS_EEPROM);&lt;/P&gt;&lt;P&gt;__enable_interrupt();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure that should I use enable/disable interrupt since it disables the OS interrupt.&lt;/P&gt;&lt;P&gt;Please let me know is it ok to use enable/disable interrupt routines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 04:10:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375515#M2109</guid>
      <dc:creator>ava</dc:creator>
      <dc:date>2015-03-23T04:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: programming flash using .elf file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375516#M2110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know should I use interrupt disable / enable routines or there is any other way to partition FlexNVM through flash programmer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 05:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375516#M2110</guid>
      <dc:creator>ava</dc:creator>
      <dc:date>2015-04-10T05:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: programming flash using .elf file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375517#M2111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello T tech,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you should use those functions to mask any possible core accesses to vector table or interrupt service function in flash, we recommend to keep to a minimum the code between these calls. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way for partitioning the Flash is to use the CodeWarrior debugger which includes a command to partition the flash.&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;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375517#M2111</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2015-04-10T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: programming flash using .elf file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375518#M2112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 04:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/programming-flash-using-elf-file/m-p/375518#M2112</guid>
      <dc:creator>ava</dc:creator>
      <dc:date>2015-04-13T04:10:32Z</dc:date>
    </item>
  </channel>
</rss>

