cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7RS MCE

Hamady
Associate II

Hello,

I have a question about the usage of the MCE in the STM32H7RS

I have the STM32H7S78-DK board

I'm starting with a project that show images to LTDC with images on the flash (copy with DMA2D) and the framebuffer is on the PSRAM.

My project works with this tuto to get the flash running : https://github.com/ST-TOMAS-Workshop/stm32h7s_workshop/tree/main/1_external_memory

And this one to have MCE working : https://github.com/ST-TOMAS-Workshop/stm32h7s_workshop/tree/main/3_external_memory_encryption

The project seems to run well beacause my led blink like it should but !

defining my images in "const uint16_t ecran_start" now (since MCE is enable) gives me black images (in debug session i see the variable in Expressions correctly) .
Removing the const the images shows but by internal ram will be filled very quick
Putting the image in my PSRAM section it is glitched on the screen
My framebuffer is in PSRAM and works because DMA2D show a red rectangle that i programmed (DMA2D R2M)
Putting framebuffer into internal RAM doesn't fix issues
Is there special things to setup about memory usage with MCE ?

Thanks




12 REPLIES 12
KDJEM.1
ST Employee

Hello @Hamady,

 

I'm under investigation.

When I tested your project, I got an error message from debugger back end.

Did you configure the memory in memory mapped mode before using the MCE?

I didn't find the memory mapped configuration in your code.

Thank you.

 

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hamady
Associate II

hello @KDJEM.1 

This is normal that i dont use memory mapped mode 

my flash is configured as the workshop (XIP and after MCE ) of the H7S7 suggested so no memory mapped.

And my PSRAM doesn't need MCE as we just need the flash to be encrypted 

Tell me if you need more info 

Thanks 

Hamady
Associate II

Hello,  @KDJEM.1 

Do you have any news about the issue.

Thanks