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.

RM57L843: Writes to the "ESM Low-Time Counter Preload Register" (ESMLTCPR) has no effect

Part Number: RM57L843


Hello, 

Writing to the "ESM Low-Time Counter Preload" (ESMLTCPR) register using the routine bellow does not change it and neither the "ESM Low-Time Counter" (ESMLTCR) register, even when the ERROR pin status is forced to low.

/** @fn void esmSetCounterPreloadValue(uint32 value)
*   @brief Set counter preload value
*
*   @param[in] value - Counter preload value
*
*   Set counter preload value.
*/
/* SourceId : ESM_SourceId_018 */
/* DesignId : ESM_DesignId_018 */
/* Requirements : HL_CONQ_ESM_SR11 */
void esmSetCounterPreloadValue(uint32 value)
{
/* USER CODE BEGIN (37) */
/* USER CODE END */

    esmREG->LTCPR = value & 0xC000U;

/* USER CODE BEGIN (38) */
/* USER CODE END */
}

Best regards,