Skip to main content
Rohit.1
Associate III
April 3, 2020
Question

Gauge application working directly from touchgfx but not working when trying to run it through STM32CubeIDE. Please help to solve this issue

  • April 3, 2020
  • 34 replies
  • 5167 views

..

This topic has been closed for replies.

34 replies

Alexandre RENOUX
Visitor II
September 7, 2020

If it's not the same MCU, I highly recommend you to create a new CubeMX project with your specific MCU and reset all the parameters to match your current config with the Disco board. It's only a matter of copy pasting and this should not take too much time ;)

/Alexandre

Rohit.1
Rohit.1Author
Associate III
September 11, 2020

Where should be added hal.setButtonController(&btnctrl);

If added in TouchGFXConfiguration.cpp it is getting removed after modifying the screens in designer.

Rohit.1
Rohit.1Author
Associate III
September 18, 2020

Please help.

Alexandre RENOUX
Visitor II
September 18, 2020

Hello,

Your user file is TouchGFXHAL.cpp/.hpp. When you add things related to the TouchGFX framework you modify this file.

Here you add hal.setButtonController(&btnctrl); in the TouchGFXHAL::initialize() function.

void TouchGFXHAL::initialize()
{
 /* Initialize TouchGFX Engine */
 TouchGFXGeneratedHAL::initialize();
 
 setButtonController(&bc);
 
}

/Alexandre

Rohit.1
Rohit.1Author
Associate III
October 5, 2020

Thank You. Its working now!

I am using QSPI (MT25QL128ABA1ESE).

Pin map of My custom board for QSPI is different from that of STM32F746 Discovery board.

Now how can I make it work?

Alexandre RENOUX
Visitor II
October 6, 2020

Simply change the QSPI pins in CubeMX according to your new pin map and regenerate code. Maybe other parameters need to be changed if it is not the same QSPI as the one on the F746 Disco board.

I don't know if you did it but as mentioned previously, I recommend you to create a new CubeMX project with your specific MCU.

/Alexandre

Rohit.1
Rohit.1Author
Associate III
October 6, 2020

I have already created new CubeMX project and changed pins according to my custom board.

Is it necessary to generate the custom external loader file?

If it is then can You please provide me any example code for external loader of STM32F746G-DISCO board.

Rohit.1
Rohit.1Author
Associate III
October 7, 2020

Please help

Alexandre RENOUX
Visitor II
October 8, 2020

I cannot provide you the code for the STM32F746-DISCO because we did not do it.

Again please understand that you are in the TouchGFX thread not CubeProgrammer thread or something else.

However, you will find an external loader code example for the L476G-EVAL that is publicly available in

C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\N25Q256A_STM32L476G-EVAL

/Alexandre

Rohit.1
Rohit.1Author
Associate III
October 8, 2020

Thanks. I will try this example

Rohit.1
Rohit.1Author
Associate III
October 26, 2020

I have working project with 480*272 pixel size. Now I am trying to change pixel size to 800*480. Can we achieve this by just changing the parameters of LTDC in ioc file.

My display now flickers when contents on display changes.

How can I solve this. Please help. ​

Alexandre RENOUX
Visitor II
October 27, 2020

If you change the screen resolution I guess you are trying to change the screen itself. I also suppose from your message that you use LTDC displays. Changing the resolution is not enough. You need to match all the settings of your new screen (front porch, back porch, etc.). The LTDC clock must be higher if your screen has a higher resolution.

Please create a new thread with explicit title when your question is unrelated to the current thread subject. I will not answer anymore on this thread.

/Alexandre