cancel
Showing results for 
Search instead for 
Did you mean: 

Debug issue in STM32H7S78-DK when I have added external memory segments in the linker files.

Shivani
Senior

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...

4 REPLIES 4
Pavel A.
Evangelist III

Have you reviewed the ST examples made specially for STM32H7S with external flash?

 

GaetanGodart
ST Employee

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 :

GaetanGodart_0-1731425802972.png

 

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,

Gaetan Godart
Software engineer at ST (TouchGFX)
Shivani
Senior

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... 

Hello @Shivani ,

 

I have tested with a board.

Here are the steps :

  1. create a new project
  2. create a gui for your project
  3. generate code in TouchGFX Designer
  4. open the STM32CubeIDE project in the STM32CubeIDE folder
  5. build the boot
  6. flash (debug) the boot
  7. build the appli
  8. flash the appli (debug)

 

When I debug the appli, first, I get stuck on a breakpoint :

GaetanGodart_0-1731683811925.png

 

Then I click to reset the board and now it works :

GaetanGodart_1-1731683824452.png

 

Can you try to reproduce these steps?

 

Regards,

 

 

Gaetan Godart
Software engineer at ST (TouchGFX)