SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
IPC message copy to RAM involves copying application code from CPU1 IPC message RAM 1 to CPU2/CM destination RAM for execution. The CPU2 IPC message RAM does not allow for code to be executed. The “CPU1 IPC MSG RAM Copy” boot mode takes an additional value in the IPC boot command in CPU1TOCPU2IPCBOOTMODE, which specifies the length in words to copy out of CPU1 IPC message RAM. The data is copied from unsecure CPU1 IPC message RAM (CPU1TOCPU2MSGRAM1) to CPU2 M1RAM. Once copied, boot ROM branches to M1RAM and the application can begin execution. The maximum copy length size is 1000 words (2000 bytes) and the minimum is 100 words (200 bytes). Refer to Table 4-43 for details regarding configuration and execution flow of this boot mode.
The copy length value specified in CPU1TOCPU2IPCBOOTMODE is checked before running this boot mode and does not execute if the value is out of the valid range. If the value is out of the valid range, an IPC is sent to CPU1 and CPU2 returns to wait-for-command loop. Using M0 RAM can result in boot ROM reserved memory (status variables, stack, and so on) being overwritten when boot mode is used. M1 RAM is used for IPC boot and this boot mode only requires 1000 words. Be aware of any boot mode conflicts if using this boot mode.
Step | Action |
---|---|
1 | CPU1 application links CPU2/CM code to copy in either CPU1TOCPU2MSGRAM1 or CPU1TOCMMSGRAM1. |
2 | CPU1 application configures CPU2/CM IPCBOOTMODE with the copy length and IPC message copy as the boot mode. See Section 4.7.2.2 for more IPCBOOTMODE details. |
3 | Once CPU2/CM is released from reset to boot, CPU2/CM begins copying from CPU1TOCPU2MSGRAM1/CPU1TOCMMSGRAM1 to their destination RAM. Refer to Table 4-44 for destination RAM details. |
4 | Once the copying is complete, CPU2/CM boot branches to the entry address of the destination RAM and begins executing the application. |
CPU | RAM | Destination Address Range(1) (For maximum copy length of 1000 words) |
---|---|---|
CPU2 | M1RAM | 0x0000 0400 to 0x0000 07E6 |
CM | S0RAM | 0x2000 0800 to 0x2000 0FCC |