STM32F746G-DISCO and UART code generation
- December 15, 2020
- 2 replies
- 1409 views
Hello,
I am working with this board using STM32CubeIDE version 1.5.0. I would like to use the USART6 or UART7 peripheral. When I configure the UART 7 or USART6 peripherals from the .ioc file and generate the code I believe that the code generator should include a section to configure these peripherals in the MX_GPIO_Init function in main.c.
I believe that there should be some code generated that would include something like:
GPIO_InitStruct.Alternate = GPIO_AF8_UART7;
and a few other lines of code. After configuring these peripherals in the .ioc file however, the corresponding code does not appear in the MX_GPIO_Init function in main.c. I could add the code manually but the problem would be that an .ioc changes would overwrite this code I believe. Am I doing something wrong? I've attached the project file.
Thanks.
