This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:electronics:stm32:stm32u0_notes [2025/03/12 14:46] – created Andrew Yong | projects:electronics:stm32:stm32u0_notes [2025/03/30 09:33] (current) – [Choosing an LSE Crystal] redundant "substitute" typo Andrew Yong | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== STM32U0 Notes ====== | ====== STM32U0 Notes ====== | ||
- | ===== Native USB ===== | + | ===== Literature |
- | In order to use the native USB for programming on pins PA11 and PA12, the following settings **must** be done in STM32CubeProgrammer | + | * Datasheets |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * Application Notes | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * Reference Manual | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Development Boards ===== | ||
+ | |||
+ | - [[https:// | ||
+ | * Purchasing | ||
+ | * [[https:// | ||
+ | * User Manuals | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | - [[https:// | ||
+ | * Purchasing | ||
+ | * [[https:// | ||
+ | * User Manuals | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Operating Conditions ===== | ||
+ | |||
+ | * VDDx | ||
+ | * 1.71 ≤ VDDx ≤ 3.60 V (absolute maximum: 4.00 V) | ||
+ | * Nucleo-083RC LEDs become very dim when 3.3V net falls below 1.80 V | ||
+ | * Brownout Reset((RM0503, | ||
+ | * Selectable: 1.7, 2.0, 2.2, 2.5 or 2.8 V | ||
+ | |||
+ | ===== Native USB (STM32U073, STM32U083) ===== | ||
+ | |||
+ | In order to use the native USB for programming on pins PA11 and PA12, the following settings **must** be done in STM32CubeProgrammer -> Option bytes -> User Configuration. | ||
^ Option byte name ^ Value ^ Description ^ Notes ^ | ^ Option byte name ^ Value ^ Description ^ Notes ^ | ||
Line 10: | Line 45: | ||
| NRST_MODE | 1 or 3 | 1: Reset input only\\ 3. Bidirectional reset: The NRST pin is configured in reset input/ | | NRST_MODE | 1 or 3 | 1: Reset input only\\ 3. Bidirectional reset: The NRST pin is configured in reset input/ | ||
+ | :!: Note: Native USB does not enumerate if HCLK is lower than the default 16 MHz, e.g. by adjusting the AHB prescaler. It will still work in bootloader mode for DFU, it only affects runtime usage of USB e.g. HID, CDC serial. | ||
+ | ===== STM32duino LowPower & RTC ===== | ||
+ | |||
+ | ^ State ^ Peripherals ^ Memory ^ Voltage Supplies (VDDx) ^ STM32RTC:: | ||
+ | | LowPower.idle() | On | On | On | Supported | Supported | Supported | | ||
+ | | LowPower.sleep() | On | On | On | Supported | Supported | Supported | | ||
+ | | LowPower.deepSleep() | On | On | On | Supported | Supported | Supported | | ||
+ | | LowPower.shutdown() :!: | Off | Off | Off | | Supported | | | ||
+ | |||
+ | :!:: External hardware required | ||
+ | |||
+ | ==== Prerequisites for LowPower.shutdown() ==== | ||
+ | |||
+ | * External 32.768 kHz crystal for LSE((DS14581/ | ||
+ | * < | ||
+ | rtc.begin();</ | ||
+ | |||
+ | ===== Choosing an LSE Crystal ===== | ||
+ | - **Hardware** | ||
+ | - Choose a **32.768 kHz crystal oscillator**(([[https:// | ||
+ | * JLCPCB basic part: [[https:// | ||
+ | - Choose the **load capacitance** | ||
+ | * C1 = C2 = 2 * (C< | ||
+ | * "Stray capacitance C< | ||
+ | - **Software** | ||
+ | - Configure **LSE drive level**: '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' |