2020-09-30 07:30 AM
Currently I am using STM32F745I-DISCO board, I am able to design any template and load directly to target board.
But My custom hardware has little different LCD driver (ILI9341 2.8inch TFT display with capacitive touch)
Solved! Go to Solution.
2020-10-07 04:30 AM
Hi,
This is my fault sorry I did not realize that the H745 was a dual core... CubeMX does not currently support dual core, it is announced for the end of the year. We will try to develop application templates after that.
I know that some people have tried to use TouchGFX with the H747 disco which is also dual core, so maybe go through the existing topics related to see what can be done. There is otherwise an old application template for the H747 disco and eval withn TouchGFX Designer that does not use CubeMX, I suppose it may be useful to see how you can work around the H745.
Concerning your second question, could you reiterate ? I do not understand it.
/Romain
2020-10-01 12:51 AM
Hi,
Did you use CubeMX to configure your custom project? You are able to run TouchGFX GUIs on your disco board?
/Romain
2020-10-01 04:42 AM
Hi Romain,
Thanks for your Quick Reply.
Did you use CubeMX to configure your custom project? You are able to run TouchGFX GUIs on your disco board?
No, I have chosen template from Touch GFX designer for DISCO board.
Yes, I am able to run the GUI to target board directly from Touch GFX designer.
Regards,
Stalin
2020-10-01 05:43 AM
Which application template did you use? I am not aware of a F745I disco board application template. I suppose you are talking about the H745? This one also does not have an application template within Designer.
2020-10-01 05:48 AM
Yes, I struggled a lot to find the same, but some how H750B-DK template is working as the chip is same in both the boards.
Board : STM32H745I-DISCO (Sorry I mentioned wrongly in my first query)
But even STM32H745I-DISCO is not found in the designer hence am using STM32H750B-DK and is working fine with designer.
2020-10-01 06:45 AM
That makes sense then. The H750 and H745 disco boards are very similar, the difference is that the H750 is considered as "flashless" (it only has 128k of internal flash). There are no application template within Designer for the H745 disco, so you unfortunately really do need to create a project from scratch through CubeMX with the right MCU. Follow the board bring up documentation to configure the MCU, use the H750 dk template to get some inspiration for the sections that are the same. Then you will have to enable TouchGFX Generator through the additional software option (and configure it). TouchGFX will work with Keil, for that you need to set the toolchain to MDK-arm in the project manager section and generate code.
You will now have generated the files required to configure a working TouchGFX application.
4.Yes this section is for when you will have finished configuring your hardware/MCU. So do not focus on that for now
2020-10-06 07:56 AM
Hi Romain,
I have created the CubeMX project with STM32H745XI MCU as suggested in previous reply, basic project creation is done.
But unable to add additional software to configure touchgfx. It says "This Pack Can not be used on the Selected MCU". It seems the 745XI MCU it self does not support touchgfx integration in CubeMX.
Where as I can find this option for 750B-DK board and MCU selection. How to get below combo working ahead
CubeMX Project creation + Keil IDE + TouchGFX designer in one go ?.
2020-10-07 04:30 AM
Hi,
This is my fault sorry I did not realize that the H745 was a dual core... CubeMX does not currently support dual core, it is announced for the end of the year. We will try to develop application templates after that.
I know that some people have tried to use TouchGFX with the H747 disco which is also dual core, so maybe go through the existing topics related to see what can be done. There is otherwise an old application template for the H747 disco and eval withn TouchGFX Designer that does not use CubeMX, I suppose it may be useful to see how you can work around the H745.
Concerning your second question, could you reiterate ? I do not understand it.
/Romain
2020-10-19 04:11 AM
Hi Romain,
Besides I have done as below to bring up touchgfx on STM32H745I-DISCO.
1. Created the basic Cubemx Generated (Keil MDK)project with necessary clock settings for STM32H745I-DISCO
2. Added code for SPI Flash, LTDC, FMC for SDRAM, DMA2D, CRC etc for the same project and tested with Basic Single Layer Framebuffer with BMP image and working fine.
3. Added FREERTOS Integration and created the default task with LED Blinking. Both LCD and LED are working fine.
4. Created Touch GFX Designer project with STM32H750B-DK (is almost similar to STM32H745I-DISCO) and copied the Touchgfx folder itself from that project to my project created till step 3. and cleared all compilation errors by mimicking the H750 Project.
So far everything went smoothly.
Now, I do not understand the connection (LCD Framebuffer to touchgfx) between LCD and GFX functions. I have simply called touchgfx_init before the RTOS scheduler is started. Still my LED and LCD Bmp works fine. But the GUI Generated from TOuchgfx is not displayed (Hope there needs to be some framebuffer connection missing.) on the LCD.
I have further investigated and found that, touchgfx is getting hard fault after executing backPorchExited. The function tick is creating problem. Can you advise what could go wrong here ?
enableLCDControllerInterrupt();
enableInterrupts();
OSWrappers::waitForVSync();
backPorchExited();
Can you please advise me on this ? Also kindly reply as sooner as possible.
Regards,
Stalin