cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX with X-Cube TouchGFX Not Working

Charlie CHEN
Associate III

Hi all,

I`m trying to demo TouchGFX animation from my own board from CubeMX, and I have searched many method & document but less help,

/* My Tool Version */

TouchGFX 4.15

STM32CubeMX 6.1.1

Package: STM32Cube_FW_H7_V1.8.0

/********************************/

I debug code and find out that stuck in FontManager::setFontProvider(&fontProvider);​

Is there something I have to notice or setting before work on?

Thanks for Helping!

7 REPLIES 7
Charlie CHEN
Associate III

Hi @Martin KJELDSEN​ ​

Can you help with TouchGFX Problem?

Really Appreciate!

Martin KJELDSEN
Chief III

Yes, i can. What have you tried so far? I need to know how you got into this situation

/Martin

Hi @Martin KJELDSEN​ ,

Thanks for your reply!

1st, I build code from CubeMX and use the software​ package X-Cube-TOUCHGFX.

2nd, Import a example view in TouchGFX then Generate Code, and look back to my project and compiler Success!

3rd, My project can normally UART Transmit & Draw shape & RTOS working fine after I disable this two line, but if enable it will go HardFault.

FrontendHeap& heap = FrontendHeap::getInstance();
 /*
  * we need to obtain the reference above to initialize the frontend heap.
  */
 (void)heap;

​So on this is my issue!

Thanks againe!

Can you check your stack/heap configuration? These two lines are very important to the functionality of touchgfx.

/Martin

Do you mean startup file setting?

Stack_Size		EQU     0x1000
 
                AREA    STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem       SPACE   Stack_Size
__initial_sp
 
; <h> Heap Configuration
;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
 
Heap_Size      EQU     0x10000
 
                AREA    HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem        SPACE   Heap_Size
__heap_limit

But if I add more space, it will appear error like below!

TouchGFX_Demo\TouchGFX_Demo.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32h750xx.o(HEAP).

TouchGFX_Demo\TouchGFX_Demo.axf: Error: L6407E: Sections of aggregate size 0x100000 bytes could not fit into .ANY selector(s).

Not enough information to list image symbols.

Not enough information to list load addresses in the image map.

Is there something to config?

Update!

I try to add up and solve the error, but it get in HardFault immediately without go to main function.

Is that correct way I`m doing?

Hi @Martin KJELDSEN​ ,

Can we keeping solve problem today?

Appreciate!