2024-09-09 12:43 AM
Hello,
I have created custom board with STM32H723 and a external qspi memeory. I can store image data on qspi and showing them on lcd screen. So my external flash its working fine. When i use textarea programs go to Memmanagehandler and stuck. If i try internal flash for textarea program doesnt stuck but nothing show up on the screen.
I use CUBEIDE 1.16 and Touchgfx 4.23
Can anyone help me.
Solved! Go to Solution.
2024-09-10 11:14 AM
Hello ,
Sorry for the late reply,
Where is this line "currentLanguageTypedText = typedTextDatabaswArray[id];" ? this line inside Texts.cpp.
Actually searched many forums. And this problem was solved with the help of a Korean friend.
The problem was caused by the mpu (memory protection unit) not being configured correctly.
Thank you for your help.
2024-09-09 02:03 AM
Hello @alper ,
Can you explain more in detail this sentence please : "When i use textarea programs go to Memmanagehandler and stuck.".
Can you also share the files related you QSPI and to how you change your TextArea value?
Also, does it work on simulator?
Regards,
2024-09-09 03:10 AM
I add a Textarea to the screen with touchgfx designer.
When debug the code step by step, calling the MX_TouchGFX_Init();
after that when debugger came to
currentLanguageTypedText = typedTextDatabaswArray[id]; line.
And than goes to MemManage_Handler.
By the way, firstly initaliaze QSPI and memory mapped mode. Then initaliaze MX_TouchGFX_Init(); .
I dont change the Textarea value
2024-09-09 03:59 AM
Forgot mention , yes does it work on simulator.
Best regards.
2024-09-09 07:16 AM
The MemManage_Handler can be reached when :
The most common cases happens because :
In your case, I would assume the value of ID is bigger than the size of the array so you access memory outside of the array.
Where is this line "currentLanguageTypedText = typedTextDatabaswArray[id];" ?
You should check the typed text database throughout the execution of your program and see if it changes.
Regards,
2024-09-10 11:14 AM
Hello ,
Sorry for the late reply,
Where is this line "currentLanguageTypedText = typedTextDatabaswArray[id];" ? this line inside Texts.cpp.
Actually searched many forums. And this problem was solved with the help of a Korean friend.
The problem was caused by the mpu (memory protection unit) not being configured correctly.
Thank you for your help.
2024-09-11 05:01 AM - edited 2024-09-30 03:22 AM
Hello @alper ,
Were you able to solve your issue?
If not, can you check the value of "id" and what is inside typedTextDatabaswArray right before the fault?
Regards,