SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
Both CPU1 and CPU2 have the ability to perform program and erase operations on any of the Flash banks present in the device, but only one CPU can access the Flash wrapper at a given time for programming or erase. The Flash controller access semaphore determines which CPU has control of the Flash wrapper, and can be configured by writing to the FLASHCTLSEM register. This register is present in the IPC register address spaces for both CPUs.
In the default state, CPU1 has control of the Flash wrapper. Either CPU can grab the semaphore for exclusive access. While one CPU has grabbed the semaphore for exclusive access, the other CPU cannot grab the semaphore or access the Flash wrapper until the owner CPU has relinquished control. Table 12-1 describes the FLASHCTLSEM register values and their corresponding states.
While the Flash wrapper is owned by a CPU, that CPU's reset also resets the semaphore register. In the default state, the semaphore register is reset by CPU1.SYSRSn.
SEM Value | Description |
---|---|
00, 11 | CPU1 has control of the Flash wrapper, but CPU2 can seize control at any time. |
01 | CPU1 has exclusive control of the Flash wrapper. CPU1 can relinquish control by setting SEM back to 00. |
10 | CPU2 has exclusive control of the Flash wrapper. CPU2 can relinquish control by setting SEM back to 00. |