Hard fault issue with octospi and touchgfx
- February 4, 2024
- 2 replies
- 1862 views
Hello,
I am working on a project that uses a STM32H7B3I-DK Board and an octospi memory MX25LM51245G. I also use the touchgfx library for the graphical interface.
I encountered a hard fault issue that occurs randomly during the initialization of touchgfx. Specifically, the fault occurs in the function Texts::setLanguage(0); which is called by the function touchgfx_init();.
I used the cube programmer to analyze the fault and I got the following information (See Image)
Could the problem be related to the access to the texts table, which is stored in the octospi memory. I wonder if there is a problem with the configuration or the timing of the octospi interface.
I also noticed that before I increased the frequency of the octospi, I had another issue where the octospi got stuck in an infinite loop in the HAL_Delay function. I don’t know if this is related to the hard fault issue or not.
I have attached some screenshots of the cube programmer interface showing the hard fault addresses and the octospi waiting loop also the ioc file, also I want to know how to decrease the frame buffer RAM and the RAM
Can anyone help me to solve this issues or give me some hints on what to check or try?
Thank you in advance for your help.
