This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM62X: SDL_ESM_init() call fail

Part Number: PROCESSOR-SDK-AM62X

Hi E2E-team, 

I am trying to initialize the SDL_ESM and it fail to initialize and please can you help me on this?

Setup:

   H/W: AM62x 

   SDK-Version: mcu_plus_sdk_am62x_08_06_00_18

Log:

ERROR: SvEsm_Init:122: Failed to initialize the SDL ESM module!!! ret(4294967295)

code:

static SDL_ESM_config esmInitConfig = {
.esmErrorConfig = {0u, 8u}, /* Self test error config - error event to use for self test */
.enableBitmap = {0x00010c00u, 0x00000000u, 0x00000000u},
.priorityBitmap = {0x00000c00u, 0x00000000u, 0x00000000u},
.errorpinBitmap = {0x00000c00u, 0x00000000u, 0x00000000u},
};

SDL_ESM_Inst instance = SDL_ESM_INST_WKUP_ESM0; // for SOC_AM62X & M4F_CORE

int32_t retResult = SDL_ESM_init(instance, &esmInitConfig, cbEsmNotification, NULL);
if (SDL_PASS != retResult)
{
    DebugP_logError("Failed to initialize the SDL ESM module!!! ret(%d) \n", retResult);
    return;
}

Complete-code:

void SvEsm_Init(void)
{

   SDL_ESM_Inst instance = SDL_ESM_INST_WKUP_ESM0; // for SOC_AM62X & M4F_CORE

   int32_t retResult = SDL_ESM_init(instance, &esmInitConfig, cbEsmNotification, NULL);
   if (SDL_PASS != retResult)
   {
      DebugP_logError("Failed to initialize the SDL ESM module!!! ret(%d) \n", retResult);
      return;
   }
   retResult = SDL_ESM_verifyConfig(instance, &esmInitConfig);
   if (SDL_PASS != retResult)
   {
      DebugP_logError("Error initializing WKUP ESM: result = %d\n", retResult);
   }
   else {
      DebugP_log("\nInit WKUP ESM complete \n");
   }

   return;
}

Regards, 

Vadivel