ES0561 · Errata sheetSTM32H503CB/EB/KB/RB device errata
Download .pdfOpen in the full document

Description of device errata

Description of device errata

The following sections describe the errata of the applicable devices and provide a workaround where available. They are grouped by device functions.

The applicable devices are based on Arm® Cortex® core.



Note:

Arm and Cortex are registered trademarks of Arm Limited (or its subsidiaries or affiliates) in the US and/or elsewhere.

The Arm word and logo are trademarks of Arm Limited (or its subsidiaries) in the US and/or elsewhere. All rights reserved.

Access permission faults are prioritized over unaligned device memory faults

Description

A load or store which causes an unaligned access to device memory results in an UNALIGNED UsageFault exception. However, if the region is not accessible because of the MPU access permissions (as specified in MPU_RBAR.AP), then the resulting MemManage fault is prioritized over the UsageFault.

The failure occurs when the MPU is enabled and:
  • A load/store access occurs to an address which is not aligned to the data type specified in the instruction.
  • The memory access hits one region only.
  • The region attributes (specified in the MAIR register) mark the location as device memory.
  • The region access permissions prevent the access (that is, unprivileged or write not allowed).

The MemManage fault caused by the access permission violation is prioritized over the UNALIGNED UsageFault exception because of the memory attributes.

Workaround

None. However, it is expected that no existing software is relying on this behavior since it was permitted in Armv7‑M.

System

LSE crystal oscillator may be disturbed by transitions on PC13

Description

On LQFP and VFQFPN packages, the LSE crystal oscillator clock frequency can be incorrect when PC13 is toggling in input or output (for example when used for RTC_OUT1). The external clock input (LSE bypass) is not impacted by this limitation.

The WLCSP and UFBGA packages are not impacted by this limitation.

Workaround

None.

Avoid toggling PC13 when LSE is used on LQFP and VFQFPN.

Peripheral triggers connected to RTC wakeup timer interrupt instead of RTC wakeup timer trigger signal

Description

GPDMA1 and GPDMA2 triggers are connected to RTC wakeup timer interrupt instead of RTC wakeup timer trigger signal (rtc_wut_trg).

Workaround

Enable the RTC wakeup timer interrupt. The wakeup timer flag must be cleared in the interrupt subroutine before getting a new trigger.

To avoid serving an interrupt, use triggers from RTC alarm or from LPTIM instead of RTC wakeup timer.

HSE not operational as oscillator

Description

HSE oscillator with an external crystal or a ceramic resonator does not operate.
Note:

HSE bypass allowing the use of an external clock on the PH0 input operates as expected. HSI or CSI internal oscillators operate as expected, too.

Workaround

None.

Additional consumption on PA11/PA12 in Stop and Standby modes

Description

An additional current consumption of around 40 µA can be observed when PA11 or PA12 is left floating during Stop or Standby mode.

Workaround

Apply one of the following measures:
  • Software measure:
    • In Stop mode, configure PA11 or PA12 in pull-down or in pull-up mode.
    • In Standby mode, enable the I/O retention feature.
  • Hardware measure: fix externally the level of PA11 and PA12.

LSE low drive mode is not functional

Description

The LSE oscillator may not start or may stop in low drive mode (LSEDRV = 00). Using this mode is forbidden.

Workaround

None.

Flash memory latency is increased during read-while-write (RWW) operation

Description

When the VOS0 and VOS1 voltage scaling is selected, the flash memory zero-wait state maximum frequency is limited to 32 MHz during read-while-write (RWW) operations, that is when reading (instruction fetching or data reading) from one of the flash memory banks (bank1 or bank2) while modifying (writing or erasing) the other bank.

Note:

This also applies to option byte and OTP writing (bank1) while reading the bank2.

Workaround

Configure the adequate number of wait states (through the LATENCY[3:0] bitfield of the FLASH_ACR register) before performing an RWW operation.

Note:

The initial wait state configuration can be restored after the RWW operation.

Full JTAG configuration without NJTRST pin cannot be used

Description

When using the JTAG debug port in Debug mode, the connection with the debugger is lost if the NJTRST pin (PB4) is used as a GPIO or for an alternate function other than NJTRST. Only the 4-wire JTAG port configuration is impacted.

Workaround

Use the SWD debug port instead of the full 4-wire JTAG port.

SRAM2 unduly erased upon a backup domain reset

Description

The software reset of the backup domain unduly erases SRAM2.

Note:

To reset the backup domain, the software sets the VSWRST bit of the RCC_BDCR register and the DBP bit of the PWR_DBPCR register.

Workaround

