Hi,
Can we use a particular device in secure and non secure mode simultaneously without switching between modes?
Can it be done by by configuring/partitioning the address space of device ?
Thanks,
Sahil Malhotra
Diya, Thanks for reply :)
This memory region setup is done by which IP, is it TZPC or some other IP ?
Sahil
Usually the setup is done by the software running in the TrustZone on boot.
At power up, all the address space is marked as secure and will stay as such until software running in the TrustZone configures regions otherwise
Ok, but software will configure some hardware IP to partition the memory address space of device.
Like if we want to partition the DDR in secure and non secure, software program TZASC, Which H/W IP will be programmed to separate device address space ?
Thanks
depends on the design of the peripheral
if it has already multiple registers then there is nothing to configure in the peripheral since those different addresses are mapped by the security regions
if the peripheral does not have distinct registers then it will most likely need to be configured in order to support this secure/non secure access
if not, then you would need support in the driver to handle this secure non secure access
Thanks a lot Diya,
welcome !