2021-03-28 11:34 PM
***Settings
MCU: STM32F405RG
CubeMx: 6.2.0
CubeIDE: 1.6.0
TouchGFX: 4.16.1
Firmware Package: FW_F4 1.26.0
I am trying to port a program designed in Windows to firmware.
STM32CubeIDE was the first time I used it, so I studied it through the community.
And, I proceeded the work in the following order.
1.Select MCU via STM32Cubemx
2. Pinout setting
3. Select TouchGFX from software pack
4. generate code
5. Create 1 page with shapes in TouchGFX
6. generate code
7. Run STM32CubeIDE
8. Run Debug
For reference, I haven't written any user code.
Then the following message appeared.
TouchGFX/App/app_touchgfx.o: in function `MX_TouchGFX_Init'
undefined reference to 'touchgfx_init'
Settings related to TouchGFX appear to be a problem, but I haven't been able to find the cause.
Could you please let me know the problem?
2021-04-16 07:04 PM
2021-04-19 04:04 AM
Hi,
Could you share a screenshot of how you configured TouchGFX in your STM32CubeMX project ? Are you working with an RTOS ?
/Romain
2021-04-19 11:45 AM
Thanks Romain for getting back to me. No OS, just bare metal.
2021-04-19 11:45 AM
No OS, Just baremetal for now.
2021-04-20 03:19 AM
If you are not using an OS, you can have a look at the application template for the STM32G0 nucleo board available in TouchGFX Designer. It might help you figure out if you are missing something in the TouchGFX configuration.
Questions I should have asked earlier as well: Have you made sure you generated code again from TouchGFX Designer after generating code from STM32CubeMX ? Could you also try to clean the project within STM32CubeIDE by right clicking on the name of the project in the tree view on the left of STM32CubeIDE.
/Romain
2021-04-22 09:44 AM
1)Have you made sure you generated code again from TouchGFX Designer after generating code from STM32CubeMX ?
Yes
2)Could you also try to clean the project within STM32CubeIDE by right clicking on the name of the project in the tree view on the left of STM32CubeIDE.
Did this as well.
Checked the STM32G0 settings in the TouchGFX Designer. Nothing missing.
2021-04-22 09:51 AM
I have exported the project here: https://www.dropbox.com/s/3pqlmrgwukl1zzg/PEMF.zip?dl=0
My experience level is just C with Microchip micro's. This is my first STM32 project.
2021-04-22 04:09 PM
Romain,
After reading all day/watching videos and almost giving up hope, I created a new blank project going through Mx first to generate files and that worked. Earlier I started with the STM32cubeIDE. Maybe that was the problem? Also I remember TouchGFX or MX being updated to next version (current one that is out now). This could also have caused a problem? Or simply my file structure was wrong because generating all the files from MX, then opening it in the STM32cubeIDE gave me a very different file structure... :face_with_tears_of_joy:
2021-04-22 04:13 PM
Something else I observed too. STM32CubeMX 6.1.1 is my version when I created opened this app independently and created the working version. When I accessed the MX from my STM32cubeIDE the version was 6.2.1...