Store SRAM2 data before executing the software reset of the backup domain.

PLL2 output cannot be used as LPTIM clock source

Description

When PLL2P (pll2_p_ck) is selected as LPTIM clock source, LPTIM does not receive its kernel clock and it does not operate properly.

Note:

The value of the LPTIMxSEL[2:0] bitfield that selects PLL2P is 001.

Workaround

Set LPTIMxSEL[2:0] to a value other than 001, to avoid selecting PLL2P as LPTIM clock source.

Clearing IWDG_SW might result in debug authentication failure

Description

If the IWDG_SW configuration option bit is cleared (independent watchdog controlled by hardware), the IWDG is always enabled after a reset, and cannot be disabled. As a result:
  • The ST-DA debug authentication sequence might fail, preventing any possibility to securely launch regressions on secure products.

Workaround

Do not enable the IWDG controlled by hardware configuration. Instead, use the IWDG controlled by software configuration (IWDG_SW configuration option bit set).

Clearing WWDG_SW might result in debug authentication failure

Description

If the WWDG_SW configuration option bit is cleared (window watchdog controlled by hardware), the WWDG is always enabled after a reset, and cannot be disabled. As a result:
  • The ST-DA debug authentication sequence might fail, preventing any possibility to securely launch regressions on secure products.

Workaround

Do not enable the WWDG controlled by hardware configuration. Instead, use the WWDG controlled by software configuration (WWDG_SW configuration option bit set).

Corrupted content of the backup domain due to a missed power-on reset after this domain supply voltage drop

Description

The backup domain reset may be missed upon a power-on following a power-off, if its supply voltage drops during the power-off phase hitting a window, which is few mV wide before it starts to rise again. In this critical window, the flip-flops are no longer able to safely retain the information and the backup domain reset has not yet been triggered. This window is located in the range between 100 mV and 700 mV, with the exact position depending mainly on the device and on the temperature.

This missed reset results in unpredictable values of the backup domain registers. This may cause a spurious behavior (such as driving the LSCO output pin on PB2 or influencing backup functions).

Workaround

Apply one of the following measures:

  • In the application, let the VDD and VBAT supply voltages fall to a level below 100 mV for more than 200 ms before a new power‑on.
  • If the above workaround cannot be applied, and the boot follows a power‑on reset, erase the backup domain by software.

    When the application is using shutdown mode, user needs to discriminate between the power‑on reset or an exit from a shutdown mode.

    For this purpose, at least one backup register must have been previously programmed with a BKP_REG_VAL value with 16 bits set and 16 bits cleared.

    Robustness of this workaround can be significantly improved by using a CRC rather than registers. The registers are subject to backup domain reset.

    The workaround consists of calculating the CRC of the backup registers: RCC_BDCR and RTC registers, excluding bits modified by HW.

    The CRC result can be stored in the backup register instead of a fixed value. This value needs to be updated for each modification of values covered by CRC, such as by using CRC peripheral.

    At the very beginning of the boot code, insert the following software sequence:
    1. Check the BORRSTF flag of the RCC_CSR register. If set, the reset is caused by a power on, or is exiting from shutdown mode.
    2. If BORRSTF flag is true, and the shutdown mode is used in the application, check that the backup register value is different from BKP_REG_VAL. When tamper detection is enabled,check that no tamper flag is set. If both conditions are met then the reset is caused by a power-on.
    3. If the reset is caused by a power-on, apply the following sequence:
      1. Enable the PWR clock in the RCC, by setting the PWREN bit.
      2. Enable the backup domain access in the PWR, by setting the DBP bit.
      3. Reset the backup domain, by:
        1. Writing 0x0001 0000 in the RCC_BDCR register, which sets the BDRST bit and clears other register bits that might not be reset.
        2. reading the RCC_BDCR register, to make the reset time long enough
        3. writing 0x0000 0000 in the RCC_BDCR register, to clear the BDRST bit
      4. Clear the BORRSTF flag by setting the RMVF bit of the RCC_CSR register.

Read from flash memory may fail in VOS2 and VOS1 range

Description

When the VOS2 or VOS1 range is selected (VOS[1:0] bits of the PWR_VOSCR register set to 0x01 or 0x02), and the code performs a read from flash memory or is executed from flash memory, the read operation may fail, an ECC double error detected, and an NMI exception generated.

Workaround

Do not use the VOS2 and VOS1 ranges when reading/fetching code from flash memory.

Use only VOS3 or VOS0 when accessing the flash memory. Switching sequence from VOS3 to VOS0 must be performed with the code executed from SRAM to avoid reading the flash memory during the VOS transition.

