Skip to main content
MSent.2
Associate II
November 11, 2022
Question

How to use internal ram of MCU on STM32H757I-EVAL Board for TouchGFX Applications?

  • November 11, 2022
  • 1 reply
  • 1772 views

Hello Everyone,

I have a code working with external RAM but I want to use internal RAM of STM32 MCU on STM32H757I-EVAL board for a TouchGFX application. I changed Buffer Location option as By Allocation on CubeMX and generated the code. It seems TouchGFX Generator made some necessary changes on TouchGFXGeneratedHAL. Build the code and and run debug. Everything seems ok but I just want to be sure if it is a correct way. When I try to increase the resolution, I get overflow error as I expect. Also I commented fmcInit2(&Error_Handler) function to see if it still works. It was not working before but works now. Thanks.

This topic has been closed for replies.

1 reply

MM..1
Chief III
November 11, 2022

Yes your steps by allocation is ok , but with this is good manage arrea in linker script.

For custom interface this isnt strict, but for example LTDC require start framebuffer on exact multiplier addr.

And comment fmcinit2 isnt good step, you skip special part for SDRAM init.

MSent.2
MSent.2Author
Associate II
November 17, 2022

Thanks @MM..1​. Actually, I am confused about linker script. Here is my memory adress definitions. I don't know which one is STM32H757XI's internal RAM. How can I learn?

I am aware of fmcinit2 is not a good step, just trying to understand if the internal RAM is used or not. 0693W00000WIeCVQA1.png

MM..1
Chief III
November 17, 2022

All RAM on image is internal . Learn you can in datasheets and reference manuals for H7.

For simply example more RAMs is here for in paralel use DMA,CPU,cores, independent bus ... But this need be managed in linker sections over your ...