2026-01-22 5:45 AM
Hello, i'm trying to using mce encription for external flash. I have the stm32h7s7-dk eval board.
my mce configuration for the external memory init;
my mce configuration for the boot main
I followed the tutorial series https://www.youtube.com/watch?v=JxhKmVUB2Ws&list=PLnMKNibPkDnFQXYK0ztHV9iMVS6EAtKpD&index=10. And i tried allthing and i applied successfully at my eval board. But the mce is so different. In the tutorial the instructor used different board hence the board is using mce1. But i'm using the mce2 because the xspi2 connected mce2. And the mce2 couldnt support the aes.
My memory write and memcopy methods;
key and other variables
Decrypted result (wrong values, it must be start from ram base)
encripted file;
Could you help me ?
2026-01-23 5:43 AM
Hello @neset;
I recommend you to look at MCE_NoekeonEncryptDecryptData example may help you. This project provides a description of how to encrypt and decrypt data from external memory (NOR). The encryption/decryption of the data is performed on the fly using the MCE IP.
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.
2026-01-23 6:41 AM
Hello KDJEM,
I tried to move the flash xspi2 -> xspi1 but it doesnt change anything in aes with mce1, and i closed the mce peripheral and i tried to write some things via these EXTMEM_MemCopy, memory_write but methods.
The methods defined as weak normally and the instuctor edited these codes for dma transfer mapped mode. (I added the codes as picture). But i saw only 0x00 at the flash when i use these methods.
By the way i tried to all