Stm32F10Xx8 and Stm32F10Xxb Errata Sheet
Stm32F10Xx8 and Stm32F10Xxb Errata Sheet
Errata sheet
STM32F101x8/B, STM32F102x8/B and STM32F103x8/B
medium-density device limitations
Silicon identification
This errata sheet applies to the revisions B, Z and Y of the STMicroelectronics medium-
density STM32F101xx access line and STM32F103xx performance line products, and to
revision Y of the STM32F102xx USB access line devices.
These families feature an ARM™ 32-bit Cortex®-M3 core, for which an errata notice is also
available (see Section 1 for details).
The full list of root part numbers is shown in Table 2.
The products are identifiable as shown in Table 1:
● by the Revision code marked below the order code on the device package
● by the last three digits of the Internal order code printed on the box label
Contents
2.9.5 Data valid time (tVD;DAT) violated without the OVR flag being set . . . . . 17
2.10 SPI peripheral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.10.1 CRC still sensitive to communication clock when SPI is in slave mode
even with NSS high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.11 General-purpose timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.11.1 Missing capture flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.11.2 Overcapture detected too early . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.11.3 General-purpose timer: regulation for 100% PWM . . . . . . . . . . . . . . . . 18
2.12 LSI clock stabilization time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.13 USB packet buffer memory: over/underrun or
COUNTn_RX[9:0] field reporting incorrect number if APB1
frequency is below 13 MHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
List of tables
List of figures
An errata notice of the STM32F10xxx core is available from the following web address:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.eat0420a/.
The direct link to the errata notice pdf is:
http://infocenter.arm.com/help/topic/com.arm.doc.eat0420a/Cortex-M3-Errata-r1p1-v0.2.pdf.
All the described limitations are minor and related to the revision r1p1-01rel0 of the Cortex-
M3 core. Table 3 summarizes these limitations and their implications on the behavior of
medium-density STM32F10xxx devices.
1.1.1 Cortex-M3 LDRD with base in list may result in incorrect base register
when interrupted or faulted
Description
The Cortex-M3 Core has a limitation when executing an LDRD instruction from the system-
bus area, with the base register in a list of the form LDRD Ra, Rb, [Ra, #imm]. The execution
may not complete after loading the first destination register due to an interrupt before the
second loading completes or due to the second loading getting a bus fault.
Workarounds
1. This limitation does not impact the STM32F10xxx code execution when executing from
the embedded Flash memory, which is the standard use of the microcontroller.
2. Use the latest compiler releases. As of today, they no longer generate this particular
sequence. Moreover, a scanning tool is provided to detect this sequence on previous
releases (refer to your preferred compiler provider).
Workaround
Use STM32F10xxx external events instead of interrupts to wake up the core from WFE by configuring
an external or internal EXTI line in event mode.
1.1.3 Cortex-M3 BKPT in debug monitor mode can cause DFSR mismatch
Description
A BKPT may be executed in debug monitor mode. This causes the debug monitor handler to
be run. However, the bit 1 in the Debug fault status register (DFSR) at address 0xE000ED30
is not set to indicate that it was originated by a BKPT instruction. This only occurs if an
interrupt other than the debug monitor is already being processed just before the BKPT is
executed.
Workaround
If the DFSR register does not have any bit set when the debug monitor is entered, this
means that we must be in this “corner case” and so, that a BKPT instruction was executed in
debug monitor mode.
Workaround
This scenario does not happen in real application systems since all enabled ISRs should at
least contain one instruction. Therefore, if an empty ISR is used, then insert an NOP or any
other instruction before the exit instruction (BX or BLX).
Workaround
None.
Description
If a WFI/WFE instruction is executed during a Flash memory access and the Sleep duration
is very short (less than 2 clock cycles), the instruction fetch from the Flash memory may be
corrupted on the next wakeup event.
Workaround
When using the Flash memory with two wait states and prefetch on, the FLITF clock must
not be stopped during the Sleep mode – the FLITFEN bit in the RCC_AHBENR register
must be set (keep the reset value).
Workaround
None.
Description
Even if CAN_TX is not used, this signal is set by default to 1 if I/O port pin PA12 is
configured as an alternate function output.
In this case USART1_RTS cannot be used.
Workaround
When USART1_RTS is used, the CAN must be remapped to either another IO configuration
when the CAN is used, or to the unused configuration (CAN_REMAP[1:0] set to “01”) when
the CAN is not used.
Description
USART2 cannot be used in synchronous mode (USART2_CK signal), if SPI1 is used in
slave mode.
Workaround
None.
Description
USART2 cannot be used in synchronous mode (USART2_CK signal) if SPI1 is used in
master mode and SP1_NSS is configured in software mode. In this case USART2_CK is not
output on the pin.
Workaround
In order to output USART2_CK, the SSOE bit in the SPI1_CR2 register must be set to
configure the pin in output mode.
Description
USART3 cannot be used in synchronous mode (USART3_CK signal) if SPI2 is used in slave
mode.
Workaround
None.
Description
USART3 cannot be used in synchronous mode (USART3_CK signal) if SPI2 is used in
master mode and SP2_NSS is configured in software mode. In this case USART3_CK is not
output on the pin.
Workaround
In order to output USART3_CK, the SSOE bit in the SPI2_CR2 register must be set to
configure the pin in output mode,
Description
● Conflict between the I2C2 SMBA signal (even if this function is not used) and
SPI2_NSS in output mode.
● Conflict between the I2C2 SMBA signal (even if this function is not used) and
USART3_CK.
● In these cases the I/O port pin PB12 is set to 1 by default if the I/O alternate function
output is selected and I2C2 is clocked.
Workaround
I2C2 SMBA can be used as an output if SPI2 is configured in master mode with NSS in
software mode.
I2C2 SMBA can be used in input mode if SPI2 is configured in master or slave mode with
NSS managed by software.
SPI2 cannot be used in any other configuration when I2C2 is being used.
USART3 must not be used in synchronous mode when I2C2 is being used.
Description
Conflict between the SPI1 MOSI signal and the I2C1 SMBA signal (even if SMBA is not
used).
Workaround
Do not use SPI1 remapped in master mode and I2C1 together.
When using SPI1 remapped, the I2C1 clock must be disabled.
Description
Conflict between the TIM3_CH2 signal and the I2C1 SMBA signal, (even if SMBA is not
used).
In these cases the I/O port pin PB5 is set to 1 by default if the I/O alternate function output is
selected and I2C1 is clocked. TIM3_CH2 cannot be used in output mode.
Workaround
To avoid this conflict, TIM3_CH2 can only be used in input mode.
Workaround
Do not use the corresponding I/O port of the USARTx_TX pin in alternate function output
mode. Only the input mode can be used (TE bit in the USARTx_CR1 has to be cleared).
Workaround
Use interrupt sources and the WFI instruction if the application must be woken up from the
Sleep or the Stop mode by PVD or USB Wakeup.
Workaround
This behavior is fully deterministic, and should be detected during firmware development or
the validation phase. Consequently, systems already developed, validated and delivered to
the field with previous silicon revisions are not affected.
For code update of revision Z and B devices already in the field, do not use these new
compilers. To date, compilers known to generate these sequences are:
● IAR EWARM rev 5.20 and later
● GNU rev 4.2.3 and later
For new developments associated with these compilers, revision Y of the STM32F10xx8/B
must be used.
2.7 Boundary scan TAP: wrong pattern sent out after the
“capture IR” state
Description
After the “capture IR” state of the boundary scan TAP, the two least significant bits in the
instruction register should be loaded with “01” for them to be shifted out whenever a next
instruction is shifted in.
However, the boundary scan TAP shifts out the latest value loaded into the instruction
register, which could be “00”, “01”, “10” or “11”.
Workaround
The data shifted out, after the capture IR state, in the boundary scan flow should therefore
be ignored and the software should check not only the two least significant bits (XXX01) but
all register bits (XXXXX).
2.8 Flash memory BSY bit delay versus STRT bit setting
Description
When the STRT bit in the Flash memory control register is set (to launch an erase
operation), the BSY bit in the Flash memory status register goes high one cycle later.
Therefore, if the FLASH_SR register is read immediately after the FLASH_CR register is
written (STRT bit set), the BSY bit is read as 0.
Workaround
Read the BSY bit at least one cycle after setting the STRT bit.
2.9.1 Some software events must be managed before the current byte is
being transferred
Description
When the EV7, EV7_1, EV6_1, EV2, EV8, and EV3 events are not managed before the
current byte is being transferred, problems may be encountered such as receiving an extra
byte, reading the same data twice or missing data.
Workarounds
When it is not possible to manage the EV7, EV7_1, EV6_1, EV2, EV8, and EV3 events
before the current byte transfer and before the acknowledge pulse when changing the ACK
control bit, it is recommended to:
1. use the I2C with DMA in general, except when the Master is receiving a single byte
2. use I2C interrupts and boost their priorities to the highest one in the application to make
them uninterruptible
Workarounds
A higher-level mechanism should be used to verify that a write operation is being performed
correctly at the target device, such as:
1. Using the SMBAL pin if supported by the host
2. the alert response address (ARA) protocol
3. the Host notify protocol
Workaround
In the I²C standard, it is allowed to send a Stop only at the end of the full byte (8 bits +
acknowledge), so this scenario is not allowed. Other derived protocols like CBUS allow it,
but they are not supported by the I²C peripheral.
A software workaround consists in asserting the software reset using the SWRST bit in the
I2C_CR1 control register.
2.9.4 Mismatch on the “Setup time for a repeated Start condition” timing
parameter
Description
In case of a repeated Start, the “Setup time for a repeated Start condition” (named Tsu;sta
in the I²C specification) can be slightly violated when the I²C operates in Master Standard
mode at a frequency between 88 kHz and 100 kHz.
The issue can occur only in the following configuration:
● in Master mode
● in Standard mode at a frequency between 88 kHz and 100 kHz (no issue in Fast-mode)
● SCL rise time:
– If the slave does not stretch the clock and the SCL rise time is more than 300 ns (if
the SCL rise time is less than 300 ns the issue cannot occur)
– If the slave stretches the clock
The setup time can be violated independently of the APB peripheral frequency.
Workaround
Reduce the frequency down to 88 kHz or use the I²C Fast-mode if supported by the slave.
2.9.5 Data valid time (tVD;DAT) violated without the OVR flag being set
Description
The data valid time (tVD;DAT, tVD;ACK) described by the I²C standard can be violated (as well
as the maximum data hold time of the current data (tHD;DAT)) under the conditions described
below. This violation cannot be detected because the OVR flag is not set (no transmit buffer
underrun is detected).
This issue can occur only under the following conditions:
● in Slave transmit mode
● with clock stretching disabled (NOSTRETCH=1)
● if the software is late to write the DR data register, but not late enough to set the OVR
flag (the data register is written before)
Workaround
If the master device allows it, use the clock stretching mechanism by programming the bit
NOSTRETCH=0 in the I2C_CR1 register.
If the master device does not allow it, ensure that the software is fast enough when polling
the TXE or ADDR flag to immediately write to the DR data register. For instance, use an
interrupt on the TXE or ADDR flag and boost its priority to the higher level.
2.10.1 CRC still sensitive to communication clock when SPI is in slave mode
even with NSS high
Description
When the SPI is configured in slave mode with the CRC feature enabled, the CRC is
calculated even if the NSS pin deselects the SPI (high level applied on the NSS pin).
Workaround
The CRC has to be cleared on both Master and Slave sides between the slave deselection
(high level on NSS) and the slave selection (low level on NSS), in order to resynchronize the
Master and Slave for their respective CRC calculation.
To procedure to clear the CRC is the following:
1. disable the SPI (SPE = 0)
2. clear the CRCEN bit
3. set the CRCEN bit
4. enable the SPI (SPE = 1)
Workaround
An external interrupt can be enabled on the capture I/O just before reading the capture
register (in the capture interrupt), and disabled just after reading the captured data. Possibly,
a missed capture will be detected by the EXTI peripheral.
Conditions
If a capture occurs while the capture register is being read, an overcapture is detected even
though the previously captured data are correctly read and the new data are correctly stored
into the capture register.
The system is at the limit of an overcapture but no data are lost.
Workaround
None.
Workaround
None.
Workaround
To have a fully stabilized clock in the specified range, a software temporization of 100 µs
should be added.
Workaround
This limitation concerns applications that check the exact number of bytes received in the
packet buffer memory. In order to avoid that these applications interpret a Host error and so,
stall the OUT endpoint even if no data reception error actually occurred, it is recommended
to:
1. increase the APB1 frequency to a minimum of 13 MHz, or
2. increase the APB1 frequency to a minimum of 10 MHz. Then program
USB_COUNTn_RX (via the BLSIZE and NUM_BLOCK[4:0] fields) to have more than
the number of bytes in the maximum packet size allocated for reception in the packet
buffer memory
Figure 1, Figure 2, Figure 3, Figure 4 and Figure 5 show the marking compositions for the
LFBGA100, LQFP100, LQFP64, LQFP48 and VFQFPN36 packages, respectively. Only the
Additional field containing the Revision code is shown.
!DDITIONALINFORMATION
FIELDINCLUDING
2EVISIONCODE
$ATECODE9EAR7EEK
9EAR 7EEK
AIB
Year Week
ai14998b
Year Week
ST logo
a
ai14996c
$ATECODE9EAR7EEK
9EAR 7EEK
!DDITIONALINFORMATIONFIELD
INCLUDING2EVISIONCODE
AID
$ATECODE9EAR7EEK
9EAR 7EEK
!DDITIONALINFORMATIONFIELD
INCLUDING2EVISIONCODE
AIB
Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.