Skip to main content
Karan Kolhe
Associate II
Dec 3, 2019 7:41 AM UTC
Question

STM32f767Zi freezes when using strings

I am using freeRTOS , there are two threads one is for TouchGFX gui task and other for my main task.

I have given 4096*4 bytes of stack for each task and heap size in freeRTOS config is 65536

Now, when I declare a string controller freezes. I want to use strings to manipulate .Ini file . This looks like a memory overflow or something

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
Dec 3, 2019 7:56 AM UTC

Perhaps you could use a debugger or something?

Instrument the code, and output useful diagnostics if it gets a Hard Fault or ends up in the Error_Handler routine.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Ozone
Principal
Dec 3, 2019 7:58 AM UTC

> Now, when I declare a string controller freezes.

How do you "declare strings" ?

"Freezes" is not very helpful. Use a debugger (or instrumentation) to check what fault is really happening, and where.

Us people on the other end have no magic crystal balls.