2024-09-01 01:03 AM
Hi, much trepidation here as I'm new to STM32 and new to this forum too.
Looking through the entire inventory of STM microcontroller products, one could be forgiven for becoming a little confused over the 'right choice' or combination of hardware and software packages for a particular project. I am a little confused!
Here is where I am with my efforts so far. I am - as part of my project development - trying to configure a GFX01M2 X-Nucleo diplay expansion board to run on an STM32F303RE Nucleo board. Following various tutorials online, I am reasonably sure that I have produced a working hardware configuration via CubeMX v6.8.0 (I'm using this version presumably to keep compatability with X-CUBE-DISPLAY v3.0.0 Middleware). I have also configured X-CUBE-TOUCHGFX for this particular display expansion board.
My next step is to create the most basic of GUI's so I can test for a working setup of the boards. To this end, I have used the STM32G071RB as a template/substitute MCU. At this stage, I'm looking for no more than displaying some text on the display.
My intuition suggests that i need to combine parts of the generated code from TouchGFX into my (hopefully correct) project for the F303RE via CubeIDE. I'm at a bit of a loss as to how to achieve this, or, even if this is the correct approach to the solution. Can somebody help me out and point me in the right direction. Thanks!
Solved! Go to Solution.
2024-09-04 09:29 AM - edited 2024-09-04 09:30 AM
Hi Gaetan.
In answer to your question, I should have mentioned that when the X-CUBE-DISPLAY package is installed, the STM32Cube->Repository directory will contain several folders, one of which is for the NUCLEO-G071RB board. In this folder there is a HelloWorld application for both the GFX01M1 and GFX01M2 expansion boards. I'm using this example to configure the F303RE.
2024-09-05 02:33 AM - edited 2024-09-05 04:33 AM
Hello @Al-E-Bags ,
Ok, I think the confusion came from the different versions of STM32CubeMX that we are using.
In general it is recommended to use the latest version of software and firmware if possible.
Are you restricted to using an older version or can you upgrade?
"
The F303RE that I am using for the GFX01M2 display needs to be configured for the diplay as there is no support for it in TouchGFX.
"
This could be true for your version, but in the most recent version and most recent TBS (TouchGFX Board Setup), we do not use X-CUBE-DISPLAY, that is why I got confused.
It is actually not compatible anymore once you upgrade STM32CubeMX (I have tried to reproduce your issue):
"
As far as I know...and I am no expert by any means, using X-CUBE-DISPLAY via the version of CubeMX I am using is the only means I have found to be able to do this.
"
To use X-CUBE-DISPLAY the simplest way is probably through STM32CubeMX, but maybe you can download it and do it "manually".
Please, tell me if you can upgrade to the latest versions of software as it will make it easier to help you.
You won't need X-CUBE-DISPLAY at all if you upgrade.
Also, regarding the initial question about missing pins/signals, these signals are not mandatory, they are the prevent tearing, but you can add that manually, this is what we do in most TBS.
Here is the example of tearing effect signal (interrupt) for the most recent STM32G071RB-nucleo + GFX01M2 TBS :
Waiting for your answer.
Regards,
2024-09-05 03:42 AM - last edited on 2024-09-05 04:33 AM by GaetanGodart
Hi Gaetan.
"
Are you restricted to using an older version or can you upgrade?
"
No, no restriction whatsoever. I have V6.12.0 installed but was using V6.8.0 for compatibility with X-CUBE-DISPLAY which I thought I needed to have.
"
... the most recent version and most recent TBS (TouchGFX Board Setup), we do not use X-CUBE-DISPLAY, that is why I got confused.
"
Ok, I too am, or have been confused (as I mentioned in my first post on this subject). I had some issues trying to use the tgfx.exe tool (I could not get it to open correctly in a terminal window). I think this is why I abandoned the TouchGFX Board Setup process and opted for CubeMX route to try to achieve my goals.
"
Also, regarding the initial question about missing pins/signals, these signals are not mandatory, they are the prevent tearing, but you can add that manually, this is what we do in most TBS.
Here is the example of tearing effect signal (interrupt) for the most recent STM32G071RB-nucleo + GFX01M2 TBS
"
Ok. It looks like I was headed down the wrong path. I need to work out why I am having trouble using the board setup process and then, I think, we will be on the same page! I shall remove the older version of CubeMX and work only with your instruction. I'm sorry for any confusion I have caused.
Please walk me through the steps I need to set up and use TBS (TouchGFX Board Setup. Thanks for your time...and your patience :)
2024-09-05 04:37 AM
No problem ! :smiling_face_with_smiling_eyes:
I think you are also looking at the wrong guide, we have an old guide talking about tgfx.exe but this is not the process anymore.
I think your next steps are :
Don't hesitate if you have questions. Maybe it would be more appropriate to create a new topic for those specifis questions.
Regards,
2024-09-05 04:48 AM
Will do! Thanks again.