<?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>Processor Expert SoftwareのトピックRe: FSL_USB_STACK processor expert component with MQXlite</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420645#M3408</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 am sorry but it is not possible to analyze the issue according this short general description. Could you provide more details (vector configuration changes - modification of the source code) and the application for analysis, please?&lt;/P&gt;&lt;P&gt;The MQXLite use also interrupts and manual modification of the vector table may impact the MQXLite functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 10:45:50 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2015-10-27T10:45:50Z</dc:date>
    <item>
      <title>FSL_USB_STACK processor expert component with MQXlite</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420644#M3407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I am using the FSL_USB_STACK Processor expert component with MQXLite.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I had to tweak little bit with vector configuration. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;With this now USB Enumeration works, and I am able to see the “virtual com port” on PC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;But now this screwed up with MQXlite itself, none of the tasks are running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;It is in loop all time in function “&lt;STRONG&gt;_pend_svc&lt;/STRONG&gt;” at below location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt;ASM_LABEL(find_noempty_que)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; ldr r2, [r1, #0] &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* address of first td */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; cmp r2, r1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* ready_q structure itself? */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; bne switch_task&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; ldr r1, [r1, #RQ_NEXT_Q]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* try next queue */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; movs r1, r1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; bne find_noempty_que&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; background: silver;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* r1 is 0 -&amp;gt; empty */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt;ASM_LABEL(no_one_to_run)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* &lt;/SPAN&gt;&lt;STRONG style="color: #7f9fbf; background: silver; font-size: 10.0pt; font-family: Consolas;"&gt;TODO&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt; set system task ??? */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; background: silver;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* enable all interrupts (r1 = 0) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* &lt;/SPAN&gt;&lt;STRONG style="color: #7f9fbf; background: silver; font-size: 10.0pt; font-family: Consolas;"&gt;TODO&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt; maybe (maybe not necessary) restore PendSV priority and BASEPRI after wfi */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; msr BASEPRI, r1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; background: silver;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; ldr r1, =0xE000ED20 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* SHPR3 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; ldr r2, =0xff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; strb r2, [r1, #2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; background: silver;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f; background: silver;"&gt;/* wait for interrupt */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; cpsie.n i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; wfi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; cpsid.n i&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 20:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420644#M3407</guid>
      <dc:creator>niranjanbc</dc:creator>
      <dc:date>2015-10-21T20:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK processor expert component with MQXlite</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420645#M3408</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 am sorry but it is not possible to analyze the issue according this short general description. Could you provide more details (vector configuration changes - modification of the source code) and the application for analysis, please?&lt;/P&gt;&lt;P&gt;The MQXLite use also interrupts and manual modification of the vector table may impact the MQXLite functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 10:45:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420645#M3408</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-10-27T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK processor expert component with MQXlite</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420646#M3409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;This is my story&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I am using&amp;nbsp;&amp;nbsp; MQX lite --&amp;gt; MQX_LITE_VERSION "V1.1.0" and USB stack component "FSL_USB_STACK" from Processor expert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I modified the vector configuration table overwritten by USB stack init component to work with MQXLite Rtos.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I used function&amp;nbsp; "_int_install_isr(LDD_ivIndex_INT_USB0, USB_ISR, NULL)" to setup USB interrupt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If I enable the USB interrupt right after the initialization and before RTOS start, none of the task will run and RTOS remains looping in function "_pend_svc". with this condition when I plug in USB, enumeration happens fine and I am able to see Virtual Com port on PC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;So I moved the interrupt enable to one of the task, where I process USB communication. now All tasks run fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;But when I plug in USB cable, I get Hard fault. I have attached pdf showing flag "INVSTATE" set in CFSR Register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I also tried increasing stack size from 0x400 to 0x2000, still no success&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420646#M3409</guid>
      <dc:creator>niranjanbc</dc:creator>
      <dc:date>2015-11-03T19:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK processor expert component with MQXlite</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420647#M3410</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 am sorry but it is not clear yet. What product and version are you using (e.g. KDS 3.0.0, CodeWarrior 10.6.4,...) and what components are used in the project (it seems that you are using a USB component from Mcu On Eclipse website)?&lt;/P&gt;&lt;P&gt;Could you also provide the project for analysis, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 11:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FSL-USB-STACK-processor-expert-component-with-MQXlite/m-p/420647#M3410</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-11-06T11:11:27Z</dc:date>
    </item>
  </channel>
</rss>