Debug not available when the PRODUCT_STATE is iROT-Provisioned

Description

When the PRODUCT_STATE is iROT-Provisioned, the debug must be available for a code executed from an HDPL 3 area. However, in this case, the code cannot be debugged.

Workaround

If PRODUCT_STATE = iROT-Provisioned, force the debug opening in the first stage of the boot sequence software.

Below an example of code:
/* This code ensures that in PRODUCT_STATE = IROT_PROVISIONED, the Debug is opened for HDPL3 */
 /* This code must be integrated in a HDPL1 code */
if (READ_BIT(FLASH->OPTSR_CUR, FLASH_OPTSR_PRODUCT_STATE_Msk) == OB_PROD_STATE_IROT_PROVISIONED)
 {
 __HAL_RCC_SBS_CLK_ENABLE();
 ((SBS_TypeDef *)SBS_BASE)->DBGCR = 0x006FB4B4U; // 6F value to open debug when HDPL3 is reached
 }
 /* To be able to attach the debugger, the code to debug must be executed in HDPL3. */
 /* The code must call the below function twice before reaching the code to debug: */
 /* HAL_SBS_IncrementHDPLValue(); */

SRAM ECC error flags and addresses are updated only if interrupt is enabled

Description

Some reference manual revisions wrongly state that:
  • If a single error is detected, SEDC and CSEDC flags are set in RAMCFG_MxISR and RAMCFG_MxICR respectively. The ECC single error address is updated in RAMCFG_MxSEAR.
  • If a double error is detected, DED and CDED flags are set in RAMCFG_MxISR and RAMCFG_MxICR respectively. The ECC double error address is updated in RAMCFG_MxDEAR.
However, the real behavior is that:
  • If a single error is detected, SEDC and CSEDC flags are set, and the associated ECC single error address is updated only if the single error interrupt is enabled (SEIE bit of RAMCFG_MxIER is set).
  • If a double error is detected, DED and CDED flags are set, and the associated ECC double error address is updated only if double error interrupt or NMI is enabled (DEIE bit or ECCNMI bit of RAMCFG_MxIER is set).

This is a documentation error rather than a device limitation.

Workaround

When the application needs to get the ECC error flags and addresses status without servicing the associated interrupts, the RAMCFG SEIE/DEIE interrupts must be enabled with the associated NVIC RAMCFG vector 5 disabled.

Low-speed external clock in analog bypass mode might not work properly

Description

While the LSE bypass in analog mode is selected (LSEBYP = 1 and LSEEXT = 0 in the RCC_BDCR register), the LSE clock might not work properly.

Workaround

Do not use the LSE bypass in analog mode. Instead, use the digital LSE bypass mode (LSEBYP = 1 and LSEEXT = 1 in the RCC_BDCR register).

Incorrect backup domain reset

Description

The backup domain reset may be missed upon a backup domain power‑on following a VBAT power‑off in VBAT mode, if the VBAT voltage drops during the power‑off phase hitting a window, which is a few mV wide before it starts to rise again. This window is located in the range between 100 mV and 700  mV, the exact position depending mainly on the device and on the temperature.

The missed reset results in unpredictable values of the backup domain registers. This may lead to raising an unexpected tamper event preventing the access to SRAM2 and PKA, or influencing any of the backup domain functions.

Workaround

Apply one of the following measures to avoid an incorrect backup domain reset:
  • Before performing a new power‑on, let the VBAT supply voltage fall to a level below 100 mV for more than 200 ms.
  • If none of the previous workarounds can be applied, and the boot follows a backup domain power‑on reset, erase the backup domain by software. In order to discriminate the backup domain power‑on reset from a power‑on reset, at least one backup register (called, for example, BackupTestRegister) must be previously programmed with a BKP_REG_VAL value containing 16 bits set and 16 bits cleared. The robustness of this workaround can be significantly improved by using a CRC rather than registers, since the registers are subject to backup domain reset.

    The workaround consists in calculating the CRC of the backup domain registers, RCC_BDCR and RTC/TAMP registers, excluding the bits modified by hardware. The CRC result can be stored in the backup register, instead of a fixed BKP_REG_VAL value. The CRC result needs to be updated for each modification of values covered by the CRC, for example when the CRC peripheral is used.

    Insert the following software sequence at the very beginning of the boot code:
    1. Check if the BORRSTF flag of the RCC_RSR register is set (the reset is caused by a power‑on).
    2. If it is set, check that the BackupTestRegister content is different from BKP_REG_VAL, or that the new CRC calculated value is different from stored results, depending on the chosen workaround implementation.
    3. If this is the case and if no tamper flag is set (when the tamper detection is enabled), the reset is caused by a backup domain power‑on. Then apply the following sequence:
      1. Enable backup domain access by setting the DBP bit of the PWR_DBPCR register.
      2. Reset the backup domain by applying the following sequence:
        1. Write 0x0001 0000 to the RCC_BDCR register, which sets the VSWRST bit and clears the other register bits that may not be cleared.
        2. Read the RCC_BDCR register to make the reset time long enough.
        3. Write 0x0000 0000 to the RCC_BDCR register to clear the VSWRST bit.
      3. Clear the BORRSTF flag by setting the RMVF bit of the RCC_RSR register.

