2021-03-18 12:46 AM
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!
2021-03-18 12:49 AM
Hi @Martin KJELDSEN
Can you help with TouchGFX Problem?
Really Appreciate!
2021-03-18 01:10 AM
Yes, i can. What have you tried so far? I need to know how you got into this situation
/Martin
2021-03-18 01:19 AM
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!
2021-03-18 01:29 AM
Can you check your stack/heap configuration? These two lines are very important to the functionality of touchgfx.
/Martin
2021-03-18 01:33 AM
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?
2021-03-18 01:42 AM
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?
2021-03-19 12:57 AM
Hi @Martin KJELDSEN ,
Can we keeping solve problem today?
Appreciate!