<?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 Automatic startup_mke02z4 file modification in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Automatic-startup-mke02z4-file-modification/m-p/932709#M4265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each time I save the file startup_mke02z4.c from the MCUxpresso IDE this part of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; __attribute__((used, section(".FlashConfig"))) const struct&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word2;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word4;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; } Flash_Config = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFEFFFF };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is surreptitiously changed to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;const struct&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; __attribute__((used, section(".FlashConfig")))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word2;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word4;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; } Flash_Config =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFEFFFF };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't care too much about the formatting, but the second form results in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "warning: 'used' attribute does not apply to types [-Wattributes]"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "warning: 'section' attribute does not apply to types [-Wattributes]"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "arm-none-eabi/bin/ld.exe: Linker Flash Config Support Enabled, but no .FlashConfig section provided within application"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "error: ld returned 1 exit status"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that for a change I didn't ask for nor I want.&lt;/P&gt;&lt;P&gt;To make any change I must always modify, and save, that file with an external editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does MCUxpresso IDE behave so?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Oct 2019 09:16:09 GMT</pubDate>
    <dc:creator>mauriziospagni</dc:creator>
    <dc:date>2019-10-17T09:16:09Z</dc:date>
    <item>
      <title>Automatic startup_mke02z4 file modification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Automatic-startup-mke02z4-file-modification/m-p/932709#M4265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each time I save the file startup_mke02z4.c from the MCUxpresso IDE this part of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; __attribute__((used, section(".FlashConfig"))) const struct&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word2;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word4;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; } Flash_Config = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFEFFFF };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is surreptitiously changed to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;const struct&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; __attribute__((used, section(".FlashConfig")))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word2;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word3;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word4;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; } Flash_Config =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFEFFFF };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't care too much about the formatting, but the second form results in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "warning: 'used' attribute does not apply to types [-Wattributes]"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "warning: 'section' attribute does not apply to types [-Wattributes]"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "arm-none-eabi/bin/ld.exe: Linker Flash Config Support Enabled, but no .FlashConfig section provided within application"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- "error: ld returned 1 exit status"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that for a change I didn't ask for nor I want.&lt;/P&gt;&lt;P&gt;To make any change I must always modify, and save, that file with an external editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does MCUxpresso IDE behave so?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Automatic-startup-mke02z4-file-modification/m-p/932709#M4265</guid>
      <dc:creator>mauriziospagni</dc:creator>
      <dc:date>2019-10-17T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic startup_mke02z4 file modification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Automatic-startup-mke02z4-file-modification/m-p/932710#M4266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see this behaviour - no reformatting of that block in code I'm looking at now.&lt;/P&gt;&lt;P&gt;You should check the "Formatter" and "Save Actions" settings in your workspace Preferences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;P&gt;&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/93099i93E83DB892ABDFD1/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Automatic-startup-mke02z4-file-modification/m-p/932710#M4266</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2019-10-17T15:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic startup_mke02z4 file modification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Automatic-startup-mke02z4-file-modification/m-p/932711#M4267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course "formatter" was the first place I looked into, but the formatting must be requested.&lt;/P&gt;&lt;P&gt;And in "Save actions", "Format source code" is unchecked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I overlooked was "Align const", that was checked.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 07:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Automatic-startup-mke02z4-file-modification/m-p/932711#M4267</guid>
      <dc:creator>mauriziospagni</dc:creator>
      <dc:date>2019-10-18T07:00:35Z</dc:date>
    </item>
  </channel>
</rss>

