Can't get example working in a STM32CubeMX project
I have just read back my question and it is not clear, sorry. I will clarify.
I want to set up a clean STM32CubeMX project which only uses the peripherals I configure in STM32CubeMX. In that new project, I want to use code from the example, for instance the following line:
BSP_LED_Init(LED1);
The problem is that LED1 causes an error which I have not yet successfully fixed as it appears in many of the source and header files.
In the new project I have used STM32CubeMX to set up the chip as an STM32412G-Discovery board. I hoped that it would just work, but it doesn’t. A step by step tutorial on getting this process to work would be really useful...