Skip to main content
gbm
Lead III
October 27, 2022
Solved

CubeMX 6.6.1 + STM32C0 package 1.0.0 incorrect config

  • October 27, 2022
  • 3 replies
  • 2739 views
  1. 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.
  2. 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.

This topic has been closed for replies.
Best answer by Semer CHERNI

Hello @gbm​ 

I was able to reproduce the behavior concerning the default settings.

This problem is raised internally to be reviewed. I'll keep you posted with the updates.

Internal ticket number: 137942 (This is an internal tracking number and is not accessible or usable by customers).

Semer.

3 replies

Technical Moderator
October 31, 2022

Hello @gbm​ 

Thank you for rising this up.

I added my colleague @Semer CHERNI​ from CubeMx team, as he can help you on your issue.

Regarding point2: please refer to this post  MX_DMA_Init order in the main.c file generated by STM32CubeMX, How to fix?

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
gbm
gbmAuthor
Lead III
October 31, 2022

After removing FunctionListSort line, the correct order is set and the generated project becomes usable but it is still not possible to change the order of init functions in AdvancedSettings.

So, the problem is MOSTLY solved. Thanks.

Anyway, the MCU package and maybe CubeMX still need fixing.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Semer CHERNI
Semer CHERNIBest answer
ST Employee
October 31, 2022

Hello @gbm​ 

I was able to reproduce the behavior concerning the default settings.

This problem is raised internally to be reviewed. I'll keep you posted with the updates.

Internal ticket number: 137942 (This is an internal tracking number and is not accessible or usable by customers).

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.