2022-01-25 04:50 PM
Hi, I used the STM32F429ZI-discovery board.
And software specification are here.
STM32CubeIDE : 1.8.0
TouchGFX : 4.17.0
I imported project from TouchGFX to STM32CubIDE by referring to the following site.
https://www.youtube.com/watch?v=12KXreXaLp0
I have successfully built and complied and enabled DAC channel 2.
But, the STM32F429-discovery board LCD shows nothing.
I disabled DAC channel 2 and built and complied.
After that the STM32F429-discovery board LCD shows icon.
I don't understand what the problem is.
Could you help me How to integrate TouchGFX and STM32CubeIDE?
I want to enable DAC channel 2.
Thank you.
2022-01-26 07:03 AM
Hi´,
This video is a bit outdated. When creating a project from TouchGFX Designer with a TBS for an ST development board (in your case I suppose STM32F429 disco rev E or D) a fully configured STM32CubeIDe project will be generated under the <project name>/STM32CubeIDe folder. You just need to double click on the .project and it will open up in STM32CubeIDE.
/Romain
2022-01-26 08:05 AM
Hi, Thank you for your reply.
I know how to run it in STM32CubeIDE using the .proejct file generated by TouchGFX.
However, there is a problem with this method.
For example,
Could you tell me, how to import from TouchGFX project to the STM32CubeIDE to enable the DAC channel 2?
2022-01-26 08:43 AM
Why do you need to add the ioc file in this folder ? You can open up the generated "STM32F429_DISCO_REV_E01.ioc" with STM32CubeMX and do the modifications there. Copying it and renaming it will just be a source of potential errors and does not make it more easy. As you can see in the error message in TouchGFX it is looking for a file that does not exist since it has been moved. You can modify that command with the right path by going to the Config settings on the bottom left of TouchGFX Designer and going to the Build settings. There you can modify the Post Generate Target Command with the correct path.
/Romain
2022-01-26 05:01 PM
Hi, I try to your method "Open the "STM32F429_DISCO_REV_E01.ioc in the STM32CubeMX".
but, it's problem.
My steps:
This problem is enable the DAC Channel 2.
Enable DAC channel 2, generate code and build, nothing displayed on the LCD.
Disable DAC channel 2, icon displayed on the LCD.
Could you please tell me how to enable the DAC channel 2 and also enable the LCD?
2022-01-27 04:09 AM
I don't know much about DAC but now at least TouchGFX is properly set and works which is what I was looking at.
But I can see that it conflicts with the LTDC settings (display type RGB565) as you can see when you hover the yellow warning sign in STM32CubeMX next to the DAC. So it believe this might be the source of the issue, the warning says "partly disable conflict with LTDC" (but it is "only" a warning, not a error or cant use option/message). I don't know if you'll be able to use both DAC and the display unfortunately, or at least this display. If other users or ST employee know, please step in.
/Romain
2022-01-27 04:11 AM
Thank you for your reply.
Do you know someone who can discuss this issue?
2022-01-31 09:09 AM
@Khouloud OTHMAN, could you comment on the MX/DAC question?
2022-01-31 05:07 PM
Hi, LCD cannot be used when DAC 2 channel is enabled.
I want to use DAC 2 channel and LCD together.
Could you help me how to solve this problem?
Thank you
2022-02-11 02:34 AM
Hello @지용 한 ,
First let me apologize for the somewhat late reply.
As far as I can understand you want to use simultaneously LTDC (Display Type RGB565(16bits)) and DAC (OUT1 Configuration).
Actually this configuration can't be done through STM32CubeMX because of the conflict between LTDC Display Type RGB565 and DAC (OUT1 Configuration):
This behavior is matching the pinout configuration in STM32F429xx Data Sheet:
In fact, for LQFP144 packages (which is the case for STM32F429I-DISCO board), DAC_OUT1 signal can only be assigned to PA4 and cannot be remapped to any other pin. Same for LTDC_VSYNC signal which cannot also remapped to any other pin. Hence, the conflict between LTDC and DAC OUT1 Configuration.
Thus, this configuration can't be done.
But you can successfully use LTDC with DAC OUT2 Configuration.
Hope that this answers your question.
Khouloud.