SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
FILE: dcsm_ex1_cpu2_memory_access.c
This example demonstrates how the access of the memory is affected when the memories are secured by CPU1. CPU1 allocate CPU2's LS4-LS5 to zone 1 & CPU2's LS6-LS7 to zone 2 using the 1st Zone Select Block. Zone1 | Zone2 | CPU2's LS4-LS5 | CPU2's LS6-LS7 | It writes some data in the zones and checks after the CPU1 does a memory locking and matches with the data set . Further, once the CPU2 unlocks the memories, it matches with the data set written before CPU1 lock. Ideally after locking, 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 zone by showing where to put the password and how to check if it is secured or unsecured.
The communication between the 2 CPUs are handled using IPC (Inter process communication) through a synch function. This enables the CPU Core to wait until the expected task is completed on the other core.
External Connections
Watch Variables