<?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: BSP setting fo USB in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-setting-fo-USB/m-p/196848#M4138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I posted the same thread in MQX general board.&lt;/P&gt;&lt;P&gt;The topic is &lt;A __default_attr="103048" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/103048" jivemacro="thread" title="here"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The solution is &lt;A href="https://community.freescale.com/message/103072#103072" title="https://community.freescale.com/message/103072#103072"&gt;https://community.freescale.com/message/103072#103072&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 01:21:58 GMT</pubDate>
    <dc:creator>Teckna</dc:creator>
    <dc:date>2012-01-12T01:21:58Z</dc:date>
    <item>
      <title>BSP setting fo USB</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-setting-fo-USB/m-p/196847#M4137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a custom board with CW10, MQX 3.8 and K60N512 processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this board&amp;nbsp;I have successfully worked with MQX 3.7. Now that I ported all custom drivers to MQX 3.8, everything is ok except the USB. I cloned the BSP twrk60n512 and I modified the line 58 in the bsp_cm.h file from&lt;/P&gt;&lt;PRE&gt;#define CPU_XTAL_CLK_HZ                 0x02FAF080U /* Value of the external crystal or oscillator clock frequency in Hz */&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;#define CPU_XTAL_CLK_HZ                 0x016E3600U /* Value of the external crystal or oscillator clock frequency in Hz */&lt;/PRE&gt;&lt;P&gt;(my external clock is 24 MHz instead of 50 MHz as in the twrk60n512 board)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I insert the USB cable in the PC port the device is not recognized, even if leave the 50 MHz define.&lt;/P&gt;&lt;P&gt;The only way I found to make the USB work is to set the SIM_CLKDIV2.USBDIV field to 0 instead of 1 in the Cpu_SetClockConfiguration function: I modified the line 717 in the bsp_cm.c file from&lt;/P&gt;&lt;PRE&gt;      SIM_CLKDIV2 = (uint32_t)((SIM_CLKDIV2 &amp;amp; (uint32_t)~0x0DUL) | (uint32_t)0x02UL); /* Update USB clock prescalers */&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;      SIM_CLKDIV2 = (uint32_t)(SIM_CLKDIV2 &amp;amp; (uint32_t)~0x0FUL); /* Update USB clock prescalers */&lt;/PRE&gt;&lt;P&gt;Am I right or do I have to modifiy other things?&lt;/P&gt;&lt;P&gt;Any other advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 21:36:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-setting-fo-USB/m-p/196847#M4137</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2012-01-11T21:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: BSP setting fo USB</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-setting-fo-USB/m-p/196848#M4138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I posted the same thread in MQX general board.&lt;/P&gt;&lt;P&gt;The topic is &lt;A __default_attr="103048" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/103048" jivemacro="thread" title="here"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The solution is &lt;A href="https://community.freescale.com/message/103072#103072" title="https://community.freescale.com/message/103072#103072"&gt;https://community.freescale.com/message/103072#103072&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Teckna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 01:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BSP-setting-fo-USB/m-p/196848#M4138</guid>
      <dc:creator>Teckna</dc:creator>
      <dc:date>2012-01-12T01:21:58Z</dc:date>
    </item>
  </channel>
</rss>

