/* Enable SRAM protection so SRAM gets wiped if a debgger is connected. 
Use this function to set the state of the 128 valid bits at the beginning of customer info space, if needed. Then set the SRAM wipe bit to zero. */
int32_t am_hal_flash_wipe_sram_enable(void)
/* Enable SRAM protection so SRAM gets wiped if a debgger is connected. 
Use this function to set the state of the 128 valid bits at the beginning of customer info space, if needed. Then set the SRAM wipe bit to zero. */
int32_t am_hal_flash_wipe_sram_enable(void)
{
    int iRC;
    uint32_t ui32SecurityValue;
    iRC = customer_info_signature_set();
    if ( iRC )
    {
        return iRC;
    }
    ui32SecurityValue = AM_REGVAL(AM_HAL_FLASH_INFO_SECURITY_ADDR) &
                        ~AM_HAL_FLASH_INFO_SECURITY_SRAMWIPE_M;
    return g_am_hal_flash.flash_program_info(
            AM_HAL_FLASH_PROGRAM_KEY,
            0,
            &ui32SecurityValue,
            AM_HAL_FLASH_INFO_SECURITY_O / 4,
            1 );
}