Solved
CubeMX 6.6.1 + STM32C0 package 1.0.0 incorrect config
- When creating project using Board Selector, Nucleo-C031C6, the incorrect MCU pinout definition is created with two errors: I2C1 is activated and pins are assigned for it and USART1 is initialized using PB6&PB7 instead of USART2 with pins PA2&PA3,which is the default hardware config.
- The generated code for USART2 with DMA has incorrect initialization order (USART2 is initialized before DMA, so DMA doesn't work). It's NOT possible to change the init order using Project Manager - Advanced Settings tab. The only way to get it in order is by editing the main.c but of course re-generating the code restores the original incorrect order.