SPRADT2 May 2025 AWRL6432
The code modifications required under shared memory mode SH_MEM_CONFIG=1 are similar to those required for SH_MEM_CONFIG=3. However, under SH_MEM_CONFIG=1, only SHARED RAM 0 is assigned to the M4F. Therefore, the total memory available to the M4F is 640KB, which is an increase of 128KB compared to the default SH_MEM_CONFIG=0. This differs from SH_MEM_CONFIG=3, resulting in some modification differences.
For Modification 1, the additional MPU region size should be configured as 128KB under SH_MEM_CONFIG=1, as shown in Figure 4-3.
Figure 4-3 Additional MPU Region Configuration for SH_MEM_CONFIG=1For the second modification involving the linker.cmd file, an additional 128KB memory region must be allocated to the M4F, and the size of HWASS_SHM_MEM must be reduced to 384KB.
MEMORY
{
…
M4F_RAM33 : ORIGIN = 0x00480000, LENGTH = 0x00020000
HWASS_SHM_MEM : ORIGIN = 0x60000000, LENGTH = 0x00060000
}
The third modification is related to ECC and is generally the same as the third Section 4.1 modification described earlier. The difference is that ECC disabling for SHARED RAM 1 can be commented out because M4F cannot access SHARED RAM 1 under SH_MEM_CONFIG=1.
#if 0
// Disable APP SHARED MEM1 ECC
ECC_controlWrite(ECC_VEC_APP_SHM_RAM1_ID, ECC_CON_ECC_EN_MASK, 0, 0);
// Verify respective ECC is disabled. Throw assertion if not disabled.
if(ECC_enableStatus(ECC_VEC_APP_SHM_RAM1_ID)) DebugP_assert(0);
#endif
The fourth modification is related to shared memory mode and requires changing SH_MEM_CONFIG in the project makefile or makefile_ccs_bootimage_gen file to SH_MEM_CONFIG=1.
The fifth modification is memory-related. Under SH_MEM_CONFIG=1, the following modifications are required.
motion_detect.c
#define L3_MEM_SIZE (0x60000)
SOC_memoryInit(SOC_RCM_MEMINIT_HWA_SHRAM_INIT|SOC_RCM_MEMINIT_TPCCA_INIT|SOC_RCM_MEMINIT_TPCCB_INIT|SOC_RCM_MEMINIT_FECSS_SHRAM_INIT |SOC_RCM_MEMINIT_APPSS_SHRAM1_INIT);
Under SH_MEM_CONFIG=1, the sixth modification shown in Section 4.1 is not required.
The seventh modification is related to shared memory settings. Under SH_MEM_CONFIG=1, shared memory settings must also be restored after wake-up. The eighth modification is ECC-related and Section 4.1 remains unchanged.
power_management.c
#define APPSS_SHARED_MEM_CLK_GATE (volatile uint32_t *)(0x56060398U)
void power_LPDSresumehook(void)
{
static uint8_t ledState = 0;
ECC_disable_shared_memory();
// Re-Init MPU
MpuP_init();
*APPSS_SHARED_MEM_CLK_GATE=0x6;// SH_MEM_CONFIG=1
Table 4-4 also provides a summary of the modifications required under SH_MEM_CONFIG=1 for different device types and power modes.
| xWRLx432 Device Type | Low-Power Mode | Required Modifications |
|---|---|---|
| Functional-safety not supported | lowpowercfg 1 | Modifications 1, 2, 4, 5, 7 |
| lowpowercfg 0 | Modifications 1, 2, 4, 5 | |
| Functional-safety supported (AWRL6432) | lowpowercfg 1 | Modifications 1, 2, 3, 4, 5, 7, 8 |
| lowpowercfg 0 | Modifications 1, 2, 3, 4, 5 |