Configuring CubeMX to generate a working STEmWin template project for the STM32F469_DISCO
In short, can't get CubeMX to generate a working template project for this board that uses STEmWin. The created project builds fine in SW4STM32, but when run, crashes somewhere inside the STEmWin GUI_Init() function.
All I'm trying to achieve is a minimal project to which I can start adding my own code, without having to build on one of the STM32Cube_FW_F4_V1.21.0 examples (which are a pain to work with because it's impossible to extract just one example project and all the necessary files, as most of the files in the project are linked files)
I created the project like so: CubeMX > File > New Project > Board selector > 32F469IDISCOVERY > Yes to initialize all peripherals in default mode. Then, enabled STEmWin graphics middleware, with DSI display interface. Checked CRC enabled, checked configuration of LTDC, DSIHOST and DMA2D was consistant with that of the STM32Cube_FW_F4_V1.21.0 firmware examples.
Since the STM32Cube_FW_F4_V1.21.0 examples work fine and the template I generate using CubeMX does not, I assume that the problem must be some difference in the configuration between the two, so my debugging efforts have been focused on trying to compare the configuration/setup steps in the CubeMX generated code to that of the working examples, but this is far from easy because the examples seem to have been generated using a completely different tool (structure of the example projects is not like that of the CubeMX generated projects). This leads to a ridiculous situation where one has to reverese engineer, as it were, the example project to be able to enter the propper configuration for the board in CubeMX (if the board templates in CubeMX can't be trusted)
I'd be grateful for any help or advice,
Thanks