cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] STM32F469I-Disco and TouchGfx 4.20.0. I bought STM32F469IDisco. Version MB1189-F469NIH6-B08-A222300689. When I try start new project with TouchGFX, result is black screen.

SPrik
Associate II

I tried both "Run Target" from TouchGFX Designer, and Cube IDE (Cube MX) compile / debug result is black screen. Compile, debug and run is without errors.

1 ACCEPTED SOLUTION

Accepted Solutions
Osman SOYKURT
ST Employee

Hello,

A new TBS is now available on TouchGFX Designer 4.21.0 for this STM32F469I-Disco $AU1 revision (B08)

0693W00000Y7iYHQAZ.png 

It should resolve the issue with the black screen.

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX

View solution in original post

36 REPLIES 36
Osman SOYKURT
ST Employee

Hello SPrik,

Have you tried to run your project on debug mode with STM32CubeIDE ? What happens if you run your app step by step ?

Can you try to run an example on your board from TouchGFX Designer? (Animated Image Example for instance)

0693W00000UoluuQAB.pngThen send us the logs when you press run on target.

(You might need to plug-unplug your board from your computer after the binary is uploaded on your STM32F469I-Disco board).

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX

Hi Oskts,

Thanks for answer.

Simply step by step:

1. Start TouchGFx 4.20.0

2. Click on Example – select Animated Image

3. Click on Select Board

4. Select STM32F469i Discovery Kit

5. Click On Generate Code

6. Log – Finished with Done – no errors

7. Click on Run Simulator – working witout problems

8. Click On Run Target- compile without problems, finish with Done

9. Unplug / Plug – Screen remain black.

10. Open folder TouchGFX – Folder MyApplication

11. Click On „STM32F469I-DISCO.ioc“

12. Start CubeMX

13. System open alert window

„This project was setup with STMCubeMX V6.5.0 – using FW_F4 V1.27.0

STMCubeMX V6.6.1 can work only with STM32Cube FW_F4 V1.27.1

14. Click on Migrate

15. Click on „Generate Code : STMCubeMX open warning:

„- The USE_NEWLIB_REENTRANT must be set in order to make sure that newlib is fully reentrant.

The option will increase the RAM usage. Enable this option under FreeRTOS > Advanced Settings > USE_NEWLIB_REENTRANT“

16. Select USE_NEWLIB_REENTRANT – Enabled

17. Generate project – without problems

18. Successfully imported into CubeIde

19. Project Build All

20. Start Debug – screen is black.

21. The first problem is in :

When system call „MX_LTDC_Init();“

Call stack:

0693W00000VO8w6QAD.png (stm32f4xx_hal_dsi.c)

while ((hdsi->Instance->GPSR & DSI_GPSR_CMDFE) == 0U)
 
 {
 
 /* Check for the Timeout */
 
 if ((HAL_GetTick() - tickstart) > DSI_TIMEOUT_VALUE)
 
 {
 
 return HAL_TIMEOUT;
 
 }
 
 }

  This function „MX_LTDC_Init�? take almost 2min time.

And next: 

System is freezing in:

  

(STM32TouchController.cpp)

void STM32TouchController::init()
{
 
 /**
 
 * Initialize touch controller and driver
 
 *
 
 */
 
 if (BSP_TS_Init(800, 480) == TS_OK) 
 {
 
 bsp_ts_initialized = true;
 }
 
 assert(bsp_ts_initialized);
 
}

Its invoke:

(syscalls.c)

void _exit (int status)
 
{
 
 _kill(status, -1);
 
 while (1) {} /* Make sure we hang here */
 
}

Call stack:

0693W00000VO8xwQAD.png

Best regards Stanislav P.

SPrik
Associate II

For complette info:

Attachments Logs:

  • Run On Target
  • CubeIde - Build
  • CubeIde - Debug

Ebby
Associate II

I am facing the same issue. I guess this happens with the Rev C boards. Apparently the board has a new screen on it with a new NT35510MH lcd driver but the same old FT6336G touch controller.

As a part of the touch controller initialization,

"I2C1_Read" function in stm32469i_discovery.c calls the "HAL_I2C_Mem_Read" which returns HAL_ERROR

I am not sure what the underlaying issue is.

SPrik
Associate II

Hi Ebby,

thanks for answer, I also suspect HW, but in this time I have not solution.

St.

SPrik
Associate II

Hi Ebby,

I have found old LCD - ST Part - B-LCD40-DSI1 in my office. Try to replace mounted LCD on 469i-Discovery with old LCD and everything working. In this time I will continue with configuration new board + old LCD. I hope, that ST remove this problem in new TOUCH-GFX version.

St.

Ebby
Associate II

Hello @SPrik​ 

Thanks for letting me know. Unfortunately I do not have an older version of the LCD screen. I guess I will wait for ST to provide a fix for this problem.

SPrik
Associate II

Farnell:

Item: B-LCD40-DSI1

OrderCode: 2664590

"Littlebit expensive solution."

Osman SOYKURT
ST Employee

Hello SPrik and Ebby,

Thanks for your investigation! We're currently trying to debug it. We do not have this particular revision here for the moment (I've ordered it) but we're facing similar issue with revision B-01 and B-08. I'll get back to you when I'll have more info about it.

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX