Skip to main content
Associate
September 9, 2024
Solved

Hardfault on STM32F769 using TouchGFX

  • September 9, 2024
  • 5 replies
  • 3548 views

hi

I use touchgfx 4.24 , STM32CubeIDE 1.16 and STM32cubeMX 6.12

I do a project with touchgfx, I import it on cubeide, no problems to launch it on the card (STM32F769I-DISCO)

I make a modification ( uart 5) on the file ioc and the bilioteque (newlib rentrand) as requested by CubeMX. When I launch after compilation I have an error, of type MemManage_Handler
I do not see mistake that I could have comeate.
Who can help me?

thank

Best answer by GaetanGodart

Hello @pascalous ,

 

I would guess it is an issue with FreeRTOS actually.

Can you try to activate your UART5, but when do not fix the warning about NEWLIB_REENTRANT, when STM32CubeMX asks you "Do you still want to generate code", just click "Yes".

 

Regards,

5 replies

mƎALLEm
Technical Moderator
September 9, 2024

Hello @pascalous and welcome to the community,

Check the MPU config and if you declared something in a memory region that MPU prevents that access.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
pascalousAuthor
Associate
September 9, 2024

thank for reply

I just remade a project, I neither is put any personal code. I put uart5 in assynchrone mode, I complicate the file ioc and I have the same problem. uart5 and mpu have they the same memory zone?

 

mƎALLEm
Technical Moderator
September 9, 2024

Before enabling the UART, did you get the same behavior?

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
pascalousAuthor
Associate
September 9, 2024

sorry

i build ioc....not complicate

pascalousAuthor
Associate
September 9, 2024

sorry for my mistake

I've just send you the complet project

thank you for help

 

 

mƎALLEm
Technical Moderator
September 10, 2024

Hello @pascalous and thank you for the sharing.

I reproduced the behavior and seems doesn't have a link to USART activation but to the TouchGFX task itself.

Attached your project where I commented out all the code not related to the TouchGFX, increased the Stack size, optimization to None. Still having the issue. Checked MPU config, I don't see any issue 

I think better to move this topic to TouchGFX forum so TouchGFX team can help you.

@GaetanGodart, could you help on this topic?

Thank you.

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
pascalousAuthor
Associate
September 10, 2024

Thank you for your return, SofLit

pascalousAuthor
Associate
September 20, 2024

hi

update perform the issue persists
I can’t use my STM32F769I-DISCO card with wifi module and touchgfx
Is there another method?

 

GaetanGodart
GaetanGodartBest answer
Technical Moderator
September 23, 2024

Hello @pascalous ,

 

I would guess it is an issue with FreeRTOS actually.

Can you try to activate your UART5, but when do not fix the warning about NEWLIB_REENTRANT, when STM32CubeMX asks you "Do you still want to generate code", just click "Yes".

 

Regards,

pascalousAuthor
Associate
September 25, 2024

It works, thank you for your help

GaetanGodart
Technical Moderator
September 25, 2024

I am glad it fixed your issue! :smiling_face_with_smiling_eyes: