<?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>Kinetis Design Studio中的主题 Re: How to fix these errors in my code ?</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512615#M6743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alice, I am a beginner to embedded systems itself. I am trying to design a bootloader for Kinetis E series Microcontroller (MKE02Z64VLD2) on my own. I am using KDS 2.0 .. I have attached my project. Can you check and fix the errors and statements which wont suit Kinetis E series Controller ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 06:25:08 GMT</pubDate>
    <dc:creator>ganeshramachand</dc:creator>
    <dc:date>2016-04-20T06:25:08Z</dc:date>
    <item>
      <title>How to fix these errors in my code ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512612#M6740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;I am using&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;STRONG&gt;Hardware: MKE02Z64VLD2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;STRONG&gt;IDE: Kinetis Design Studio 2.0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;STRONG&gt;BL_SW: PTB1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;SPAN style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;When I &lt;STRONG&gt;"Build"&lt;/STRONG&gt; the code, I got following errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;H1 style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;STRONG&gt;1. Error in the Flash Declaration&lt;/STRONG&gt;&lt;/H1&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="146173_146173.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121400i045F8D930FF66E4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="146173_146173.jpg" alt="146173_146173.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Flash Error.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32651i91E11EAA218F334F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Flash Error.jpg" alt="Flash Error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; font-size: 14px; text-align: center; background-color: #f3f6f8;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IT SAYS THAT THE IntFlashLdd1_ERASABLE_UNIT_SIZE IS UNDECLARED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; font-size: 14px; text-align: center; background-color: #f3f6f8;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="146177_146177.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121401iF848DB52E92C7D81/image-size/large?v=v2&amp;amp;px=999" role="button" title="146177_146177.jpg" alt="146177_146177.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Flash Config.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32805i42B9FAA5595279CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Flash Config.jpg" alt="Flash Config.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; font-size: 14px; text-align: center; background-color: #f3f6f8;"&gt;&lt;STRONG&gt;&lt;EM style="color: #4f748e; text-decoration: underline; font-size: 14px; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; text-align: center;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN ORDER TO FIX THE ERROR SHOULD I ENABLE OR DISABLE ANY FEATURES INSIDE THE FLASH COMPONENT ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;(if the pic is not clear) As of now the Enabled features are,&lt;/P&gt;&lt;OL style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;LI&gt;IntFlashLdd1:FLASH_LDD&lt;/LI&gt;&lt;LI&gt;EraseSector&lt;/LI&gt;&lt;LI&gt;SetByteFlash&lt;/LI&gt;&lt;LI&gt;GetByteFlash&lt;/LI&gt;&lt;LI&gt;SetWordFlash&lt;/LI&gt;&lt;LI&gt;SetBlockFlash&lt;/LI&gt;&lt;LI&gt;IFsh1_OnWriteEnd&lt;/LI&gt;&lt;/OL&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;1.How to fix this Error pertaining to Flash Declaration ??&lt;/EM&gt;&lt;/H3&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;H1 style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;2. Errors in Clocking and Enabling Pull Up&lt;/H1&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="146178_146178.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121402i8036573CF6FDD9FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="146178_146178.jpg" alt="146178_146178.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CLock and PUll up enable errors.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32893iDE6A6229D1512FF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="CLock and PUll up enable errors.jpg" alt="CLock and PUll up enable errors.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; font-size: 14px; text-align: center; background-color: #f3f6f8;"&gt;&lt;STRONG&gt;&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;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; SAME UNDECLARED ERRORS HERE TOO&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;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; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; font-size: 14px; text-align: center; background-color: #f3f6f8;"&gt;&lt;STRONG style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;SIM_SCGC5.... SYNTAX&amp;nbsp; does not support KINETIS E CONTROLLERS I guess. So I asked in this same forum and got this reply.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; font-size: 14px; text-align: center; background-color: #f3f6f8;"&gt;&lt;STRONG style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="388347" data-objecttype="1" href="https://community.nxp.com/thread/388347#comment-628198"&gt;Clocking Port Pins in KE-02Z Controllers&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;2.a. From the answer, if clocking is done automatically after reset, then can I simply delete that code and start over with &lt;/EM&gt;&lt;/H3&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;/*Configure Pin as Input */ &lt;/EM&gt;&lt;/H3&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;?????&lt;/EM&gt;&lt;/H3&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;2.b. The next problem is with enabling the Pull Up. I guess there should be different syntax for Kinetis E series Controller.&lt;/EM&gt;&lt;/H3&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;These are the Components inside my PDD --&amp;gt; Port, in my Processor Expert.&lt;/EM&gt;&lt;/H3&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="146179_146179.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121403iFB86C9C7B5D47BE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="146179_146179.jpg" alt="146179_146179.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Port Config.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32944i08A24904E3EAA667/image-size/large?v=v2&amp;amp;px=999" role="button" title="Port Config.jpg" alt="Port Config.jpg" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;So to fix those errors in 2 statements pertaining to Pull up, which 2 statements are to be selected ?&lt;/H3&gt;&lt;BLOCKQUOTE class="jive-quote" style="padding: 16px; margin-top: 8px; margin-bottom: 24px; border-left-color: #87a6bc; color: #4f748e; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif; background-color: #e9eff3;"&gt;&lt;P&gt;PORT_PDD_SetPinPullSelect(PORTB_BASE_PTR, 1, PORT_PDD_PULL_UP);&lt;BR /&gt;PORT_PDD_SetPinPullEnable(PORTB_BASE_PTR, 1, PORT_PDD_PULL_ENABLE);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;What are the alternative statements fixing my problem ?&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;I request you to please answer my 1, 2.a, 2.b queries.&lt;/P&gt;&lt;P style="margin-bottom: 24px; color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;I repeat the queries alone..&lt;/P&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;1.How to fix this Error pertaining to Flash Declaration ??&lt;/EM&gt;&lt;/H3&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;EM&gt; &lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;2.a. From the answer, if clocking is done automatically after reset, then can I simply delete that code and start over with&amp;nbsp; &lt;/EM&gt;&lt;EM&gt;/*Configure Pin as Input */&amp;nbsp; &lt;/EM&gt;&lt;EM&gt;?????&lt;/EM&gt;&lt;/H3&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;/H3&gt;&lt;H3 style="color: #3d596d; font-family: Merriweather, Georgia, 'Times New Roman', Times, serif;"&gt;&lt;EM&gt;2.b. The next problem is with enabling the Pull Up. I guess there should be different syntax for Kinetis E series Controller. &lt;/EM&gt;So to fix those errors in 2 statements pertaining to Pull up, which 2 statements are to be selected ?&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 03:50:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512612#M6740</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-04-19T03:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix these errors in my code ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512613#M6741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;please ensure, you have set in your project option to generate code before the build. Use project - properties and see attached picture, the option shall be on by default. You can also generate code from Components view - see command "Generate Code". I tried to reproduce the problem with Flash in KDS 3.2 and I did not reproduce it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32967iE4E61C6664135C9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;About the supported registers, please refer to header file located in "Static_Code\IO_Map\MK02Z2.h" in your project (after code generation). The header file contains declarations how to access registers and thier bitfields.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 06:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512613#M6741</guid>
      <dc:creator>MarekTrmac</dc:creator>
      <dc:date>2016-04-19T06:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix these errors in my code ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512614#M6742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ganesh,&lt;/P&gt;&lt;P&gt;1. You only can use the functions the components for your chip have :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32718i6A6592A0E1F64F7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&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/33000i9203C1CD43637F46/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;P&gt;If you copy the code from other chips , you should be sure for your chip , it also have the define .&lt;/P&gt;&lt;P&gt;2. For the GPIO , yes , you can directly configure the GPIO without enable the port clock .&lt;/P&gt;&lt;P&gt;3.About the pullup, you can configure it at the "Init_PORT"component to configure it :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33053i8FC004CDF4634031/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still have any question , you can send your project to me .&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;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 06:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512614#M6742</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-19T06:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix these errors in my code ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512615#M6743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alice, I am a beginner to embedded systems itself. I am trying to design a bootloader for Kinetis E series Microcontroller (MKE02Z64VLD2) on my own. I am using KDS 2.0 .. I have attached my project. Can you check and fix the errors and statements which wont suit Kinetis E series Controller ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 06:25:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512615#M6743</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-04-20T06:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix these errors in my code ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512616#M6744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ganesh,&lt;/P&gt;&lt;P&gt;About your project , it is hard to fix , i don't know where is the project you porting,&lt;/P&gt;&lt;P&gt;when i open it on my KDS, it show like this, and also i have not install some PE bins .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35093iEF6E43F9C62B8540/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So i recommend you one bootloader project , it development on FRDM-KE02Z40(the chip is MKE02Z64VQH4),&lt;/P&gt;&lt;P&gt;Please see the attachment KE02-SC.zip, this is run on IAR , i also have one KDS version , it is ported from the IAR.&lt;/P&gt;&lt;P&gt;You can test them .&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;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 08:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512616#M6744</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-20T08:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix these errors in my code ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512617#M6745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Alice,&lt;/P&gt;&lt;P&gt;Thanks alot for sharing those projects :smileyhappy:&amp;nbsp; . But still if possible can you just fix or guide me a possible replacement for this code snippet.&lt;/P&gt;&lt;P&gt;#include "BL_SW.h"&lt;/P&gt;&lt;P&gt;#include "PORT_PDD.h"&lt;/P&gt;&lt;P&gt;static bool BL_CheckBootloaderMode(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* let's check if the user presses the BTLD switch. Need to configure the pin first */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* PTB1 as input */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* clock all port pins */&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC5&amp;nbsp;&amp;nbsp; |= SIM_SCGC5_PORTA_MASK |&lt;/P&gt;&lt;P&gt;&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; SIM_SCGC5_PORTB_MASK |&lt;/P&gt;&lt;P&gt;&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; SIM_SCGC5_PORTC_MASK |&lt;/P&gt;&lt;P&gt;&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; SIM_SCGC5_PORTD_MASK |&lt;/P&gt;&lt;P&gt;&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; SIM_SCGC5_PORTE_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Configure pin as input */&lt;/P&gt;&lt;P&gt;#if 0&lt;/P&gt;&lt;P&gt; /* GPIOB_PDDR: PDD&amp;amp;=~0x0100 */&lt;/P&gt;&lt;P&gt; GPIOB_PDDR = (uint32_t)((GPIOB_PDDR &amp;amp; (uint32_t)~0x0100UL) | (uint32_t)0x00UL);&lt;/P&gt;&lt;P&gt; /* Initialization of Port Control register */&lt;/P&gt;&lt;P&gt; /* PORTB_PCR1: ISF=0,MUX=1 */&lt;/P&gt;&lt;P&gt; PORTB_PCR1 = (uint32_t)((PORTB_PCR1 &amp;amp; (uint32_t)~0x01000600UL) | (uint32_t)0x0100UL);&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp; (void)BitIoLdd1_Init(NULL); /* initialize the port pin PTB8 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* enable internal pull-up on PTB1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORT_PDD_SetPinPullSelect(PORTB_BASE_PTR, 1, PORT_PDD_PULL_UP);&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORT_PDD_SetPinPullEnable(PORTB_BASE_PTR, 1, PORT_PDD_PULL_ENABLE);&lt;/P&gt;&lt;P&gt;&amp;nbsp; WAIT1_Waitms(5); /* wait get pull-up a chance to pull-up */&lt;/P&gt;&lt;P&gt;&amp;nbsp; #endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!BL_SW_GetVal()) { /* button pressed (has pull-up!) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WAIT1_Waitms(50); /* wait to debounce */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!BL_SW_GetVal()) { /* still pressed */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return TRUE; /* go into boot loader mode */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* BTLD switch not pressed, and we have a valid user application vector */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return FALSE; /* do not enter boot loader mode */&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What the above code has to do is to Clock all the port pins, Configure Port B pin 1 (PTB1) as input, &lt;/STRONG&gt;&lt;STRONG&gt;initialize the port pin PTB1, enable internal pull-up on PTB1, rest are common Wait statements.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You said, In KE-02 controllers, clocking is done by default after reset. But am clueless as to how to write the code for other operations mentioned above.&amp;nbsp; Can you provide me a code snippet which replaces the above but supports KE-02Z controllers. &lt;BR /&gt;I owe a deep gratitude to you Alice :smileyhappy: . Thanks alot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512617#M6745</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-04-20T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix these errors in my code ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512618#M6746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ganesh,&lt;/P&gt;&lt;P&gt;Your cod is clearly not for the kentis E series . So i recommend you refer to one simle&lt;/P&gt;&lt;P&gt;KE series project code .&lt;/P&gt;&lt;P&gt;For example , for the PTB1 you said , you can create one simple PE project on KDS:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35469i58A90B0F674E8CB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then add "GPIO_LDD" component , configure it , and refer to the "typical usage" to test :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35612i654BF74973D91F1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&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/35563i68D966220C3A305F/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;P&gt;I chacked you use the BITIO component,&amp;nbsp; ok, this is the same ,you can also refer the typical usage :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35678i08CBC2E04BAA291F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give up these code you show , they will confused you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 09:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-these-errors-in-my-code/m-p/512618#M6746</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-22T09:40:36Z</dc:date>
    </item>
  </channel>
</rss>