Incorrect description of HDPx_STRT and HDPx_END default values

Description

The reference manual incorrectly describes the default values for HDPx_STRT and HDPx_END:
  • HDPx_STRT is listed as 0x01, and HDPx_END is listed as 0x00.

However, the correct default values are:

  • HDPx_STRT is 0x00, and HDPx_END is 0x01.

This is a documentation error rather than a device limitation.

Workaround

None.

PLL1P output can unduly be disabled by software when used as SYSCLK clock

Description

The PLL1P output (pll1_p_ck clock signal) is expected to be protected against disabling by software while selected for SYSCLK (sys_ck clock signal). Unduly, it is on the PLL1Q output that this protection acts, instead on PLL1P. As a consequence, the PLL1P output selected as SYSCLK can be disabled by software, which leads to a system deadlock.

Note:

The PLL1P output (pll1_p_ck clock signal) is selected as SYSCLK (sys_ck clock signal) by setting the SW[1:0] bitfield of the RCC_CFGR1 register to 0b11. The PLL1P and PLL1Q outputs of the PLL1 are enabled and disabled through, respectively, the bits PLL1PEN and PLL1QEN of the RCC_PLL1CFGR register.

Workaround

Do not clear the PLL1PEN bit while the PLL1P output is used as SYSCLK clock.

Incorrect description of EXTI line 53

Description

The reference manual incorrectly states that the VDDIO2 voltage monitor is mapped to EXTI line 53.

However, the correct description is that EXTI line 53 is Reserved.

This is a documentation error rather than a device limitation.

Workaround

None.

Invalid DAC output voltage for several DAC kernel clocks

Description

The DAC output voltage might be incorrect when the DAC kernel clock is different from rcc_hclk (ADCDACSEL[2:0] bits equal to 000 in RCC_CCIPR5 register) or sys_ck (ADCDACSEL[2:0] bits equal to 001 in RCC_CCIPR5 register).

Workaround

When DAC is used, use ADCDACSEL[2:0] = 000 or 001 in the RCC_CCIPR5 register.

LPTIM2_CH1 might prevent the system from entering low-power modes

Description

When LPTIM2_CH1 output is enabled, it might lead to a wake-up interrupt request from EXTI input event 49, as the default value for an IMR49 bit in the EXTI_IMR2 register is equal to 1 (EXTI interrupt input 49 is unmasked). Consequently, it might prevent the system from entering low-power modes.

Workaround

When LPTIM2_CH1 output is enabled, and the system needs to enter low-power mode, mask EXTI interrupt input 49 by setting the IMR49 bit in the EXTI_IMR2 register to 0.

Debug authentication fails when embedded firmware changes PRODUCT_STATE

Description

Debug authentication (DA) services fail, and regression through DA becomes unavailable if the device is provisioned under the following condition:
  1. The product is initially in the VIRGIN state (never used before), then
  2. Firmware is downloaded and executed while PRODUCT_STATE is Open, and
  3. The firmware programs the OTP memory for debug authentication and changes PRODUCT_STATE to iRoT‑Provisioned or Closed.
Note: The new PRODUCT_STATE becomes active after changing the option byte followed by a system reset. Firmware can transition from Open to Closed through iRoT-Provisioned or Provisioned states by changing PRODUCT_STATE twice and performing a system reset.

Workaround

On a virgin device, before flashing embedded firmware that changes PRODUCT_STATE:
  1. Perform a regression triggered by a dedicated firmware:
    1. Program the dedicated firmware.
    2. The dedicated firmware detects the Open state, changes PRODUCT_STATE to Provisioned, and triggers a system reset.
    3. The dedicated firmware detects the Provisioned state, changes PRODUCT_STATE to Regression, and triggers a system reset.
  2. Set the BOOT0 pin to VDD and reset the target, then set back BOOT0 to VSS.
  3. Launch DA discovery in Open state and reset the target.