STM32CUBEMX code generation and pin configuration clarification
I noticed that some of the pins are configured in MX_GPIO_init() while others are not. They seem to have been configured somewhere else, so I'm not sure where to check if my pins were set properly.
Also, some of the pin configurations are not updated after manually changing the pin outs. For example, SPI2_NSS_Pin, which is "#define SPI2_NSS_Pin GPIO_PIN_11" in main.h, is still configured as "GPIO_PIN_11" in MX_GPIO_init() despite the fact that I changed it to another pin in STM32CUBEMX.
That said, I am quite confused on how the code generator works and how the pins are configured. Also, is it better to use stm32cubemx to generate code or would it be easier to manually configure everything from scratch? Thanks for the help