Search found 27 matches

by Dylan Hsieh
19 Mar 2019, 11:08
Forum: Nuvoton Cortex-M4 MCU
Topic: HsUSBD Fly-Mode packetizing size control
Replies: 1
Views: 19459

Re: HsUSBD Fly-Mode packetizing size control

Hi Kojima-san, The fly-mode only care how many data in the endpoint buffer, if the data in the EP buffer is less than maximum packet size, the HS-USBD will send all of data in A package after receive the in-token from HOST. But if data is more than the maximum packet size, the data will be divided i...
by Dylan Hsieh
15 Feb 2019, 16:07
Forum: NuMaker Resources
Topic: How to activate ETM on M48x ?
Replies: 1
Views: 45534

Re: How to activate ETM on M48x ?

Hi, To enable the ETM trace function, you need to add some code to switch the pin's multi-function to ETM trace pin at the initial state: /* Setup ETM Pin Usage - PE.8: DAT3 - PE.9: DAT2 - PE.10: DAT1 - PE.11: DAT0 - PE.12: CLK */ SYS->GPE_MFPH &= ~(SYS_GPE_MFPH_PE8MFP_Msk | SYS_GPE_MFPH_PE9MFP_Msk ...
by Dylan Hsieh
15 Feb 2019, 15:22
Forum: Nuvoton Cortex-M4 MCU
Topic: HsUSBD Proper Read-out method for Bulk-OUT EPs
Replies: 9
Views: 17895

Re: HsUSBD Proper Read-out method for Bulk-OUT EPs

Hi Kojima-san, [Checking emptiness] _BUFEMPTYIF is just a status flag indicate that do endpoint buffer have data or not. If endpoint buffer have unread data inside it will keep "0", even there is only 1 byte unread data inside endpoint buffer. [Memory space management done by USBD IP] If the endpoin...
by Dylan Hsieh
12 Feb 2019, 14:23
Forum: Nuvoton Cortex-M4 MCU
Topic: HsUSBD Proper Read-out method for Bulk-OUT EPs
Replies: 9
Views: 17895

Re: HsUSBD Proper Read-out method for Bulk-OUT EPs

Hi Kojima-san The _DATCNT always indicate how many data in the endpoint buffer, and it will decrease by "1" each time you read-out (byte accessed) the data from the endpoint buffer. And the endpoint buffer is work likes "Ring Buffer", if it have enough space to stored "A data package", the USB hardw...
by Dylan Hsieh
11 Feb 2019, 16:30
Forum: Nuvoton Cortex-M4 MCU
Topic: HsUSBD Proper Read-out method for Bulk-OUT EPs
Replies: 9
Views: 17895

Re: HsUSBD Proper Read-out method for Bulk-OUT EPs

Hi Kojima-san, Allow me to simplify your question: You want to operate the endpoint buffer likes the "double-buffer", allocates double packet size for a endpoint (BUF1, BUF2), the first package from HOST will be stored into BUF1, the next package will be stored into BUF2, so you can handle the previ...
by Dylan Hsieh
09 Jan 2019, 19:09
Forum: Nuvoton Cortex-M4 MCU
Topic: HsUSBD Proper Read-out method for Bulk-OUT EPs
Replies: 9
Views: 17895

Re: HsUSBD Proper Read-out method for Bulk-OUT EPs

Hi Kojima-san, According to HSUSB specification if Endpoint buffer have no enough space to store the one packet size, NYET will be returned. Allocate twice size memory (in your case 512K x 2 = 1K Bytes) to suppress the NYET/PING is correct way. To let the USB transfer more efficiency, I suggest usin...
by Dylan Hsieh
07 Dec 2018, 16:24
Forum: Nuvoton MCU Sample Code
Topic: Related to Ethernet in M487
Replies: 2
Views: 23799

Re: Related to Ethernet in M487

Hi alan.a, We integrated FreeRTOS with lwip (TCP/IP stack) on M480 BSP package, and lwip provide socket layer for network application, now we have two sample code [ TCP_EchoServer ] and [ UDP_EchoServer ], you can find these on M480BSP github. https://github.com/OpenNuvoton/M480BSP/ Or you can use t...
by Dylan Hsieh
16 May 2017, 18:52
Forum: Nuvoton Cortex-M4 MCU
Topic: [M453] Wakeup from Deep Sleep by GPIO Interrupt
Replies: 5
Views: 4458

Re: [M453] Wakeup from Deep Sleep by GPIO Interrupt

Hi,

It seems you miss to enable wake-up function of timer.

To enable wake-up function of timer, you need to set the bit [WKEN] in the [TIMERx_CTL] or you can just call the API function TIMER_EnableWakeup(TIMERX).
by Dylan Hsieh
09 May 2017, 09:28
Forum: Nuvoton Cortex-M4 MCU
Topic: [M453] Wakeup from Deep Sleep by GPIO Interrupt
Replies: 5
Views: 4458

Re: [M453] Wakeup from Deep Sleep by GPIO Interrupt

Hi,

Have you downloaded the BSP of M451 from our website, the BSP have the sample code of how to use GPIO to wake-up the system from the power-saving mode.

Thanks