2016-10-05 03:48 AM
Hi all,
I'm working on a USB CDC demo from cubel4 family under the STM32L476G_EVAL board.I port the example to work with the STM32L476_VG_Discovery changing the PIN.The example configure the board to receive from a USARTx interrupt and transmit from a USARTx_DMA_TX interrupt.I wanna know how to configure the example to receive and transmit both from the DMA. I must change the configuration in the hal_msp.c and configure the new interrupt USARTx_DMA_RX?Thank's #stm32l476 #dma #cdc2016-10-07 04:26 AM
Hello,
I recommend to use the STM32CubeMX tool to initialize peripherals, build and generate your starting projects with initialization C code.STM32CubeMX tool from ST will allow you to choose the microcontroller, select the peripherals you want and map them to pins graphically. Then, you can follow the ''CDC-Standalone'' example from STM32CubeL4 and modify this working application depending on your needs: STM32Cube_FW_L4_V1.5.0\Projects\STM32L476G_EVAL\Applications\USB_Device\CDC_StandaloneFor more detail about tool, take a look to this user Manual .For more details, refer to that explains more the use of STM32Cube USb device library.Regards