No texts shown on the screen after CubeMX generating code on STM32G071 Nucleo with TouchGFX
- March 16, 2021
- 4 replies
- 3545 views
I made a copy of a woking project becase I wanted to make some modifications, then I enabled UART1 on CubeMX and re-generated the files from CubeMX.
Then I get some errors building: "error: 'RCC_CFGR_SWS_HSE' undeclared", but deleting the system_stm32g0xx.c file and regenerating code generate the correct file.
Then I could flash it but I found a visualization problem, all the texts that where on the project don't show up on the display, I can see the widgets and the code is working, but there are no texts...
Used CubeMX v6.2, CubeIDE v1.6, TouchGFX v4.16 and STM32G071 Nucleo.
CubeMX: X-CUBE_TUCHGFX v4.16, STM32G0 v1.4.1.
I attached the original working project created in TouchGFX designer with a template for the STM32G071 NUCLEO, and then the one I changed the uart and regenerated the code with CubeMX.