2024-11-12 03:02 AM
Hi,
I am using STM32H7S78-DK Board, as size of the internal Flash and Internal Ram memories are very less, I have added external flash memory and the address in the linker file of the Application mode. I also enabled XSPI2 and External Memory Manager (STM32CubeMX) in the Boot Mode. And LTDC, Touchgfx in the Application Mode. And the data that I am storing in the Linker file was fine (By adding the segments in the linker files, the data overflowed errors were cleared). But the issue is that the debug is not successful.
I'm attaching the project which I've done and also the screenshot of the Debug error which I was getting while debugging. Please kindly go through the linker files in the Boot and Application Modes and also the Initialisation part of the peripherals. And please guide me what changes needs to do to store my images that I've taken in the Touchgfx Designer in the external flash and to display the image in the STM32H7S78-DK.
Thank you...
2024-11-12 05:21 AM
Have you reviewed the ST examples made specially for STM32H7S with external flash?
2024-11-12 07:38 AM - edited 2024-11-12 07:39 AM
Hello @Shivani ,
What is the process you use when flashing your board?
When you get to that breakpoint, can you press on the button to reset your board and relaunch the debug :
You can look at our TBS (TouchGFX Board Setup) to see how we managed the external memory on the STM32H7S7-DK.
Also, you can have a loot at our external flash guide .
I hope this helps! :smiling_face_with_smiling_eyes:
If this comment or another one answers your question, I invite you to select it as "best answer".
Regards,
2024-11-13 01:02 AM
Hello @GaetanGodart
I have pressed the button to reset the board and relaunch but still the problem is not solved (i.e. debug is not successful). I have added the external flash addresses in linker file which I have shared earlier. And also initialised the XSPI2 but not writing any commands for write and read into the flash memory. Can you please check to the project file which I've shared earlier. And please guide me what changes needs to do to store my images that I've taken in the Touchgfx Designer in the external flash and to display the image in the STM32H7S78-DK.
Thank you...
2024-11-15 07:19 AM
Hello @Shivani ,
I have tested with a board.
Here are the steps :
When I debug the appli, first, I get stuck on a breakpoint :
Then I click to reset the board and now it works :
Can you try to reproduce these steps?
Regards,