CubeMX in its current state is hard locked fo F4 and F7. We're working on a solution to remedy that.
It's a little difficult to tell you exactly what _you_ need to do, but generally, if you inspect the H7 Application Template we have from the designer you will see how to integrate the two "worlds" until CubeMX integration can be improved. Generally about the way the Application templates (non-cubemx) are structured
1) BoardConfiguration.cpp has two methods:
- hw_init() - This is our version of main() in CubeMX generated projects.
- touchgfx_init() - Initializes touchgfx - This is the same whatever method you choose to follow.
2) main.cpp
- This is where we call hw_init(), touchgfx_init() and set up an OS Task to run the main event loop of touchgfx (HAL::getInstance()->taskEntry())
Check out the application template and let me know!
/Martin