UM1775 User manual Discovery kit for STM32L0 series with STM32L053C8 MCU Introduction The STM32L053 discovery kit (32L0358DISCOVERY) helps you to discover the full features of the STM32L0 series and to develop your applications. It is based on an STM32L053C8T6 and includes an ST-LINK/V2-1 embedded debug tool interface, linear touch sensor, touch keys, IDD current measurement, 2.04” E-paper display, NFC connector for PLUG-CR95HFB board, LEDs, pushbuttons and an USB mini-B connector. Figure 1.
Contents UM1775 Contents 1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Ordering and product information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Hardware layout . . . . . . . . . .
UM1775 7 Contents Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List of tables UM1775 List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. 4/39 ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Debug connector CN5 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
UM1775 List of figures List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. STM32L053 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 STM32L053 discovery hardware block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Top layout . . . . . . . . . . . . . . . . .
Conventions 1 UM1775 Conventions Table 1 provides the definition of some conventions used in the present document. Table 1.
UM1775 2 Ordering and product information Ordering and product information The STM32L053 discovery is a low-cost and easy-to-use development kit to quickly evaluate and start a development with an STM32L0 series microcontroller. Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/stm32l0-discovery. For more information on the STM32L053 discovery board and for demonstration software, visit www.st.com/stm32l0-discovery. 2.
Features 3 UM1775 Features The STM32L053 discovery board offers the following features: 8/39 • STM32L053C8T6 microcontroller featuring 64 KB of flash memory, 8 KB of RAM in an LQFP48 package • On-board ST-LINK/V2-1 with selection mode switch to use the kit as a standalone STLINK/V2-1 (with SWD connector for programming and debugging) • USB re-enumeration capability: three different interfaces supported on USB – Virtual com port – Mass storage – Debug port • Board power supply: through USB b
UM1775 4 Hardware layout Hardware layout The STM32L053 discovery board has been designed around the STM32L053C8T6 microcontroller in a 48-pin LQFP package. Figure 2 illustrates the connections between the STM32L053C8T6 and its peripherals (STLINK/V2-1, linear touch sensor, touch keys, IDD current measurement, 2.04” E-paper display, NFC connector for PLUG-CR95HF-B board, LEDs, pushbuttons and an USB mini-B connector).
Hardware layout UM1775 Figure 3. Top layout 67 /,1. 9 86% 67 /,1. /' &20 86% 86(5 /' 3:5 &1 67 /,1. ',6&29(5< VHOHFWRU &1 1)& FRQQHFWRU -3 UHVHUYHG -3 UHVHUYHG -3 5; 7; 6% 6% UHVHUYHG 9 SRZHU VXSSO\ LQSXW 9 SRZHU VXSSO\ RXWSXW 9 SRZHU VXSSO\ RXWSXW %227 FRQILJXUDWLRQ ´ ( SDSHU GLVSOD\ -3 ,'' PHDVXUHPHQW /' 5HG /(' /' 2UDQJH /(' % XVHU EXWWRQ % UHVHW EXWWRQ /LQHDU WRXFK VHQVRU WRXFK .
UM1775 Hardware layout Figure 4.
Hardware layout 4.1 UM1775 Embedded ST-LINK/V2-1 The ST-LINK/V2-1 programming and debugging tool is integrated on the STM32L053 discovery board. The embedded ST-LINK/V2-1 supports only SWD for STM32 devices. For information about debugging and programming features, refer to user manual UM1075 (ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32) which describes in detail all the ST-LINK/V2 features. The changes versus ST-LINK/V2 version are listed below.
UM1775 Hardware layout Figure 5. Updating the list of drivers in device manager 4.1.2 ST-LINK/V2-1 firmware upgrade The ST-LINK/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As the firmware may evolve during the life time of the ST-LINK/V2-1 product (for example new functionality, bug fixes, support for new microcontroller families), it is recommended to visit www.st.
Hardware layout 4.1.3 UM1775 Using ST-LINK/V2-1 to program/debug the STM32L053 on board To program the STM32L053 on board, simply plug in the two jumpers on CN4, as shown in Figure 6 in red, but do not use the CN5 connector as that could disturb communication with the STM32L053C8T6 of the STM32L053 discovery board. Figure 6.
UM1775 4.1.4 Hardware layout Using ST-LINK/V2-1 to program/debug an external STM32 application It is very easy to use the ST-LINK/V2-1 to program the STM32 on an external application. Simply remove the 2 jumpers from CN4 as shown in Figure 7 and connect your application to the CN5 debug connector according to Table 3. Note: SB13, must be OFF if you use CN5 pin 5 (NRST) in your external application. Table 3.
Hardware layout UM1775 Figure 7. ST-LINK connections 4.2 Power supply and power selection The power supply is provided either by the host PC through the USB cable, or by an external 5 V power supply. The STM32L053 discovery board requires to the Host PC 300mA, but around 90mA is needed for its demo, 100mA for an extension board and a safety margin of 100mA.
UM1775 Hardware layout In this case, the 5V_O and 3V_O pins deliver a 5 V or 3.3 V power supply and the power consumption of the extension board must be lower than 100 mA. • 4.2.1 5 V can also be used as input power supplies, e.g. when the USB connector is not connected to the PC.
Hardware layout 4.3 4.4 18/39 UM1775 1. If more than 300 mA current is needed by the board, the PC may be damaged or the current supply can be limited by the PC. As a consequence the board is not powered correctly. 2. 300 mA is requested at enumeration (since JP2 must be OFF) so there is a risk that the request is rejected and the enumeration does not succeed if the PC cannot provide such current. Consequently the board is not power supplied (LED LD2 remains OFF).
UM1775 4.5 Hardware layout NFC connector for PLUG-CR95HF-B board A NFC (Near Field Communication) transceiver board can be connected to the STM32L053 Discovery board, for example the PLUG-CR95HF-B board. The NFC board is plugged in connector CN1 of STM32L053 Discovery board as following: Figure 8.
Hardware layout UM1775 The NFC board can be accessed in SPI or UART mode. Table 4. NFC connector pin-out CN1 pin 4.
UM1775 Hardware layout • Jumper on position ON: a module onboard is designed to measure from 100 nA to 50 mA by using several MOSFET and switching automatically depending the read value. Figure 10. Jumper on position ON • NO Jumper on JP4: an ammeter must be connected to measure the STM32L053C8T6 current through pin 1 and 2 (if there is no ammeter, the STM32L053C8T6 is not powered). Figure 11. No Jumper 4.8 BOOT0 configuration BOOT0 is at level “0” through a pull-down R65.
Hardware layout UM1775 3 pairs of I/O ports are assigned to the linear touch sensor / touch keys. Each pair must belong to the same analog switch group: • PA2, PA3 (group 1) • PA6, PA7 (group 2) • PB0, PB1 (group 3) To minimize the noise, these pairs are dedicated to the linear touch sensor and the touch keys and are not connected to external headers.
UM1775 Hardware layout MCO from ST-LINK (from MCO of the STM32F103CBT6) This frequency cannot be changed, it is fixed at 8 MHz and connected to PH0-OSC_IN of the STM32L053C8T6. The configuration needed is: – SB20 closed and SB21 open Oscillator from external PH0 (from external oscillator through pin 7 of the P3 connector) The configuration needed is: – SB21 closed and SB20 open Note: Please refer to the AN2867 for oscillator design guide for STM32 microcontrollers. 4.
Hardware layout 4.14 UM1775 Solder bridges Table 5. Solder bridges Bridge State (1) Description OFF X2, C47, C50, R70 and R71 provide a clock. PC14, PC15 are disconnected from P3. ON PC14, PC15 are connected from P3.
UM1775 4.15 Hardware layout Extension connectors The male headers P2 and P3 can connect the STM32L053 discovery board to a standard prototyping/wrapping board. STM32L053C8T6 GPI/Os are available on these connectors. P2 and P3 can also be probed by an oscilloscope, logical analyzer or voltmeter. Table 6.
32 PA12 33 PA13 34 PA14 37 PA15 38 PB0 18 26/39 DocID026429 Rev 2 - SB24 - - - SB17 3(2) SB16 - - - - - - - SB25 SBx(1) CN3 - - - 2(2) - - CN1 - - - - - P3 - - 19 - - 12 - 13 - 14 - 15 - P2 - Power Supply Free I/O 16 - - Idd Measure - - - E-paper Display - - - - TS_G2_IO4 Linear touch sensor - - - ePD1_BUSY - USB USER NFC CR95HF-B LED PushButtons - - - - - - - - - VCP - - - - - - - - - - 17 - - - - - - -
PB5 41 PB6 42 PB7 43 PB8 45 DocID026429 Rev 2 - MFX_I2C_SCL - - - - - - - - - - 4 - 1 - 7 - - - - - SB23 - SBx(1) CN3 CN1 - 2 - - 8 - P3 - 9 - P2 - Power Supply - - Free I/O Idd Measure - - - E-paper Display - - - - - - - USB USER NFC CR95HF-B LED PushButtons VCP TS_G3_IO3 Linear touch sensor - - - - - 10 - - - - ePD1_SCK ePD1_RESET - - - - - - 11 - - - - ePD1_MOSI - - - - - - - GREEN - - - - - 21 - - - -
PB13 26 PB14 27 PB15 28 PC13 2 28/39 DocID026429 Rev 2 - MFX_IRQ_OUT - - - - - - - - - - - - - - - - - - 4 - 5 - 20 - 4 - - - - SBx(1) CN3 CN1 - - 21 - P3 6 - 3 - - 22 - Free I/O P2 - - - Power Supply 3 - E-paper Display Linear touch sensor USB USER NFC CR95HF-B LED PushButtons VCP MFX_I2C_SDA Idd Measure - - - - - - - - - - - - - - ePD1_D/C ePD1_PWR8ENn - - - - - - - - 23 - - - - - - - - - - 23 - - - - -
48 VDD_USB 36 VDDA 9 - - - - - - - - - VLCD 1 - - - - - - - - - VSS 23 DocID026429 Rev 2 - - - - - - - - - - 2 2 8 4(2) - - - - - - - - - - - - - - - - - - - - - - - - SBx(1) CN3 CN1 P3 - - P2 - - Power Supply Free I/O Idd Measure E-paper Display Linear touch sensor USB USER NFC CR95HF-B LED PushButtons VCP - - PC14 PC15 - - - - - - - - - - - - - - - - - - - - - - 5 - - - - 3 - - - - - - -
Hardware layout UM1775 Table 6. Extension connectors (continued) 30/39 DocID026429 Rev 2 SBx(1) - CN3 - 24 - CN1 - 24 - P3 - 6 25 1. Signals available depending on SBx value. Refer to Table 5: Solder bridges or schematics in Section 6. 2.
UM1775 5 Mechanical drawing Mechanical drawing Figure 12.
PB4 PB3 32/39 USB1_DM USB1_DP LD_R LD_G B_USER TS_G2_IO3 TS_G2_IO4 TS_G1_IO3 TS_G1_IO4 DocID026429 Rev 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Header 25 P3 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB10 PB11 NC GND PC13 PC14 PC15 PH0 PH1 NRST GND TS_G3_IO2 USB1_DM TS_G3_IO3 USB1_DP NFC_IRQINn NFC_IRQOUTn NFC_NSS NFC_MOSI NFC_MISO NFC_SCK LD_R LD_G B_USER NRST U_SENSOR_PB SENSOR_PB.
C6 R27 USB 1 2 3 4 5 6 USB-MINI-typeB VCC DD+ ID GND SHELL CN2 SB14 R6 R8 R7 R5 TX RX 1K5 0 USB_DM 0 USB_DP 100K 1 JP3 3V3_ST_LINK SB2 SB3 T1 9013-SOT23 5V_USB_ST_LINK USART_TX MFX_USART3_TX SB15 Close to JP Not Fitted AIN_1 OSC_IN OSC_OUT STM_RST [NA] 3V3_ST_LINK C18 100nF 4K7 R30 4K7 R29 MFX_USART3_RX USART_RX SB10 R31 100K 8MHz 20pF X1 20pF 3V3_ST_LINK 1 2 C7 Board Ident: PC13=0 VBAT PC13 PC14 PC15 OSCIN OSCOUT NRST VSSA VDDA PA0 PA1 PA2 R23 36K R9 10K R10 100 Not Fitte
DocID026429 Rev 2 PC15 PC14 PH0 MCO SB20 PC14-OSC32_IN PH0-OSC_IN PC15-OSC32_OUT R71 R70 0 0 Not Fitted C53 100nF VDDA C54 1uF Ferrite L3 C44 100nF C48 100nF C52 100nF 6.8pF C47 6.
PB10 ePD1_PWR_ENn R44 10K_1%_0402 3V3 D G D S G ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI S T5 Not Fitted ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI 100nF_X7R_0603 ePD1_PWR_ENn PA8 PB2 PB11 PA15 PB3 PB5 STLM75DS2F 3 T6 FDC606P R43 10_1%_0805 T5 STS7P2UH7 1 2 3 4 R41 VDD_ePD1 C25 R37 10K_1%_0402 R42 2.
1 1 LS_P1 C14 47nF R18 10K 2 2 LS_P2 R19 10K LS_P3 3 3 C12 47nF TS_G2_IO4 PA3 PA2 TS_G2_IO3 TS_G3_IO3 PA7 PA6 TS_G3_IO2 PB1 PB0 Linear Touch Sensor made of 3 electrodes C13 47nF TS_G1_IO4 TS_G1_IO3 R17 10K NFC_IRQINn NFC_MISO NFC_SCK 2 4 6 8 8 6 4 2 1 3 5 7 female conn 4X2 7 5 3 1 CN1 C1 100nF PB4 PA5 LD_G LD_R NFC LD_G R60 330 LD_R R69 1K NFC kit reference: CR95HF-B NFC_IRQOUTn NFC_NSS NFC_MOSI LED, green LED, red LD3 LD4 3V3 PB7 PB12 PB15 Operating Voltage:
3 5 6 7 8 1 2 3 3V3 VDD JP4 R58 10K_1%_0402 R59 1_1%_0805 C41 100nF C38 100nF C42 100nF 3V3 4 MFX_IDD_CAL T11 FDC606P T12 STS7P2UH7 R56 10K_1%_0402 G D D S S G T12, T14 Not Fitted C34 100nF T13 T14 FDC606P STS7P2UH7 MFX_IDD_SH0 1 2 5 6 4 3V3 C36 1uF Ferrite L2 S D C40 100nF G 1 2 3 4 3 VDDA_L1 G 3V3 VDDA_L1 10K C39 1uF 0 1 2 3 4 5 6 7 8 9 10 11 12 R57 10K_1%_0805 3 5 6 7 8 1 2 5 6 4 R53 10K_1%_0402 R52 24_1%_0805 T7 T8 FDC606P STS7P2UH7 MFX_IDD_SH1 1 2 3 4 5
Revision history 7 UM1775 Revision history Table 7. Document revision history 38/39 Date Revision Changes 20-June-2014 1 initial release 24-June-2014 2 Removed embedded USB bootloader paragraph.
UM1775 Please Read Carefully: 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.