<?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>MQX Software Solutions中的主题 Re: USB COMMAND_DONE semaphore not working</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612890#M16829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you try to enbale USBCFG_HOST_BUFF_PROPERTY_CACHEABLE&amp;nbsp;&amp;nbsp; in usb_host_ocnfig.h&amp;nbsp;&amp;nbsp; , to see whether it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2016 08:43:53 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2016-11-07T08:43:53Z</dc:date>
    <item>
      <title>USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612880#M16819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem on USB stack.&lt;/P&gt;&lt;P&gt;Fisrt, my configuration:&lt;/P&gt;&lt;P&gt;K70, MQX 4.1&lt;/P&gt;&lt;P&gt;I try to update usb files from MQX4.2 (not usbv2, just Usb) but problem still present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when USB is plugged, like done in HVAC demo, I do following:&lt;/P&gt;&lt;P&gt;_io_usb_mfs_install(..)&lt;/P&gt;&lt;P&gt;usb_fs_ptr-&amp;gt;DEV_FD_PTR = fopen(block_device_name, 0);&lt;/P&gt;&lt;P&gt;Wtih the same key, sometime return will be null, sometime return will be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debug on under layer:&lt;/P&gt;&lt;P&gt;_io_fopen -&amp;gt; _io_usb_mfs_open -&amp;gt; _io_usb_mfs_open_internal.&lt;/P&gt;&lt;P&gt;In this function, we wait a semaphore (_lwsem_wait_ticks(&amp;amp;info_ptr-&amp;gt;&amp;nbsp;COMMAND_DONE, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This semaphore is post in _io_usb_ctrl_callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When all work, in&amp;nbsp; io_usb_mfs_open_interna we wait COMMAND_DONE, then the _io_usb_ctrl_callback is called (from _task_build_internal/_usb_khci_task/_usb_khci_process_tr_complete_io/_usb_ctrl_callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when not working, the function _io_usb_ctrl_callback is called before the fopen call the lwsem wait.&lt;/P&gt;&lt;P&gt;So the post not trig the wait semaphore...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resume, if the _lwsem_post arrive before the _lwsem_wait_ticks, we will blocked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This semaphore behavior is Ok? Could you help me to find frome where problem comes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 11:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612880#M16819</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-10-28T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612881#M16820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Like in the HVAC exemple, there are a delay(500) just before the fopen.&lt;/P&gt;&lt;P&gt;So I try by removing this delay, then the first lwsem is always OK, but after, there are another lwsem, which will failled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 12:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612881#M16820</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-10-28T12:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612882#M16821</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 try to activate KHCI_DEBUG, but error occurs on compile because we need the type&amp;nbsp;TR_MSG_TYPE. But it is never define!&lt;/P&gt;&lt;P&gt;:-(&lt;/P&gt;&lt;P&gt;Anybody has some idea to help me to find the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612882#M16821</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-02T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612883#M16822</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'm always investigating on my Bug.&lt;/P&gt;&lt;P&gt;Then I made many manipulation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) On Tower K70 try the HVAC demo in SRAM Debug mode : Usb mount file system without any problems (Ok)&lt;/P&gt;&lt;P&gt;2) On Tower K70 try the HVAC demo in DDRAM Debug mode : Init of USB is Ok, but when I plug a Key, never usb_host_mass_device_event is called, then USB and file system is not Mount !!!! (NOT OK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I try with my project which link on the same OS than the previous to be running on Tower system. I reduce it to just start the USB_Task. I linked with USB file from HVAC demo =&amp;gt;same result than point 1, its is ok.&lt;/P&gt;&lt;P&gt;4) Same like 3, but now I used m written US driver (derived from HVAC demo USB file but with our own coding rules etc..). This is Ok, it work correctly =&amp;gt; same result than point 1. =&amp;gt; The my Own USB driver is Ok.&lt;/P&gt;&lt;P&gt;5) Same than 4 but on "DDRData" =&amp;gt; Same result than 2 =&amp;gt; No callback function is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then these tests allow to say:&lt;/P&gt;&lt;P&gt;- Why on HVAC demo&amp;nbsp;USB not working in DDRData configuration???&lt;/P&gt;&lt;P&gt;- My USB driver work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I will check difference between original OS (tower K70) and my OS configured for my target. But it is strange demon not working in DDRDAta???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 09:30:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612883#M16822</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-03T09:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612884#M16823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After many test, this confirm all work correctly when use sram linker option, and not working on ddrdata linker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need ddram for my application( PEG) I try many combination of mapping but without succes,&lt;/P&gt;&lt;P&gt;I can't find which element in DDR configuration make fail the USB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is Somebody can reproduce the problem? and help me to find the good configuration?&lt;/P&gt;&lt;P&gt;=&amp;gt; TWRK70 with MQX 4.1.1 and HVAC demo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:57:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612884#M16823</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-03T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612885#M16824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Waiting for someone to answer me, I activate the LOG USB.&lt;/P&gt;&lt;P&gt;I attached these 2 Log file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The Log_Ok.txt generatetd when Key is plugged and is correctly mounted (SdrRam Data configuration)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The Log_Not_Ok.txt generatetd when Key is plugged and is not correctly mounted (DDr Data configuration)&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/435609"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;WHen it is not Ok, the problem come from _usb_host_ch9_clear_feature which is called. This function is called because function _usb_khci_atom_tr is called in&amp;nbsp; _usb_khci_task, but in it, the swicth on bd is 0x0e:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;res &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; KHCI_ATOM_TR_STALL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bd is the famous buffer placed in RAM (0x1FFF 0000). I suspect some other think which come write in it in DDR setup case. But who and why???....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 15:12:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612885#M16824</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-03T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612886#M16825</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 comment the following define &lt;/P&gt;&lt;P&gt;KHCICFG_4BYTE_ALIGN_FIX&lt;/P&gt;&lt;P&gt;Then HVAC demo work on Tower K70 in both configuration( SDramData and DDRData).&lt;/P&gt;&lt;P&gt;I just remember I had the same problem 2 year ago:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/455760?commentID=455760#comment-455760"&gt;https://community.nxp.com/message/455760?commentID=455760#comment-455760&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then a part of the problem was resolved by comment the #define. But it seems this not solve all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I restart from scratch on my investigations! :-(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 15:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612886#M16825</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-03T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612887#M16826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still investigating.&lt;/P&gt;&lt;P&gt;I had found some problem but all is not yet perfect:&lt;/P&gt;&lt;P&gt;- I had a "printf("%/n xxxxx"); =&amp;gt; the "%" was not correct, then with compilation optimisation to "-03" this make crash sometime.&lt;/P&gt;&lt;P&gt;- Imade my test with two different configuration. the fist with OS Usbh on "Debug" configuration, the second on "Release" configuration.&lt;/P&gt;&lt;P&gt;- I update My Mqx/Usb directory with USB from MQX4.2 (On this project, I'm on MQX 4.1.1) =&amp;gt; there is some difference on mem initialisation size(pass _PTR or not...)&lt;/P&gt;&lt;P&gt;- I commented &lt;SPAN style="color: #008000;"&gt;#define&amp;nbsp;KHCICFG_4BYTE_ALIGN_FIX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So with "Debug" configuration, USB work (Sometime the USB key is not recognize, but if I restart board, according I plug the key before or after the Power On, according the Key manufacturer itself, I always success). With "Release" configuration, the USB not work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the UsbH code have Something bad with Compiler optimization set to -o3.&lt;/P&gt;&lt;P&gt;So I test on HVAC demo on TWRK70, problem not occurs on it. Then it is with my specific application. I think I had a bad alignment or bad initialisation variable which not important without optimization, but it is with optimization....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: How debug this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612887#M16826</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-04T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612888#M16827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arnaud:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which USB Flash driver you are using ? Have you tried other USB disks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 08:30:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612888#M16827</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-11-07T08:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612889#M16828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Usb (v1, not v2) KHCI MQX 4.1.1. I test with 4 different USB stick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying with following change:&lt;/P&gt;&lt;P&gt;- Return from 150MHz to 120Mhz CPU Clock (USB from 50MHz to 48Mhz)&lt;/P&gt;&lt;P&gt;- BSPCFG_DSPI1_USE_DMA 0&lt;/P&gt;&lt;P&gt;- MQX_USE_LWMEM_ALLOCATOR 1 (Tower k70 User config set it)&lt;/P&gt;&lt;P&gt;- MQX_USE_MEM&amp;nbsp; 1 (Tower k70 User config set it)&lt;/P&gt;&lt;P&gt;- Add define of _HOST_DEBUG_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm compiling it before test!...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be try with MQX_USE_UNCACHED_MEM&amp;nbsp;&amp;nbsp;set to 1... (I don't know the impact)&lt;/P&gt;&lt;P&gt;-Also I would try by update MFS/Ffs from MQX 4.2.0.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 08:36:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612889#M16828</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-07T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612890#M16829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you try to enbale USBCFG_HOST_BUFF_PROPERTY_CACHEABLE&amp;nbsp;&amp;nbsp; in usb_host_ocnfig.h&amp;nbsp;&amp;nbsp; , to see whether it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 08:43:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612890#M16829</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-11-07T08:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612891#M16830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I not found USBCFG_HOST_BUFF_PROPERTY_CACHEABLE neither usb_host_config.h :-(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 08:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612891#M16830</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-07T08:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612892#M16831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure whether it can fix your issue ,&amp;nbsp;&amp;nbsp; but when using DDR build, it's using cache, we need to enable USBCFG_HOST_BUFF_PROPERTY_CACHEABLE.&amp;nbsp; Sorry this file is in usb_v2. &amp;nbsp; I think in old usb stack, there should be a similar macro to define this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 09:11:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612892#M16831</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-11-07T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612893#M16832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I not find an equivalent in Usb v1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 10:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612893#M16832</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-07T10:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612894#M16833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Last week, on production line, I was about half board which had a USB key difficult to running.&lt;/P&gt;&lt;P&gt;Today, With modification done, at this time, all board running correctly:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Clock from 150MHz to 120MHz..&lt;/P&gt;&lt;P&gt;- BSPCFG_DSPI1_USE_DMA à 0&lt;/P&gt;&lt;P&gt;- MQX_USE_LWMEM_ALLOCATOR 1&lt;/P&gt;&lt;P&gt;- MQX_USE_MEM 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612894#M16833</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-07T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612895#M16834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems I change all this, No problem occurs. (Never!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I change frequency from 120MHz to 150Mhz, problems occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On USB, the difference are on _bsp_usb_io_init. But why because it seems 50MHz is acceptable for USB??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;#if&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; (MQX_CPU &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;==&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; PSP_CPU_MK70F150M)&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM style="color: #008000; font-size: small;"&gt;/* PR#51: Clock up from120MHz to 150MhZ */&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM style="color: #008000; font-size: small;"&gt;/* Configure USB divider to be 150MHz * 1 / 3 = 50 MHz */&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;&lt;BR /&gt; &lt;STRONG&gt;SIM_CLKDIV2_REG&lt;/STRONG&gt;(SIM_BASE_PTR) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;&amp;amp;=&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;~&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;(SIM_CLKDIV2_USBFSDIV_MASK &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;|&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; SIM_CLKDIV2_USBFSFRAC_MASK);&lt;BR /&gt; &lt;STRONG&gt;SIM_CLKDIV2_REG&lt;/STRONG&gt;(SIM_BASE_PTR) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;|=&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;STRONG&gt;SIM_CLKDIV2_USBFSDIV&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: small;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;EM style="color: #008000; font-size: small;"&gt;// | SIM_CLKDIV2_USBFSFRAC_MASK;&lt;BR /&gt; &lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;#else&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;EM style="color: #008000; font-size: small;"&gt;/* (MQX_CPU == PSP_CPU_MK70F120M) */&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM style="color: #008000; font-size: small;"&gt;/* Configure USB divider to be 120MHz * 2 / 5 = 48 MHz */&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;&lt;BR /&gt; &lt;STRONG&gt;SIM_CLKDIV2_REG&lt;/STRONG&gt;(SIM_BASE_PTR) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;&amp;amp;=&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;~&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;(SIM_CLKDIV2_USBFSDIV_MASK &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;|&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; SIM_CLKDIV2_USBFSFRAC_MASK);&lt;BR /&gt; &lt;STRONG&gt;SIM_CLKDIV2_REG&lt;/STRONG&gt;(SIM_BASE_PTR) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;|=&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;STRONG&gt;SIM_CLKDIV2_USBFSDIV&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: small;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: small;"&gt;|&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; SIM_CLKDIV2_USBFSFRAC_MASK;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;#endif&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612895#M16834</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-07T13:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612896#M16835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arnaud Girard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear it can work when you change frequency to 48M.&lt;/P&gt;&lt;P&gt;USB clock should be configured to 48Mhz.&lt;/P&gt;&lt;P&gt;Please refer to the reference manual for K70P256M150sf3. Page 216&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/8777iC05DFCCA88C51BA8/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;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 02:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612896#M16835</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-11-08T02:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: USB COMMAND_DONE semaphore not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612897#M16836</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;Ok, I haven't check that, I just check the USB v2 which indicate we can work up tp 60MHz:smileyblush:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had try to change the Clock configuration to make a check during my research,&lt;/P&gt;&lt;P&gt;But with any other value than 1/3, USB never working:smileyconfused:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 150MHz CPU clock, the value was like bellow. May be there are forbidden couple of value?&lt;/P&gt;&lt;P&gt;Which value can I set with 150MHz CPU clock to have a working USB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&lt;STRONG&gt;SIM_CLKDIV2_REG&lt;/STRONG&gt;(SIM_BASE_PTR) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;&lt;STRONG&gt;&amp;amp;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;&lt;STRONG&gt;~&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;(SIM_CLKDIV2_USBFSDIV_MASK &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;&lt;STRONG&gt;|&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; SIM_CLKDIV2_USBFSFRAC_MASK);&lt;BR /&gt;&lt;STRONG&gt;SIM_CLKDIV2_REG&lt;/STRONG&gt;(SIM_BASE_PTR) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;&lt;STRONG&gt;|=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;STRONG&gt;SIM_CLKDIV2_USBFSDIV&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: small;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small;"&gt;&lt;EM&gt;// | SIM_CLKDIV2_USBFSFRAC_MASK;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, the configuration macro CPU_USB_CLK_HZ_CONFIG_0 is set to &lt;/P&gt;&lt;P&gt;PE_CpuClockConfigurations.cpu_usb_clk_hz, but this parameter is never used??..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 05:26:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-COMMAND-DONE-semaphore-not-working/m-p/612897#M16836</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-11-08T05:26:13Z</dc:date>
    </item>
  </channel>
</rss>

