2020-12-24 09:30 AM
I want to use the CubeMX Plugin in STM32CubeIDE with an TouchGFX project but I'm not able to open the .ioc file inside the imported project.
Board: STM32F429I-DISCO1
My steps are:
it compiles and runs without errors.
First problem:
the .ioc file is missing inside the STM32CubeIDE-directory. But just on my PC, on my laptop TouchGFX copied the .ioc files also in the STM32CubeIDE directory. :ghost:
Solution:
Copy it
Second problem:
When I double click on the .ioc file, CubeIDE ask friendly for a migration to the latest firmware. To be safe, don't migrate.
I just activate one ADC, press safe and run and I get a compile error.
../TouchGFX/target/generated/STM32DMA.cpp:73:79: error: no 'uint32_t STM32F4DMA::getChromARTInputFormat(touchgfx::Bitmap::BitmapFormat)' member function declared in class 'STM32F4DMA'
inline uint32_t STM32F4DMA::getChromARTInputFormat(Bitmap::BitmapFormat format)
A click on the function shows me, that it is defined. So I searched for the file STM32DMA.cpp and found two files in different locations.
STM32F429I-DISCO/Application/User/TouchGFX/target/generated/STM32DMA.cpp (function missing)
STM32F429I-DISCO/TouchGFX/target/generated/STM32DMA.cpp (function implemted)
The code generation with the copied .ioc file generates a new directories and a second main.c file.
When I open the .ioc File in the root directory with CubeMX and make a config change it updates correctly and compiles without errors.
What I'm doing wrong so that I can't use the CubeMX plugin?
2020-12-27 09:46 AM
Change your steps 3 4
you create TouchGFX project and
in dir STM32CubeIDE exist .project file. Double click and project is imported in CubeIDE. IOC file too.