<?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: TWR-K70F120M programming trouble in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714796#M43897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for all the help. I was able to finally get it to work with your help. I do have another question for you though. Are there any pins on the TWR-K70F120M board that can be used as ADC Inputs from an external source? I am running the ADC Demo that uses the potentiometer and added a section that turned on an LED when the value got within a certain range. I now wish to input analog values from a&amp;nbsp;different device into this board and have the same function. Would pads A29 &amp;amp; A30 which are ADC1_DM0 and ADC1_DP0, respectively work for this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex VanNewhouse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2017 00:07:43 GMT</pubDate>
    <dc:creator>alexvannewhouse</dc:creator>
    <dc:date>2017-10-09T00:07:43Z</dc:date>
    <item>
      <title>TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714784#M43885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty new to programming and I have the TWR-K70F120M module. I am trying to start programming but am having trouble learning the system. Does anyone have a simple blink LED code that I can load onto the module, so I can start learning the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 22:04:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714784#M43885</guid>
      <dc:creator>alexvannewhouse</dc:creator>
      <dc:date>2017-09-27T22:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714785#M43886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you download the open source uTasker project from the link below you can use it on the TWR-K70F120M, starting with a blinking LED.&lt;BR /&gt;Just select the define TWR_K70F120M for your board and the define BLINKEY to get the simple flashing LED. You can use almost any IDE to do this (KDS, CW, MCUXpresso, IAR, Keil, Rowley, etc.) and also run it in the Visual Studio as (real-time) K70 simulation.&lt;BR /&gt;Then you can simply add more features as you wish, once you get comfortable with things - e.g. remove BLINKEY and you will have also a command line interface on the UART, add USB_INTERFACE (and chose classes) and you have a working USB stack. Add ETH_INTERFACE and you have a TCP/IP stack with various services (web server, FTP, etc.), add SDCARD_SUPPORT and you have a complete FAT file system and you can then select many other peripheral operations (timers, communication interfaces) too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tutorial at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FKINETIS%2FuTaskerV1.4_Kinetis.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis.pdf&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Various videos at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkWNlsAoMly4%26list%3DPLWKlVb_MqDQFZAulrUywU30v869JBYi9Q" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=kWNlsAoMly4&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Support here or at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fforum%2F" rel="nofollow" target="_blank"&gt;http://www.utasker.com/forum/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you move to other Kinetis parts just select the other board in config.h and the complete project moves to that board, so one can write applications and let then run on any board that has the required peripherals without porting requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project also includes various boot loaders and, using Visual Studio, you can simulate the chip (including Flash, interrupts, DMA, Ethernet, CAN, UARTs etc..) in order to learn all details in a simple and efficient manner. For later professional designs you can use it to work much faster and to more easily achieve reliable complete solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K70F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K70F120M.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 03:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714785#M43886</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-28T03:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714786#M43887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;I checked you have submit the same question in two places, I reply you on that thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/461164"&gt;https://community.nxp.com/thread/461164&lt;/A&gt;&amp;nbsp;&amp;nbsp;&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>Thu, 28 Sep 2017 03:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714786#M43887</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-09-28T03:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714787#M43888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the useful links. There was a link to a video in the main uTasker readme file that explained how to set up the project in KDS. All was going well until I reached the part about changing the linker scripts. I ultimately changed it to say "${uTaskerLinkerScripts}/K_512_128.ld" in the file path under General under Cross ARM C++ Linker in the C/C++ Settings for the project. After changing that, I got several errors that I have attached to this post. Do you know what could be causing these errors? Thank you for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11824i39A7BA10CCDF1506/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error1.PNG" alt="Error1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11825i21AF11316AED2BDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error2.PNG" alt="Error2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 21:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714787#M43888</guid>
      <dc:creator>alexvannewhouse</dc:creator>
      <dc:date>2017-09-29T21:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714788#M43889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is better to show the console window output because it then shows the exact error rather than just the general error category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is possible that you have set two target boards at the same time - I see that the build is triggering an error because you are building for 60MHz bus clock and the environment sees that the target processor can't operate at this speed. It is generating a build error in preference to the object being generated and then not operating properly on the target (which could cause lots of loss of time if it were the case trying to work out why it doesn't run or is unreliable). Since the TWR-K70F120M can run at 60MHz bus clock I assume that another processor type is being selected (which can happen when two targets are chosen at the same time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how to configure exactly for the TWR-K70F120M in KDS.&lt;BR /&gt;1. Import the project&lt;BR /&gt;2. In \Applications\uTaskerV1.4\config.h&lt;BR /&gt;- select #define BLINKEY to get the simplest project configuration&lt;BR /&gt;- disable #define FRDM_K64F (or whatever other board target is selected that you don't want to use)&lt;BR /&gt;- enable #define TWR_K70F120M&lt;BR /&gt;3. In the KDS build settings choose "cortex-m4" at core. You can also (optionally) select "FP instructions (hard)" and FPU type "fpv4-sp-d16" since this device has FPU (the second is selected automatically when the first is chosen). However, if moving to a cortex-m0+ type later this must 'first' be disabled otherwise a KDS error occurs since it grays out the FPU field and it can't be deselected (and nothing runs).&lt;BR /&gt;4. Use the linker script file K_1M_128.ld&lt;BR /&gt;5. Build the target "uTasker_V1.4_Flash"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you are are happy with the simple case you can remove BLINKY and do more interesting things (USB, SD card, TCP/IP etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try building with VisualStudio (free community edition can be used) because you can also build with GCC from its make file. Then you can see the TWR-K70F120M being simulated in (approx.) real time [see below] as well as quickly generate binary files for the board. You can then change HW targets to build and simulate almost any other board without needing the HW.&lt;/P&gt;&lt;P&gt;Tr y writing, testing and debugging your own code extensions in the simulator to use grea tly more power ful and effic ient develop ment and debugging cap abilities that on the HW with K DS. This will allow you to analyse and progress many times faster than others who stick to and are restricted to the traditional techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&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/11920i3D33781165E14875/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>Sun, 01 Oct 2017 11:20:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714788#M43889</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-10-01T11:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714789#M43890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I was able to make the changes that you told me to perform specifically for the TWR-K70F120M, but I am still collecting a few errors. One was a definition error that is being drawn from an inclusion that comes from an else statement that isn't being used so I was thinking of adding the definition to the if statement. When I added the definition to the if statement, it got rid of all errors, but the program would not execute when trying to debug. Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error4.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11866i0F0AAB42966088F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error4.PNG" alt="Error4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error from else statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error5.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11894i257895E4254E60C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error5.PNG" alt="Error5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Excute error after adding definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Oct 2017 23:49:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714789#M43890</guid>
      <dc:creator>alexvannewhouse</dc:creator>
      <dc:date>2017-10-01T23:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714790#M43891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached config.h set up for TWR-K70F120M (and simple BLINKY case).&lt;/P&gt;&lt;P&gt;The problem that you had was that NUMBER_I2C was not defined in the Blinky case when I2C was still enabled. The solution was to either disable I2C of add the define. This was not your error since it was like that in the open source version but I just updated it so that the define is never missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't see what you changed and can't explain the Eclipse error that you then have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Use the attached file to be sure and if you continue to have problems debugging, try following the method in the video at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dbilc_4Cr7eo" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=bilc_4Cr7eo&lt;/A&gt;&lt;SPAN&gt; (from about 14:00)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 10:53:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714790#M43891</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-10-02T10:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714791#M43892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark for all the help. I truly appreciate you taking your time to help me. I now have been able to build and compile the code, but nothing happens(no LED blinks or anything). I have defined BLINKY, but still can't seem to find the problem. Any suggestions? Also, where is the actual code for the blinking LED and what LED exactly is supposed to be blinking? The comment says the "heartbeat LED". The STATUS,TPWR, and PWR LEDs are the only ones on,&amp;nbsp; I included console window after I compiled the code and configurations that I set up today. Sorry for all the trouble, but I am at a total loss.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error6.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12474iFD478E54846081E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error6.PNG" alt="Error6.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 21:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714791#M43892</guid>
      <dc:creator>alexvannewhouse</dc:creator>
      <dc:date>2017-10-02T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714792#M43893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you have set up the debug target correctly and there is code running.&lt;BR /&gt;The LED that flashes is the one in the touch sensor area (red I think) closest to the blue push button switches (see the simulation screen shot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code responsible for flashing the LED is in the file Watchdog.c. It looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;extern void fnTaskWatchdog(TTASKTABLE *ptrTaskTable)&amp;nbsp;&amp;nbsp; // watchdog called regularly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fnRetriggerWatchdog();&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; // hardware dependent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a task that is scheduled every 200ms which re-triggers the watchdog. The routine &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;fnRetriggerWatchdog()&lt;/SPAN&gt; has a call&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TOGGLE_WATCHDOG_LED();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // optionally flash a watchdog (heart-beat) LED&lt;/SPAN&gt;&lt;BR /&gt;which can be assigned to an output. In the case of the TWR-K70F120M this is&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;_TOGGLE_PORT(C, BLINK_LED)&lt;/SPAN&gt;, which toggles PTC9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 01:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714792#M43893</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-10-03T01:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714793#M43894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What hasn't been mentioned yet is that the Kinetis parts have various clocking option which need to match with the HW.&lt;BR /&gt;I assume that you use the TWR-K70F120M board as part of the tower kit, with the TWR-SER module and in this configuration it is typical to clock the K70 from the 50MHz oscillator supplied by the TWR-SER board (which then allows Ethernet operation). The configuration also defaults to this technique if not adjusted for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Therefore I recommend that you also check jumper settings according to chapter 7 of this guide: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FKINETIS%2FuTaskerV1.4_Kinetis_demo.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis_demo.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 11:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714793#M43894</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-10-03T11:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714794#M43895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the TWR-K70F120M board by itself. I do not have the TWR-SER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714794#M43895</guid>
      <dc:creator>alexvannewhouse</dc:creator>
      <dc:date>2017-10-03T19:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714795#M43896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the TWR-SER the TWR-K70F120M is fairly limited.&lt;BR /&gt;However, if you set jumpers J19 and J18 1-2 on the board it will connect its local 50Mhz oscillator to PTA18, its EXTAL input, to give the matching clock configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 21:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714795#M43896</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-10-03T21:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714796#M43897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for all the help. I was able to finally get it to work with your help. I do have another question for you though. Are there any pins on the TWR-K70F120M board that can be used as ADC Inputs from an external source? I am running the ADC Demo that uses the potentiometer and added a section that turned on an LED when the value got within a certain range. I now wish to input analog values from a&amp;nbsp;different device into this board and have the same function. Would pads A29 &amp;amp; A30 which are ADC1_DM0 and ADC1_DP0, respectively work for this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex VanNewhouse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 00:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714796#M43897</guid>
      <dc:creator>alexvannewhouse</dc:creator>
      <dc:date>2017-10-09T00:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70F120M programming trouble</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714797#M43898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand correctly you have used the ADC's range triggering capabilities and the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc_setup.int_adc_controller = 1;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ADC controller 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc_setup.int_adc_bit = ADC_DM1_SINGLE;&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; // ADC DM1 single-ended&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc_setup.int_adc_int_type = (ADC_LOW_LIMIT_INT | ADC_HIGH_LIMIT_INT); // interrupt type (trigger only when lower or higher than defined levels)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc_setup.int_low_level_trigger = (unsigned short)(ADC_VOLT * 1.3);&amp;nbsp; // the low level trigger threshold represented as input voltage (note: setting low threshold higher than the high threshold causes a trigger inside the range rather than outside of it)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc_setup.int_high_level_trigger = (unsigned short)(ADC_VOLT * 2.6); // the high level trigger threshold represented as input voltage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc_setup.int_handler = adc_range;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; // handling function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fnConfigureInterrupt((void *)&amp;amp;adc_setup);&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; // start operation now&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which monitors the input called ADC_DM1_SINGLE (connected to the potentiometer on the TWR-K70F120M board).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To change this to the other inputs that you refer to &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;adc_setup.int_adc_bit&lt;/SPAN&gt; can be set to ADC_DM0_SINGLE or ADC_DP0_SINGLE respectively. Note that each ADC (0..3 in the K70) can monitor one such input so you could have up to 4 inputs being level/range-monitored at any time without the processor needing to do any work. When any range trigger occurs the corresponding interrupt will fire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Some more ADC/DAC information is available in the document &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerADC.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerADC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 11:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70F120M-programming-trouble/m-p/714797#M43898</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-10-09T11:39:39Z</dc:date>
    </item>
  </channel>
</rss>

