Skip to main content
biki
Associate II
May 4, 2020
Question

I have a project to display some text using touchgfx. I'm using a custom H750 board, a LCD-TFT display. My LTDC, DMA2D, SPI is working fine but when i try including touchgfx, every time the framebuffer gets zero.

  • May 4, 2020
  • 8 replies
  • 4929 views

 I'm not using rtos, my touchgfx process is included in while(1). After debugging through IAR, i've run it and below image is from the .map file. I've also checked the memory address, it is getting zero only.0693W000000WouwQAC.png

This topic has been closed for replies.

8 replies

Martin KJELDSEN
Principal III
May 4, 2020

Could you start by telling me how you created this project?

/Martin

biki
bikiAuthor
Associate II
May 4, 2020

Hi Martin,

I started this project from CubeMX for IAR. From CubeMX, i initialized the below mentioned. I can display some image or text by directly putting an array into LTDC Framebuffer start address. But i need to use TouchGFX for my design. I'm not using RTOS.0693W000000WqCIQA0.png0693W000000WqCDQA0.png

biki
bikiAuthor
Associate II
May 4, 2020

After creating through CubeMX, i opened the .part file to simply add an background in black and a text in white and i generated code.

Martin KJELDSEN
Principal III
May 5, 2020

If you pause your program and inspect the framebuffer, nothing is there?

biki
bikiAuthor
Associate II
May 5, 2020

No it is always zero. If i pause it, it is going to hardfault handler.0693W000000Wtb6QAC.png

biki
bikiAuthor
Associate II
May 5, 2020

I was commenting out CRC_Init(), Now i removed the commenting and this new fault is coming up0693W000000WtdWQAS.png

Martin KJELDSEN
Principal III
May 5, 2020

Okay. TouchGFX is CRC-locked to STM32 so commenting that out is a bad idea :)

Check your freertos mem strategy, size of stack and heap.

/Martin

biki
bikiAuthor
Associate II
May 5, 2020

I'm not using freertos at all. In the driver section you see "NO OS". I want to create this project without RTOS. I didn't change the default stack and heap size.0693W000000Wu8PQAS.png0693W000000WqCIQA0.png

Martin KJELDSEN
Principal III
May 5, 2020

Sorry, forgot you werent :) Check your fault registers to find out what kind of fault this is.

biki
bikiAuthor
Associate II
May 5, 2020

I'm getting this memory management fault. An MPU or Execute Never (XN) default memory map access violation has occurred on an instruction fetch (CFSR.IACCVIOL, MMFAR). Exception occured at PC = 0x24026b84, LR = 0x800154f . I don't have an external memory so i'm using "stm32h750xx_flash_rw_sram1.icf"

0693W000000WtdWQAS.png