<?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 MKL46Z arm-none-eabi-gcc in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL46Z-arm-none-eabi-gcc/m-p/619543#M7893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to compile a very simple program to light up a LED from the FRDM MKL46 board.&lt;/P&gt;&lt;P&gt;I used the the datasheet as reference from where I took the registers address.&lt;/P&gt;&lt;P&gt;Let's suppose it works, I have a file called main.c I want to compile it, link it, and upload it to my MKL46 board.&lt;/P&gt;&lt;P&gt;The steps are presented below. I have to mention that I use Linux&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc mcpu=cortex-m0plus -c main.c -specs=nosys.specs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;---------&amp;gt; result main.o&lt;/P&gt;&lt;P&gt;arm-none-eabi-ld -o main.elf main.o &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----------&amp;gt; result main.elf&lt;/P&gt;&lt;P&gt;arm-none-eabi-objcopy -O binary main.elf main.bin &amp;nbsp; &amp;nbsp; &amp;nbsp;-----------&amp;gt; result main.bin&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I copy the final file (main.bin) to my board,and, of course nothing happens.&lt;/P&gt;&lt;P&gt;What's wrong ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Bebe-Cosmin Briceag,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2016 06:27:25 GMT</pubDate>
    <dc:creator>briceagbebe-cos</dc:creator>
    <dc:date>2016-11-01T06:27:25Z</dc:date>
    <item>
      <title>MKL46Z arm-none-eabi-gcc</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL46Z-arm-none-eabi-gcc/m-p/619543#M7893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to compile a very simple program to light up a LED from the FRDM MKL46 board.&lt;/P&gt;&lt;P&gt;I used the the datasheet as reference from where I took the registers address.&lt;/P&gt;&lt;P&gt;Let's suppose it works, I have a file called main.c I want to compile it, link it, and upload it to my MKL46 board.&lt;/P&gt;&lt;P&gt;The steps are presented below. I have to mention that I use Linux&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc mcpu=cortex-m0plus -c main.c -specs=nosys.specs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;---------&amp;gt; result main.o&lt;/P&gt;&lt;P&gt;arm-none-eabi-ld -o main.elf main.o &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----------&amp;gt; result main.elf&lt;/P&gt;&lt;P&gt;arm-none-eabi-objcopy -O binary main.elf main.bin &amp;nbsp; &amp;nbsp; &amp;nbsp;-----------&amp;gt; result main.bin&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I copy the final file (main.bin) to my board,and, of course nothing happens.&lt;/P&gt;&lt;P&gt;What's wrong ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Bebe-Cosmin Briceag,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 06:27:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL46Z-arm-none-eabi-gcc/m-p/619543#M7893</guid>
      <dc:creator>briceagbebe-cos</dc:creator>
      <dc:date>2016-11-01T06:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: MKL46Z arm-none-eabi-gcc</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL46Z-arm-none-eabi-gcc/m-p/619544#M7894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What IDE do you work with?&lt;/P&gt;&lt;P&gt;if with NXP KDS (&lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/kinetis-design-studio-integrated-development-environment-ide:KDS_IDE?tid=vanKDS" title="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/kinetis-design-studio-integrated-development-environment-ide:KDS_IDE?tid=vanKDS"&gt;Kinetis Design Studio Integrated Development Environment (IDE)|NXP&lt;/A&gt;&amp;nbsp;), we can edit, build,link, download code to flash automatically. users needn't focus on the mid steps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KDS is free and easy to work with, if you don't use it. Can you try it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; padding: 0px;"&gt;Have a great day,&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; padding: 0px;"&gt;Jennie Zhang&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; padding: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; padding: 0px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; padding: 0px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; padding: 0px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 03:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKL46Z-arm-none-eabi-gcc/m-p/619544#M7894</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-11-02T03:55:31Z</dc:date>
    </item>
  </channel>
</rss>

