Keil Logo

STM32 Tamper example

The STM32 Tamper example program shows how to configure and use the tamper detection of STMicroelectronics STM32F103xx microcontroller.

BKP_DR1 and BKP_DR2 are set to specific values. Tamper pin is configured to generate an interrupt.
LED PB9 is lit if BKP_DR1, BKP_DR2 are cleared upon a tamper event, LED PB8 is lit if BKP_DR1, BKP_DR2 are not cleared.

The configuration of the clocks, GPIO and tamper is done using the Configuration Wizard in file STM32_Init.c.

Two µVision targets are available:

  • Simulator where the program runs in the software simulator.
  • MCBSTM32 where the program runs from internal Flash located on the microcontroller.

The example is tested with the Keil Evaluation Board MCBSTM32.

STM32_TAMPER.ZIP (31K)
Thursday, February 12, 2009
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.