2019-11-21 02:01 AM
Note: when i use the CubeMX and configure the pins for USB cdc and the UART1/2 show warning conflict
2019-11-21 09:04 AM
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
2019-11-24 02:38 AM
how we can use the Large Package from CubeMX ?
2019-11-24 05:59 AM
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 ?
2019-11-24 11:56 AM
> 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
2019-11-25 03:44 AM
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.