<?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 MicrocontrollersのトピックRe: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159492#M541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started to work on the HID class, but I have not finished it yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Mar 2013 08:40:17 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2013-03-03T08:40:17Z</dc:date>
    <item>
      <title>Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159487#M536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I spent several frustrating hours last night, &lt;STRONG&gt;nearly&lt;/STRONG&gt; getting USB projects to work on the freedom platform. To be clear, I've got OpenSDA working, latest drivers, latest codewarrior (special edition) and done some basic GPIO / timer / interrupt work with the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind I'm trying only to get a **CDC Device** project working, nothing more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I tried:&lt;/P&gt;&lt;P&gt;1. importing baremetal code (file by file) and re-writing to work around a clean PE project - compiled with errors pointing to a a file on a drive that doesn't exist on my machine, so I couldn't find / resolve these. No luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Processor expert USB project, using USB Stack and docs as a guide. Followed the CDC implementation, except for Freedom board, not K60 as was in the guide. Main system clk was set 96MHz PEE config, 48MHz sys clk and 24MHz IPBUS / peripheral, all working ok. Go through the CDC steps and it then says the OTGEN bit is set, and won't generate PE code. No way to change this, as PE wont let me change code it hasn't generated yet, and I change the register setting in basic / advanced / expert with or without the graphic box enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. My memory is hazy here, forgive me, but I imported a USB stack example CDC project and tried compiling that. I got errors here also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone managed to get a plain CDC device implementation working on their freedom board? As I said, I've played around with the basics, debugging and basic operation is ok. Do I have to resort to Keil? At least their examples seemed to work. Anyone got any suggestions here?...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:07:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159487#M536</guid>
      <dc:creator>Frost</dc:creator>
      <dc:date>2012-10-31T07:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159488#M537</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 *do* have USB CDC working for the Freedom Board.&lt;/P&gt;&lt;P&gt;See &lt;A href="http://mcuoneclipse.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/" title="http://mcuoneclipse.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/"&gt;Tutorial: USB CDC with the KL25Z Freedom Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But the USB clock depends on if your board has that R25 populated or not:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/10/27/using-the-8-mhz-crystal-on-the-frdm-kl25z-freedom-board/" title="http://mcuoneclipse.com/2012/10/27/using-the-8-mhz-crystal-on-the-frdm-kl25z-freedom-board/"&gt;Using the 8 MHz Crystal on the FRDM-KL25Z Freedom Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have that R25 on the board or not, then I post you here a project/S19 file you could try with your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159488#M537</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-10-31T07:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159489#M538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich - it's frustrating when you're almost there but can't change one little thing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, just for your info, my board doesn't have R25 (normal I think) and PE sets the osc to low power by default. I'd had this bit working anyway and could get the 48MHz the USB needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also needed to install the Wait component, and the ring buffer. As I'd started the project without the ring buffer, I had to refresh the components in PE once I'd imported, and then close the project (saving changes) and then re-open. Once re-opened, the ring buffers were there as indexed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created code, wrote your demo cdc_run into main, and it's working like a champ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be cheeky, but is there anything obvious I can do to cut down on the code size?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thanks also for replying quickly, I saw the reply when I got to work, and was waiting all day to try this!!! :smileygrin:&lt;/P&gt;&lt;P&gt;Thanks :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 22:01:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159489#M538</guid>
      <dc:creator>Frost</dc:creator>
      <dc:date>2012-10-31T22:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159490#M539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tau,&lt;/P&gt;&lt;P&gt;good to hear that things are working on your end.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To show the code size at the end of the linking phase, see this:&amp;nbsp; &lt;A href="http://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/" title="http://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/"&gt;Code Size Information with gcc for ARM/Kinetis | MCU on Eclipse&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;To optimize code size, see &lt;A href="http://mcuoneclipse.com/2012/09/29/tutorial-freedom-with-freertos-and-kinetis-l/" title="http://mcuoneclipse.com/2012/09/29/tutorial-freedom-with-freertos-and-kinetis-l/"&gt;Tutorial: Freedom with FreeRTOS and Kinetis-L | MCU on Eclipse&lt;/A&gt; where I do this for an application: basically changing the compiler optimization level which greatly reduces the code size. There are as well options for dead stripping unused variables/functions, but they already are enabled by default in the projects created by CodeWarrior.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 09:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159490#M539</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-11-01T09:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159491#M540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever get USB HID working on the Freedom? I'm having a little trouble with the USB Stack/PE/Keil combination. My device refuses to enumerate, however I'm as a close to example code as possible.&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, 15 Feb 2013 16:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159491#M540</guid>
      <dc:creator>gmscribe</dc:creator>
      <dc:date>2013-02-15T16:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159492#M541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started to work on the HID class, but I have not finished it yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 08:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159492#M541</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-03-03T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159493#M542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tau, I am on the verge of getting a CDC project to work with a ton of Erich's help.&amp;nbsp; What my CDC project needs to accomplish is using Hyperterminal, when a carriage return is hit then logged data within the microcontroller is passed back.&amp;nbsp; If that is something similar to what you need, give me a couple of days to get the final bugs fixed and once I strip out customer specific code I will share the project with you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 00:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159493#M542</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-03-04T00:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159494#M543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the offer Steven, I'm going through some USB pain again at the moment as I want to port this code to a GCC + eclipse toolchain of my own devising - no code limits etc but it's own bag of problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, this was just a test, for my own personal projects so there isn't any personal end goal; Might be some useful info here: &lt;A href="http://www.waitingforfriday.com/"&gt;waiting for friday&lt;/A&gt; if you're interested in the windows driver side though. Essentially, what I want is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Basic working CDC or HID example, where I can communicate with the embedded device.&lt;/P&gt;&lt;P&gt;2. Windows driver / communication app to get data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done this before with PIC32MX, WLAN + C# / Java network listener. The pain I'm having at the moment is a win7 x64 compatible inf file. I'm wondering if &lt;A href="http://www.keil.com/forum/16493/"&gt;this here&lt;/A&gt; might be a clue. I've looked &lt;A href="http://curiouslynerdy.com/2009/10/usb-communications-device-class-on-64-bit-windows/"&gt;here&lt;/A&gt; also, but alas, no 64bit compatible inf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extremely annoying as I can't install the processor expert demo in the 403 stack and see if it works. :smileysad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 21:21:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159494#M543</guid>
      <dc:creator>Frost</dc:creator>
      <dc:date>2013-04-11T21:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom board + CodeWarrior10.3 = no working USB projects?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159495#M544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running windows 7 32 bit so the INF file that Erich provides with his CDC project works great.&amp;nbsp; The only mystery I find is if I power the FRDM board with USB, and then provide 3.3V to the coin cell connection with an external power supply, the glide point mouse on my PC starts to drag.&amp;nbsp; I am guessing they didn't isolate their design very well and some voltage is somehow effecting my USB port.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 01:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-board-CodeWarrior10-3-no-working-USB-projects/m-p/159495#M544</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2013-04-12T01:16:37Z</dc:date>
    </item>
  </channel>
</rss>

