SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
FILE: dcsm_ex1_secure_memory_partition.c
This example demonstrates how to configure and use DCSM. It configures the 1st Zone Select Block in the OTP to change the zone passwords and allocates LS0-LS3 to zone 1 & LS4-LS7 to zone 2. Zone1 | Zone2
|
LS0-LS3 | LS4-LS7
|
In this example, zoning of memories is done by the OTP programming whose values are configured in dcsm_ex1_f28p65x_dcsm_zxotp.asm while the securing functionalities are done through this file. It writes some data in the zones and checks before locking and after locking and matches with the data set . Ideally after locking zone1, the data set stored in zone1 should not be readable( or reads a 0 value) and
zone2 that is not secured matches the written data set. It demonstrates how to lock and and unlock zones by showing where to put the password and how to check if it is secured or unsecured.
External Connections
Watch Variables
Before running the example, the below configuration is expected to be done through the dcsm_ex1_f28p65x_dcsm_zxotp.asm :