Maximum size of encrypted code that can be kept for OTFDEC ?! STM32L562QE
I have external flash of size 1MB. I want to explore the possibility of having encrypted code of size 500kb in external memory and run it through OTFDEC feature of STM32L562QE.
From the reference manual I saw that provision of 4 different OTFDEC regions is given ( 4 different portions in external flash with 4 different crypto keys if required). My use case is I just want a single key to encrypt whole of my code thus defining a OTFDEC region of size 500kb (is it feasible ?? )
The following was also provided in the manual :
Granularity for the region determination is 4096 bytes.
Note:Although OTFDEC does not prevent region overlapping it is not a valid programming and it should be avoided by application software.
OTFDEC can decrypt incremental or wrap bursts only if they do not cross the 4096-byte aligned address boundaries.
Does above statements have any impact in my use case ? how should I handle this ? Can some one guide please
