2019-05-13 12:55 AM
Hello,
I was searching this forum and already found lots of help, but unfortunately I'm stuck to this issue. The Guide refers to CubeMX 5.0 and some things seem to be corrected since this version i.e. C/C++ combi project... but still CubeMX does not generate an Atollic project including TouchGFX that does compile and so far I was not able to fix it. Actually this is bit frustrating as TouchGFX together with the other stuff is all part of STM and promised as working solution...
So Maybe someone here has done this succesfully and would be so kind to share the .ioc file or give an updated step by step manual for the new software release as I'm sure I just miss some tiny things...
Thanks in advance and best regards
Stefan
PS: Without use of TouchGFX I can create a working project with CubeMX and also when I use the TouchGFX standalone and flash the Board from the Designer it works.
Solved! Go to Solution.
2019-05-13 06:05 AM
I don't think you need to post anything on the CubeMX board if you're thinking about making someone aware of these issues. They're already posted to internal bug tracking.
Let me know how far you get with that guide. Once you remove the "postGenerate" script from .touchgfx you should be able to generate TouchGFX files which would then get picked up by CubeIDE.
/Martin
2019-05-13 10:28 AM
Maybe it is still from interested for someone: I got it working with a 32F469IDISCOVERY Board, CubeMX 5.2, TouchGFX 4.10.0 as Atollic Project.
Here are the steps:
If Display shows crap:
/* Activate XRES active low */
HAL_GPIO_WritePin(GPIOH, GPIO_PIN_7, GPIO_PIN_RESET);
HAL_Delay(20); /* wait 20 ms */
/* Desactivate XRES */
HAL_GPIO_WritePin(GPIOH,GPIO_PIN_7, GPIO_PIN_SET);
/* Wait for 10ms after releasing XRES before sending commands */
HAL_Delay(10);
Hope this helps someone.
Br. Raphael
2019-05-14 01:31 AM
Hi Raphael,
thanks for this manual. It looks like the perfect combination of the Guide for CubeMX 5.0 and the latest info from Martin here as I guess the Exclusion from BUILD is the same for cubeIDE and Atollic.
I just did all your steps and it builds successfully - screen stays black on my STM32746 DISCO tough, but this I can handle hopefully quite fast.
Cheers
Stefan
2019-05-14 01:39 AM
Hi Stefan
Nice to hear that it built sucessfully at yours.
I had initially the same issue with the black screen. In my case, CubeMX (or maybe as result of a fault of mine) didn't implement the LCD reset routine, so I had to do this manually. However it looks like your board haven't a dedicated I/O for the LCD Reset.
Br. Raphael
2019-05-14 01:43 AM
Hi Raphael,
Reset should be PJ15 (DSI_RESET) and reset routine is iplemented - just need to check if it is once called at all
edit: implemented but never called... I keep on fixing ;)