Tool/software:
Hi,
We have boot code that sets up the ESC to allow us to use FoE for firmware updates. When the runtime code is launch I ran into an issue where I need to reset the ESC in the runtime code. If I do NOT put a wait after the RESET then we fail the memory setup. See code below: My code I added was the SysCtl_delay of 20000 ns. Is there any documentation on how long to wait after the ESC_resetESC?
//
// Reset ESC
//
ESC_resetESC();
// Add a delay to let the ESC settle down especially coming from boot code
// This small amount allows us to then be able to reconfigure the ESC Memory
SysCtl_delay(ESC_RESET_DELAY);
//
// Initialize ESCSS Memory
//
ESCSS_initMemory(ESC_SS_BASE);
//
// Wait for ESCSS memory initialization to complete
//
if(ESCSS_getMemoryInitDoneStatusBlocking(ESC_SS_BASE, memoryTimeOut) !=
ESCSS_API_SUCCESS)
{
Log(LOG_MOD_ETHERCAT, LOG_ERROR, "%s: unable to initialize ESCSS memory\r\n", __FUNCTION__);
return(ESC_HW_INIT_FAIL);
}
Dorion