<?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 Re: K40 newbee questions in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204789#M3115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it, but it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 03:59:30 GMT</pubDate>
    <dc:creator>GerasinIvan</dc:creator>
    <dc:date>2013-01-11T03:59:30Z</dc:date>
    <item>
      <title>K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204783#M3109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, i have some questions, could you help me? //And sorry for my english&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I'm trying to understand tutorials for k40 and in all tutorials i saw '&lt;SPAN style="font-size: 10pt;"&gt;k40_TOWER_BOARD_SUPPORT.h'/'k40_TOWER_BOARD_SUPPORT.c'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where can i find that sources? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2) What mean '&lt;/SPAN&gt;PORT_PCR_MUX(1)'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx for helping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 06:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204783#M3109</guid>
      <dc:creator>GerasinIvan</dc:creator>
      <dc:date>2012-12-12T06:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204784#M3110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerasin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answering your second question PORT_PCR_MUX(1) is a mask which writes to the MUX field on PCR register. Look for Pin Control Register n (PORTx_PCRn) in the Reference Manual. In MUX field you can write from 0 to 7 in order to select Alternative number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In section K40 Signal Multiplexing and Pin Assignments you can see the function for each Alternative (ALTx), in this case writing 1 (0b001) to MUX field ALT1 will be selected for that pin; for most of the pins ALT0 configures them as GPIO (GeneralPurposeInput/Output).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answering your first question, if you can´t find those files you can create them and add them to your project:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Check this link &lt;A href="http://thefreescalecup.wikidot.com/en:k40-blink-led" title="http://thefreescalecup.wikidot.com/en:k40-blink-led"&gt;K40: Blinking LED - The Freescale Cup Wiki&lt;/A&gt;&amp;nbsp; where you can find the code for k40_TOWER_BOARD_SUPPORT.h and K40_TOWER_BOARD_SUPPORT.c&lt;/LI&gt;&lt;LI&gt;In your project right click sources--&amp;gt;New--&amp;gt;new folder, then give a name to the folder. (e.g K40_SUPPORT).&lt;/LI&gt;&lt;LI&gt;Right click on the new folder(K40_SUPPORT)--&amp;gt;new--&amp;gt;source file. Name it as K40_TOWER_BOARD_SUPPORT.c&lt;/LI&gt;&lt;LI&gt;To the same of the last step, but now choosing header file and name it as k40_TOWER_BOARD_SUPPORT.h&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adding .c and .h files.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119011iF4DD02C5FE59D024/image-size/large?v=v2&amp;amp;px=999" role="button" title="adding .c and .h files.JPG" alt="adding .c and .h files.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;In .h file paste the code form the link and do the same with .c file. Copy the code &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;respectively.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Now you just need to write the #include files in each one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Modify function main.&lt;/LI&gt;&lt;LI&gt;Add paths for the new folder in project properties. right click--&amp;gt;properties&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adding paths 1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119012i1604CBD28C565F58/image-size/large?v=v2&amp;amp;px=999" role="button" title="adding paths 1.JPG" alt="adding paths 1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;In the tree on your left&amp;nbsp; C/C++ Build--&amp;gt;Settings then add the paths on ARM Compiler--&amp;gt;Input. Add the path for Source folder "${ProjDirPath}/Sources"&lt;span class="lia-inline-image-display-wrapper" image-alt="adding paths 2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119013iAB366A9E43D9E11A/image-size/large?v=v2&amp;amp;px=999" role="button" title="adding paths 2.JPG" alt="adding paths 2.JPG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Apply and Now compile.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204784#M3110</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2012-12-12T19:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204785#M3111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it really helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i have another problem with line scan camera tutorial, and then i starts programm, it doesn't work, and return: "No source available for "0xFFFFFFFE (0xFFFFFFFE)() " "&lt;/P&gt;&lt;P&gt;In assambley code last strokes:&lt;/P&gt;&lt;P&gt;fffffff6:&amp;nbsp;&amp;nbsp; .short 0xbabababa&lt;/P&gt;&lt;P&gt;fffffffa:&amp;nbsp;&amp;nbsp; .short 0xbabababa&lt;/P&gt;&lt;P&gt;fffffffe:&amp;nbsp;&amp;nbsp; Unable to retrieve disassembly data from backend.&lt;/P&gt;&lt;P&gt;ffffffff:&amp;nbsp;&amp;nbsp; Unable to retrieve disassembly data from backend.&lt;/P&gt;&lt;P&gt;I think it's not correct, but i havo no idea how to fix it.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 10:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204785#M3111</guid>
      <dc:creator>GerasinIvan</dc:creator>
      <dc:date>2012-12-14T10:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204786#M3112</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;I have never experienced that issue, but try to look for this problem in some threads of the community. In this one you can find some tips to solve it:&amp;nbsp; &lt;A href="https://community.nxp.com/thread/113296"&gt;unable to debug in my MCU (kenetis k53 )&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 17:18:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204786#M3112</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2012-12-14T17:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204787#M3113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have another stupid question: how to burn/"save" program to k40, so after reset or turn off-on k40, program will start again? Autonomous work , i mean. And what typical solution about autonomous power supply? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2012 07:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204787#M3113</guid>
      <dc:creator>GerasinIvan</dc:creator>
      <dc:date>2012-12-30T07:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204788#M3114</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;You need compile you code in Flash mode. In Flash memory your application will be there after power-up again. Check the image below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="flashram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119014iE96B8B9C198CF7B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="flashram.png" alt="flashram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click on the name of the project and then this will show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check datasheet of your product and see the list of power options, you can use the USB input to power on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 17:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204788#M3114</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2013-01-09T17:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204789#M3115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it, but it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 03:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204789#M3115</guid>
      <dc:creator>GerasinIvan</dc:creator>
      <dc:date>2013-01-11T03:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204790#M3116</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;I assume that you are using for your project the Codewarrior´s console, you can see it in debug mode , it is in the lower part of the window; it shows what printf returns. So when you disconnect the board and try autonomous mode it is looking for the Codewarrior´s console and never find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using printf in your project and really don´t need it for autonomous behavior just erase them, maybe that is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 16:27:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204790#M3116</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2013-01-11T16:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204791#M3117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have followed the steps above . But it is not working in power on reset ie once when we unplug and replug the power to the kwikstik k40 Board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply me soon if anyone can pls....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 11:48:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204791#M3117</guid>
      <dc:creator>yasararafath</dc:creator>
      <dc:date>2013-04-02T11:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204792#M3118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you unplug the debug BDM? I have seen it where it hols the board reset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 14:42:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204792#M3118</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-04-02T14:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: K40 newbee questions</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204793#M3119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friend, I cant understand BDM. Is it Background Debug Mode? Then how to unplug that BDM. Pls reply me soon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 18:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K40-newbee-questions/m-p/204793#M3119</guid>
      <dc:creator>yasararafath</dc:creator>
      <dc:date>2013-04-02T18:08:37Z</dc:date>
    </item>
  </channel>
</rss>

