57 views
in Getting started by

Hi, 
I'm using STM32H743IGTX controller with a 640 x 480 display. I have configured ltdc and external sdram(8 mb) and also able to view image in the display. Morever, If i try to use embedded wizard i'm getting hard fault while using text. I have attached the screenshot of the call stack.

Thanks & regards,

Abubakkar Siddiq I

 

1 Answer

0 votes
by

Hello,

I assume that there happens some memory corruption within the memory area managed by the Heap Management.

Typically, the following reasons can cause such a situation:

1.) SDRAM is not working properly, timing is not correctly or refresh does not work properly => Please ensure that the SDRAM is working correctly by using our SDRAM memory test.

2.) Memory becomes corrupted because of accessing Embedded Wizard GUI application from several threads or tasks. Please be aware that the entire user interface application has to be executed in the context of one thread - the GUI thread. For other purposes (e.g. receiving data from a network, accessing some hardware drivers,...) you can create as many worker-threads as you need. See also Avoid multithreading.

3.) Overwriting memory, e.g. within your own decoded bitmaps when using Extern Bitmap interface or incorrect access of strings within native code.

I hope this helps...

Best regards.

Manfred.

by
Hi Manfred,
SDRAM seems to be working fine. when I use the image without text it doesn't produce hardfault.

 

Thanks & regards,

Abubakkar Siddiq I
by
Hi,

does the same example work on the STM32H743 Evalboard?

Best regards,

Manfred.
by
Hi,

I dont have an eval board right now. I'm working on bare metal environment. I found out the code gets stuck in this line.

/* wait until DMA2D transfer is done */

while( TransferInProgress )

;
dma2d irqhandler is not hit after it gets stuck in this line.
by
I thought you got a hardfault and not an endless waiting for an interrupt. Can you please clarify this?
by
Hi,
I am getting hardfault while using text and image. while using an rectangle i am able to view the output. but if i draw a icon inside the rectangle it is getting stuck at endless loop. Sorry for the inconvinience.
by
Hi,

there are two different erroneous behaviors - depending on the graphics design. I still believe that the system configuration (including SDRAM) does not work properly. Please make the recommended SDRAM test - especially make a long waiting time between writing the test pattern and reading the test pattern.

Best regards,

Manfred.
by
Hi,

I found out the issue is regarding External flash. I just disabled External Flash so now its working fine. Thanks for your cooperation
 

Regards,

Abubakkar Siddiq I

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...