<?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>LPC Microcontrollers中的主题 Re: lpc4357 USB,Ethernet with Fre RTOS getting Hardfault</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811902#M32564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Amarnath J,&lt;BR /&gt;I think you'd better introduce the process of the replicate the Hard fault issue, as I haven't encountered it when I debug the demo.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2018 08:10:04 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2018-09-17T08:10:04Z</dc:date>
    <item>
      <title>lpc4357 USB,Ethernet with Fre RTOS getting Hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811899#M32561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using LPC 4357 with free RTOS. I require USB and Ethernet&amp;nbsp;communication. Iam using USB1 as my USB communication port. I configured two tasks for USB and ethernet using LPCopen library. But while running&amp;nbsp;both tasks getting&amp;nbsp;&amp;nbsp;hanged. please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my USB initilization&lt;/P&gt;&lt;P&gt;void intialize_USB_CDC(void){&lt;BR /&gt; USBD_API_INIT_PARAM_T usb_param;&lt;BR /&gt; USB_CORE_DESCS_T desc;&lt;BR /&gt; ErrorCode_t ret = LPC_OK; &lt;BR /&gt; USB_CORE_CTRL_T *pCtrl; &lt;BR /&gt; &lt;BR /&gt; Chip_SCU_PinMuxSet(0x2, 5, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS | SCU_MODE_FUNC2)); /* P2_5 USB1_VBUS, MUST CONFIGURE THIS SIGNAL FOR USB1 NORMAL OPERATION */&lt;/P&gt;&lt;P&gt;/* enable clocks and pinmux */&lt;BR /&gt; USB_init_pin_clk();&lt;/P&gt;&lt;P&gt;/* Init USB API structure */&lt;BR /&gt; g_pUsbApi = (const USBD_API_T *) LPC_ROM_API-&amp;gt;usbdApiBase;&lt;/P&gt;&lt;P&gt;/* initialize call back structures */&lt;BR /&gt; memset((void *) &amp;amp;usb_param, 0, sizeof(USBD_API_INIT_PARAM_T));&lt;BR /&gt; usb_param.usb_reg_base = LPC_USB_BASE;&lt;BR /&gt; usb_param.max_num_ep = 4;&lt;BR /&gt; usb_param.mem_base = USB_STACK_MEM_BASE;&lt;BR /&gt; usb_param.mem_size = USB_STACK_MEM_SIZE;&lt;/P&gt;&lt;P&gt;/* Set the USB descriptors */&lt;BR /&gt; desc.device_desc = (uint8_t *) USB_DeviceDescriptor;&lt;BR /&gt; desc.string_desc = (uint8_t *) USB_StringDescriptor;&lt;BR /&gt;#ifdef USE_USB0&lt;BR /&gt; desc.high_speed_desc = USB_HsConfigDescriptor;&lt;BR /&gt; desc.full_speed_desc = USB_FsConfigDescriptor;&lt;BR /&gt; desc.device_qualifier = (uint8_t *) USB_DeviceQualifier;&lt;BR /&gt;#else&lt;BR /&gt; /* Note, to pass USBCV test full-speed only devices should have both&lt;BR /&gt; * descriptor arrays point to same location and device_qualifier set&lt;BR /&gt; * to 0.&lt;BR /&gt; */&lt;BR /&gt; desc.high_speed_desc = USB_FsConfigDescriptor;&lt;BR /&gt; desc.full_speed_desc = USB_FsConfigDescriptor;&lt;BR /&gt; desc.device_qualifier = 0;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;/* USB Initialization */&lt;BR /&gt; ret = USBD_API-&amp;gt;hw-&amp;gt;Init(&amp;amp;g_hUsb, &amp;amp;desc, &amp;amp;usb_param);&lt;BR /&gt; if (ret == LPC_OK) {&lt;/P&gt;&lt;P&gt;/* WORKAROUND for artf45032 ROM driver BUG:&lt;BR /&gt; Due to a race condition there is the chance that a second NAK event will&lt;BR /&gt; occur before the default endpoint0 handler has completed its preparation&lt;BR /&gt; of the DMA engine for the first NAK event. This can cause certain fields&lt;BR /&gt; in the DMA descriptors to be in an invalid state when the USB controller&lt;BR /&gt; reads them, thereby causing a hang.&lt;BR /&gt; */&lt;BR /&gt; pCtrl = (USB_CORE_CTRL_T *) g_hUsb; /* convert the handle to control structure */&lt;BR /&gt; g_Ep0BaseHdlr = pCtrl-&amp;gt;ep_event_hdlr[0];/* retrieve the default EP0_OUT handler */&lt;BR /&gt; pCtrl-&amp;gt;ep_event_hdlr[0] = EP0_patch;/* set our patch routine as EP0_OUT handler */&lt;/P&gt;&lt;P&gt;/* Init VCOM interface */&lt;BR /&gt; ret = vcom_init(g_hUsb, &amp;amp;desc, &amp;amp;usb_param);&lt;BR /&gt; if (ret == LPC_OK) {&lt;BR /&gt; /* enable USB interrupts */&lt;BR /&gt; NVIC_EnableIRQ(LPC_USB_IRQ);&lt;BR /&gt; /* now connect */&lt;BR /&gt; USBD_API-&amp;gt;hw-&amp;gt;Connect(g_hUsb, 1);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ethernet configuration&lt;/P&gt;&lt;P&gt;static void setupEthernetHardware(void)&lt;BR /&gt;{&lt;BR /&gt; /* LED0 is used for the link status, on = PHY cable detected */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //New Board&lt;BR /&gt; DEBUGOUT("With out FPGA Baord\r\n");&lt;BR /&gt; Chip_SCU_PinMuxSet(0xC, 4, (SCU_PINIO_FAST | SCU_MODE_FUNC3));//TX_EN &lt;BR /&gt; Chip_SCU_PinMuxSet(0x2, 0, (SCU_MODE_PULLUP | SCU_MODE_FUNC7));//MDC &lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 09:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811899#M32561</guid>
      <dc:creator>amarnath_jakkam</dc:creator>
      <dc:date>2018-09-11T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: lpc4357 USB,Ethernet with Fre RTOS getting Hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811900#M32562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Amarnath J,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I'd like to know the more information about this issue, for instance, whether you can share the compile-able demo which can replicate the phenomenon and introduce the testing process, etc.&lt;BR /&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 02:42:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811900#M32562</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-09-12T02:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: lpc4357 USB,Ethernet with Fre RTOS getting Hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811901#M32563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremyzhou&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thanks for the reply.&amp;nbsp;&lt;/STRONG&gt;I am using the lpc open 3.02 library. Here I am uploading sample code of freertos with USB and ethernet.&amp;nbsp;extract this project in&amp;nbsp;lpcopen_3_02_keil\LPC43xx_18xx\prj_mcb4357\keil.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 04:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811901#M32563</guid>
      <dc:creator>amarnath_jakkam</dc:creator>
      <dc:date>2018-09-14T04:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: lpc4357 USB,Ethernet with Fre RTOS getting Hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811902#M32564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Amarnath J,&lt;BR /&gt;I think you'd better introduce the process of the replicate the Hard fault issue, as I haven't encountered it when I debug the demo.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 08:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-USB-Ethernet-with-Fre-RTOS-getting-Hardfault/m-p/811902#M32564</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-09-17T08:10:04Z</dc:date>
    </item>
  </channel>
</rss>

