cancel
Showing results for 
Search instead for 
Did you mean: 

Hardfault on STM32F769 using TouchGFX

pascalous
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

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,

Gaetan Godart
Software engineer at ST (TouchGFX)

View solution in original post

16 REPLIES 16
SofLit
ST Employee

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.

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?

 

pascalous
Associate II

sorry

i build ioc....not complicate

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.

No Before activating the UART, all functions well not error

Not obvious to tell you which the issue based on the information you provided. 

Need to share your project so maybe we can help 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.

thank you for your help
I put the project in a file attached.
the project is to run the eps8266 module (wifi).
cordially

Sorry your project doesn't compile it's incomplete. You need to attach the complete project. Also I don't see any TouchGFX code in your project.

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.
pascalous
Associate II

sorry for my mistake

I've just send you the complet project

thank you for help