cancel
Showing results for 
Search instead for 
Did you mean: 

We can use the usb CDC (Virtual Com Port) and 2*USART together? i need when connect the MCU to PC show 3 ttyACM (CDC,UART1 and Uart2), i use MCU STM32F042x4.

YazanShhady
Associate II

Note: when i use the CubeMX and configure the pins for USB cdc and the UART1/2 show warning conflict

5 REPLIES 5

You are probably talking about the TSSPOP20 package, where PA11/PA12 (USB_DM, USB_DP) must be remapped over PA9/PA10, which are in that package the only pins with USART1Tx/Rx, which are then lost.

See " STM32F042x pin definitions" table in datasheet.

You have to use a larger package.

JW

YazanShhady
Associate II

how we can use the Large Package from CubeMX ?

YazanShhady
Associate II

i use PA11/PA12 (USB_DM, USB_DP) and PA9/PA10 USART1_TX,USART1_RX and when we config the USART1 to work Asynchronous the CubeMX show me this warning :

Partly:disabled conflict with:

USB:Device (FS)

what it's meaning and how i can solve that ?

Pavel A.
Evangelist III

> when we config the USART1 to work Asynchronous the CubeMX show me this warning :

>Partly:disabled conflict with:

>USB:Device (FS)

This means that at least one of pins required for USART1 are occupied by USB function,

As Jan advised, you need a larger MCU, such as F072. Or find another UART (USART, LPUART) for which TX and RX pins are available.

-- pa

Or use a 'F042 in a larger package, the limitation is only for the TSSOP20, AFAIK.

JW

PS. And change your username to a normal nick.