cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7S7L8 MCE unable to write

Hamady
Senior

Hello everyone,

I'm working on STM32H7S7L8 custom board with same architecture as the DK board ( for XSPIM)

The mcu and flash is working fine i can uplaud a boot/appli without issue (touch gfx + lwip work so the hardware is fine)

But working on the FW 1.3.0 I'm unable to make MCE work.

I followed step by step the MCE workshop : https://github.com/ST-TOMAS-Workshop/stm32h7s_workshop/blob/main/3_external_memory_encryption/external_memory_encryption.md

But when I build the extmem loader and try to uplaud the code I got :

Weird thing is that i already made MCE work on the DK board without issues but here it is not possible

Log output file:   C:\Users\hdia\AppData\Local\Temp\STM32CubeProgrammer_a46772.log
ST-LINK SN  : 002600493234510936303532
ST-LINK FW  : V3J16M7B5S1
Board       : STLINK-V3SET
Voltage     : 3.31V
SWD freq    : 8000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x485
Revision ID : Rev Y
Device name : STM32H7RSxx
Flash size  : 64 KBytes (default)
Device type : MCU
Device CPU  : Cortex-M7
BL Version  : 0xE3



Opening and parsing file: ST-LINK_GDB_server_a46772.srec


Memory Programming ...
  File          : ST-LINK_GDB_server_a46772.srec
  Size          : 1019.57 KB 
  Address       : 0x90000000


Erasing memory corresponding to segment 0:
Erasing external memory sectors [0 133]
Erasing memory corresponding to segment 1:
Erasing external memory sectors [512 633]
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:32.050



Verifying...




Error: Data mismatch found at address  0x90000001 (byte = 0x00 instead of 0x30)


Time elapsed during verifying operation: 00:00:01.517


Error: Download verification failed


Encountered Error when opening C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.300.202508131133\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.

Hamady_0-1770825023691.png

Hamady_1-1770825054492.pngHamady_2-1770825085354.png

Hamady_3-1770825107239.png

 

 

Here the Cube MX settings that i used to make it (SBS also enabled in cube programmer / Cube MX ) and 192kb of DTCM setup

Do you have an Idea to make it work.

Thanks 

 




3 REPLIES 3
Imen.D
ST Employee

Hello @Hamady 

Perform a full chip erase, also make sure that your board has stable power supply.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Hamady
Senior

Hi @Imen.D 

 

The board has a good power supply since i can uplaud a code to the flash without MCE

 

Thanks

Hamady
Senior

Hi @Imen.D 

I tested the code on discovery board so hardware is fine.

It really seems that the new firmware pakage create a isssue with MCE . i created a new proejct and the EXTMEM Loader works only without MCE. 


Here my project 

Thanks