UM2505 Introduction User Manual - STMicroelectronics

3y ago
72 Views
5 Downloads
3.78 MB
44 Pages
Last View : 22d ago
Last Download : 3m ago
Upload by : Melina Bettis
Transcription

UM2505User manualSTM32G4 Nucleo-64 boards (MB1367)IntroductionThe STM32G4 Nucleo-64 boards based on the MB1367 reference board (NUCLEO-G431RB, NUCLEO-G474RE, NUCLEOG491RE) provide an affordable and flexible way for users to try out new concepts and build prototypes with the STM32G4Series microcontrollers, choosing from the various combinations of performance, power consumption and features. TheARDUINO Uno V3 connectivity and the ST morpho headers provide an easy means of expanding the functionality of theNucleo open development platform with a wide choice of specialized shields. The STM32G4 Nucleo-64 boards do not requireany separate probe as they integrate the STLINK-V3E debugger/programmer. The STM32G4 Nucleo-64 boards come with thecomprehensive free software libraries and examples available with the STM32CubeG4 MCU Package.Figure 1. NUCLEO-G474RE top viewFigure 2. NUCLEO-G474RE bottom viewPictures are not contractual.UM2505 - Rev 4 - February 2021For further information contact your local STMicroelectronics sales office.www.st.com

UM2505Features1Features STM32G4 microcontroller (Arm Cortex -M4 at 170 MHz) in LQFP64 package featuring:–128 KBytes of Flash memory and 32 Kbytes of SRAM for STM32G431RBT6–512 KBytes of Flash memory and 96 Kbytes of SRAM for STM32G491RET6–512 KBytes of Flash memory and 128 Kbytes of SRAM for STM32G474RET6Fully compatible with STM32G473RET6 (512 Kbytes of Flash memory and 128 Kbytes of SRAM)1 user LED1 user and 1 reset push-buttons32.768 kHz LSE crystal oscillator24 MHz HSE on-board oscillatorBoard connectors:–USB with Micro-AB– Note:UM2505 - Rev 4MIPI debug connector–ARDUINO Uno V3 expansion connector–ST morpho extension pin headers for full access to all STM32G4 I/OsFlexible power-supply options: ST-LINK, USB VBUS, or external sourcesOn-board STLINK-V3E debugger/programmer with USB re-enumeration capability: mass storage, VirtualCOM port, and debug portComprehensive free software libraries and examples available with the STM32CubeG4 MCU PackageSupport of a wide choice of Integrated Development Environments (IDEs) including IAR EmbeddedWorkbench , MDK-ARM, and STM32CubeIDEArm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.page 2/44

UM2505Ordering information2Ordering informationTo order an STM32G4 Nucleo-64 board, refer to Table 1. Additional information is available from the datasheetand reference manual of the target STM32.Table 1. List of available productsOrder codeBoard 1367NUCLEO-G491RE2.1Target STM32STM32G474RET6STM32G491RET6CodificationThe meaning of the codification is explained in Table 2.Table 2. Codification explanationNUCLEO-G4XXRYDescriptionExample: NUCLEO-G474REG4MCU series in STM32 Arm Cortex MCUsSTM32G4 SeriesXXMCU line in the seriesSTM32G474 lineSTM32 package pin count64 pinsRSTM32 Flash memory size:YUM2505 - Rev 4 B for 128 Kbytes E for 512 Kbytes512 Kbytespage 3/44

UM2505Development environment3Development environment3.1System requirementsNote: Windows OS (7, 8, or 10), Linux 64-bit, or macOS USB Type-A or USB Type-C to Micro-B cablemacOS is a trademark of Apple Inc. registered in the U.S. and other countries.Linux is a registered trademark of Linus Torvalds.All other trademarks are the property of their respective owners.3.2Development toolchains IAR Systems - IAR Embedded Workbench (1) Keil - MDK-ARM(1)STMicroelectronics - STM32CubeIDE1. On Windows only.3.3Demonstration softwareThe demonstration software, included in the STM32Cube MCU Package corresponding to the on-boardmicrocontroller, is preloaded in the STM32 Flash memory for easy demonstration of the device peripherals instandalone mode. The latest versions of the demonstration source code and associated documentation can bedownloaded from www.st.com.UM2505 - Rev 4page 4/44

UM2505Conventions4ConventionsTable 3 provides the conventions used for the ON and OFF settings in the present document.Table 3. ON/OFF conventionUM2505 - Rev 4ConventionDefinitionJumper JPx ONJumper fittedJumper JPx OFFJumper not fittedJumper JPx [1-2]Jumper fitted between Pin 1 and Pin 2Solder bridge SBx ONSBx connections closed by 0 Ω resistorSolder bridge SBx OFFSBx connections left openResistor Rx ONResistor solderedResistor Rx OFFResistor not solderedpage 5/44

UM2505Quick start5Quick startThe STM32G4 Nucleo-64 board is a low-cost and easy-to-use development kit, used to evaluate and starta development quickly with an STM32G4 Series microcontroller in LQFP64 package. Before installing andusing the product, accept the Evaluation Product License Agreement from the www.st.com/epla webpage. Formore information on the STM32G4 Nucleo-64 and for demonstration software, visit the www.st.com/stm32nucleowebpage.5.1Getting startedFollow the sequence below to configure the STM32G4 Nucleo-64 board and launch the demonstration application(refer to Figure 4 for component location):1.Check the jumper position on the board (refer to Table 4)2.For the correct identification of the device interfaces from the host PC and before connecting the board,install the Nucleo USB driver available on the www.st.com/stm32nucleo website3.To power the board, connect the STM32G4 Nucleo-64 board to a PC with a USB cable (USB Type-A or USBType-C to Micro-B) through the USB connector CN1 of the board4.Then, green LED LD3 (5V PWR) and red LED LD1 (COM) light up, green LED LD2 (USER) blinks5.Press user button B1 (left blue USER button)6.Observe how the blinking of the green LED LD2 changes according to the clicks on button B17.The software demonstration and the several software examples that allow users to exercise Nucleo features,are available on the www.st.com/stm32nucleo webpage8.Develop your own application using the available examplesTable 4. Jumper JP1NRSTOFFSTLINK-V3E resetJP3T RSTON-ON [1-2] (Default)5V USB STLK (from ST-LINK)ON [3-4] (optional)5V VINON [5-6] (optional)E5VON [7-8] (optional)5V USB CHGRJP55 V power-source selectionJP6IDDON-JP7BOOT0OFF-JP8VREF selection (VREF or VDDvoltage supply selection)ON [1-2] (Default)VREF supplied with VREFON [2-3] (optional)VREF supplied with VDD1. Default jumper state is shown in bold.UM2505 - Rev 4page 6/44

UM2505Hardware layout and configuration6Hardware layout and configurationThe STM32G4 Nucleo-64 board is designed around the STM32 microcontrollers in a 64-pin LQFP package.Figure 3 shows the connections between the STM32 and its peripherals (STLINK-V3E, push-buttons, LEDs, USB,ARDUINO Uno and ST morpho headers). Figure 4 and Figure 5 show the location of these features on theSTM32G4 Nucleo-64 board. The mechanical dimensions of the board are shown in Figure 6.Figure 3. Hardware block diagramUSBMicro-Bconnector(CN1)GNDSTLK RSTRed LEDLD4 (OC)Green/Orange LED LD1(COM)5VPWR SELDEBUGEmbeddedSTLINK-V3ESWDGNDSTLINK-V3E partVCPUARTB1buttonUSERGreen LED LD3(5V PWR)B2buttonRESETGreen LEDLD2 (USER)IDDBOOT0STM32G4XXRYGPIOxxxGPIOUM2505 - Rev 4ST morphoGPIOArduino VCPUARTGPIOArduino ST morphoSWDVREFOSC 32OSC32 kHzcrystal24 MHzcrystalConnectorsor jumperspage 7/44

UM2505PCB layout6.1PCB layoutFigure 4. Top layoutCN2DFU connectorCN1 STLINK-V3ELD1 bicolor LEDMicro-B USB connector(COM)JP1LD4 red LEDLD3 green LEDSTLINK-V3E reset(Over current)(5V PWR)U5 STM32F723IEK6(STLINK-V3E MCU)CN4MIPI10 connectorJP5 5V powersource selectionX1 (25 MHz)B1 USER buttonB2 RESET buttonJP3 Target resetU12 3V3 regulatorLD39050PU33RU11 5V Vin regulatorLD1117S50TRJP8VREF selectionJP6IDD measurementCN6ARDUINO connectorCN5ARDUINO connectorJP7BOOT0U14 voltage ref. ICTL1431CL5TCN8ARDUINO connectorCN9ARDUINO connectorCN7ST morpho pin headerCN10ST morpho pin headerX232 kHzUM2505 - Rev 4X324 MHzHW102product stickerpage 8/44

UM2505PCB layoutFigure 5. Bottom layoutCN1 STLINK-V3ECN2Micro-B USB connectorDFU connectorJP1STLINK-V3E resetHW101board stickerJP5 5V powersource selectionCN4MIPI10 connectorJP3 Target resetJP8VREF selectionJP6IDD measurementCN5ARDUINO connectorCN6ARDUINO connectorJP7 BOOT0CN9ARDUINO connectorCN10ST morpho pin headerUM2505 - Rev 4CN8ARDUINO connectorCN7ST morpho pin headerpage 9/44

UM2505Mechanical drawing6.2Mechanical drawingFigure 6. STM32G4 Nucleo 64 board mechanical drawing (in millimeter)6.3Embedded STLINK-V3EThere are two different ways to program and debug the onboard STM32 MCU: Using the embedded STLINK-V3E Using an external debug tool connected to the CN4 MIPI10 connector.The STLINK-V3E programming and debugging tool is integrated in the STM32G4 Nucleo-64 board.UM2505 - Rev 4page 10/44

UM2505Embedded STLINK-V3EThe embedded STLINK-V3E supports only SWD and VCP for STM32 devices. For information about debuggingand programming features of STLINK-V3, refer to the STLINK-V3SET debugger/programmer for STM8 andSTM32 user manual (UM2448), which describes in details all the STLINK-V3 features.Features supported on STLINK-V3E: 5V power supplied by USB connector (CN1) USB 2.0 high-speed-compatible interface JTAG/serial wire debugging (SWD) specific features:–3 V to 3.6 V application voltage on the JTAG/SWD interface and 5 V tolerant inputs–JTAG–SWD and serial viewer (SWV) communication MIPI10 connector (CN4) Status LED LD1 (COM) that blinks during communication with the PC Fault red LED LD4 (OC) alerting on USB overcurrent request 5 V / 300 mA output power supply capability (U4) with current limitation and LED 5 V power green LED LD3 (5V PWR)6.3.1DriversBefore connecting the STM32G4 Nucleo-64 board to a Windows 7 , Windows 8 or Windows 10 PC via USB,a driver for the STLINK-V3E must be installed (not required for Windows 10 ) . It is available at the www.st.comwebsite.In case the STM32G4 Nucleo-64 board is connected to the PC before the driver is installed, some STM32G4Nucleo-64 interfaces may be declared as “Unknown” in the PC device manager. In this case, the user must installthe dedicated driver files, and update the driver of the connected device from the device manager a shown inFigure 7.Note:Prefer using the USB Composite Device handle for a full recovery.Figure 7. USB composite deviceNote:37xx: 374E for STLINK-V3E without bridge functions 374F for STLINK-V3E with bridge functions6.3.2STLINK-V3E firmware upgradeThe STLINK-V3E embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As thefirmware may evolve during the lifetime of the STLINK-V3E product (for example new functionalities, bug fixes,support for new microcontroller families), it is recommended to visit the www.st.com website before starting to usethe STM32G4 Nucleo-64 board and periodically, to stay up-to-date with the latest firmware version.UM2505 - Rev 4page 11/44

UM2505Embedded STLINK-V3E6.3.3Using an external debug tool to program and debug the on-board STM32There are two basic ways to support an external debug tool:1.Keep the embedded STLINK-V3E running. Power on the STLINK-V3E at first until the COM LED turns red.Then connect the external debug tool through the CN4 STDC14/MIPI-10 debug connector2.Set the embedded STLINK-V3E in hig-impedance state: when jumper JP1 (STLK RST) is ON, theembedded STLINK-V3E is in RESET state and all GPIOs are in high-impedance; then, connect the externaldebug tool to debug connector CN4.Figure 8. Connecting an external debug tool to program the on-board STM32G4Table 5. MIPI10 / STDC14 debug connector (CN4)UM2505 - Rev 4MIPI10 pinSTDC14 pinCN4-1NCReserved-2NCReserved133V3Target VCC24T SWDIO35GND46T SWCLK57GND68T SWO79NCFunctionTarget SWDIO using SWD protocol or Target JTMS (T JTMS) usingJTAG protocolGroundTarget SWCLK using SWD protocol or Target JCLK (T JCLK) usingJTAG protocolGroundTarget SWO using SWD protocol or Target JTDO (T JTMS) usingJTAG protocolNot connectedpage 12/44

UM2505Power supply6.4MIPI10 pinSTDC14 pinCN4Function810T JTDINot used by SWD protocol, Target JTDI (T JTDI) using JTAG protocol,only for external tools911GNDDetect1012T NRSTTarget NRST using SWD protocol or Target JTMS (T JTMS) usingJTAG protocol-13T VCP RXTarget RX used for VCP (must be UART dedicated to bootloader)-14T VCP TXTarget TX used for VCP (must be UART dedicated to bootloader)GND detect for plug indicator, used on SWD and JTAG neitherPower supplyThe power supply can be provided by five different sources: A host PC connected to CN1 through a USB cable (default setting) An external 7 V - 12 V (VIN) power supply connected to CN7 pin 24 An external 5 V (E5V) power supply connected to CN7 pin 6 An external 5 V USB charger (5V USB CHGR) connected to CN1 An external 3.3 V power supply (3V3) connected to CN7 pin 16UM2505 - Rev 4page 13/44

UM2505Power supplyFigure 9. STM32G4 Nucleo-64 board power treeIn case 5V VIN, E5V, 5V USB CHGR, or 3V3 is used to power the STM32G4 Nucleo-64 board, this powersource must comply with the EN-60950-1: 2006 A11/2009 standard and must be Safety Extra Low Voltage(SELV) with limited power capability.If the power supply is 3V3, the ST-LINK is not powered and cannot be used.UM2505 - Rev 4page 14/44

UM2505Power supplyPower supply input from STLINK-V3E USB connector (default setting)The STM32G4 Nucleo-64 board and shield can be powered from STLINK-V3E connector CN1 (5 V) by placing ajumper between pins 1-2 of JP5, “5V SEL”, as illustrated in Figure 10. This is the default setting.Figure 10. Power supply input from STLINK-V3E USB connector with PC (5 V, 500 mA max)PC 500 mACN1STLINK-V3EUSBPower d:UM2505 - Rev 45V3.3 Vpage 15/44

UM2505Power supplyIf the USB enumeration succeeds, the 5V USB STLK power is enabled, by asserting the T PWR EN signalfrom STM32F723IEK6 “STLINK V3” (U5). This pin is connected to a power switch STMPS2151STR (U4), whichpowers the board. The power switch STMPS2151STR (U4) features also a current limitation to protect the PC incase of short-circuit on board. If an overcurrent (more than 500 mA) happens on board, the red LED LD4 is lit.The Nucleo board and its shield can be powered from ST-LINK USB connector CN1, but only ST-LINK circuit getspower before USB enumeration, because the host PC only provides 100 mA to the board at that time.During the USB enumeration, the Nucleo board requires 500 mA power from the host PC: If the host is able to provide the required power, the enumeration finishes by a “SetConfiguration” commandand then, the power switch STMPS2151STR is switched ON, the green LED LD3 (5V PWR) is turned ON,thus Nucleo board and its shield on it can consume 500 mA at the maximum. If the host is not able to provide the requested current, the enumeration fails. Therefore, theSTMPS2151STR power switch (U4) remains OFF and the MCU part including the extension board is notpowered. As a consequence, the green LED LD5 remains turned OFF. In this case, it is mandatory to use anexternal power supply.Caution:If the maximum current consumption of the STM32G4 Nucleo-64 board and its shield boards exceeds 300 mA, itis mandatory to power the STM32G4 Nucleo-64 board with an external power supply connected to E5V, VIN or3.3 V.External power supply input from VIN (7 V - 12 V, 800 mA max)When the STM32G4 Nucleo-64 board is power-supplied by VIN (refer to Table 6 and Figure 11), the jumperconfiguration must be the following: jumper JP2 on pins 3-4 “5V VIN”.The STM32G4 Nucleo-64 board and its shield boards can be powered in three different ways from an externalpower supply, depending on the voltage used. The three cases are summarized in Table 6.Table 6. External power sources: VIN (7 V - 12 V)Input powernameVINUM2505 - Rev 4ConnectorpinsCN6 pin 8CN7 pin 24Voltage rangeMaximumcurrentLimitationFrom 7 V to 12 V only and input current capability islinked to input voltage:7 V to 12 V800 mA 800 mA input current when VIN 7 V 450 mA input current when 7 V VIN 9 V 250 mA input current when 9 V VIN 12 Vpage 16/44

UM2505Power supplyFigure 11. Power supply input from VIN (7 V - 12 V, 800 mA max)5VU11LD1117S50TRU12LDO3V33V3VIN 12 VLegend:VIN 12 V5V3.3 VRefer to Section 6.4.1 for debugging when using an external power supply.UM2505 - Rev 4page 17/44

UM2505Power supplyExternal power supply input from E5V (5 V, 500 mA max)When the STM32G4 Nucleo-64 board is power-supplied by E5V (refer to Table 7 and Figure 12), the jumperconfiguration must be the following: jumper JP5 on pins 5-6 “E5V”.Table 7. External power sources: E5V (5 V)Input power nameConnector pinsVoltage rangeMaximum currentE5VCN7 pin 64.75 V to 5.25 V500 mAFigure 12. Power supply input from 5V EXT (5 V, 500 mA max)5VU12LDO3V3Legend:5V3V33.3 VRefer to Section 6.4.1 for debugging when using an external power supply.UM2505 - Rev 4page 18/44

UM2505Power supplyExternal power supply input from USB charger (5 V)When the STM32G4 Nucleo-64 board is power-supplied by a USB charger on CN1 (refer to Table 8 andFigure 13), the jumper configuration must be the following: jumper JP2 on pins 7-8 “5V CHGR”.Table 8. External power sources: 5V CHGR (5 V)Input power nameConnector pinsVoltage rangeMaximum current5V CHGRCN15V-Figure 13. Power supply input from ST-LINK USB connector with USB charger (5 V)USB chargerCN1STLINK-V3EUSBNo debug5VU12LDO3V33V3Legend:UM2505 - Rev 45V3.3 Vpage 19/44

UM2505Power supplyExternal power supply input from external 3.3 VWhen the 3.3 V is provided by a shield board, it is interesting to use the 3.3 V (CN6 pin 4 or CN7 pin 16) directlyas power input (refer to Table 9 and Figure 14). In this case, the programming and debugging features are notavailable, since the ST-LINK is not powered.Table 9. External power sources: 3V3Input power nameConnector pinsCN6 pin 43V3CN7 pin 16Voltage rangeMaximum current3 V to 3.6 V1.3 AFigure 14. Power supply input from external 3V3No debugXNojumper3V3Legend:UM2505 - Rev 43.3 Vpage 20/44

UM2505Clock sources6.4.1Debugging while using VIN or EXT as an external power supplyWhen powered by VIN or E5V, it is still possible to use the ST-LINK for programming or debugging only, but it ismandatory to power the board first using VIN or EXT, then to connect the USB cable to the PC. In this way theenumeration succeeds, thanks to the external power source.The following power-sequence procedure must be respected:1.Connect jumper JP5 between pins 5 & 6 for E5V or between pins 3 & 4 for VIN2.Connect the external power source to VIN or E5V3.Power on the external power supply 7V VIN 12 V for VIN, or 5V for E5V4.Check that the green LED LD3 is turned ON5.Connect the PC to the USB connector CN1If this order is not respected, the board may be powered by USB first, then by VIN or E5V as the following risksmay be encountered:1.If more than 300 mA current is needed by the board, the PC may be damaged or the current supplied can belimited by the PC. As a consequence, the board is not powered correctly.2.300 mA is requested at enumeration so there is risk that the request is rejected and the enumeration doesnot succeed if the PC cannot provide such current. Consequently, the board is not power supplied (LED LD3remains OFF).6.56.5.1Clock sourcesHSE clock (high-speed external clock)There are four ways to configure the pins corresponding to the high-speed external clock (HSE): MCO from ST-LINK: MCO output of ST-LINK is used as input clock. This frequency cannot be changed, it isfixed at 8 MHz and connected to the PF0-OSC IN of the STM32 microcontroller. The configuration must be:–SB27 ON–SB25 and SB26 OFF–SB24 and SB28 OFF HSE on-board oscillator from X3 crystal (default): For typical frequencies and its capacitors andresistors, refer to the STM32 microcontroller datasheet and to the Oscillator design guide for STM8S,STM8A and STM32 microcontrollers Application note (AN2867) for the oscillator design guide. The X3crystal has the following characteristics: 24 MHz, 6 pF load capacitance, 20 ppm. It is recommended to useNX2016SA-24MHz-EXS00A-CS10820 manufactured by NDK. The configuration must be:–SB25 and SB26 ON–SB24

ARDUINO Uno V3 connectivity and the ST morpho headers provide an easy means of expanding the functionality of the Nucleo open development platform with a wide choice of specialized shields. The STM32G4 Nucleo-64 boards do not require any separate probe as they integrate the STLINK-V3E debugger/programmer. The STM32G4 Nucleo-64 boards come .

Related Documents:

STM32CubeIDE quick start guide - User manual Author: STMICROELECTRONICS Subject: STM32CubeIDE is STMicroelectronics integrated development environment for STM32 microcontrollers and microprocessors. Keywords: STM32, IDE, Eclipse , QSG Created Date: 11/2/2020 4:57:17 PM

[2]. Ben Jordan, Amit Bahl Rigid - Flex PCB Design a guide book for design, Sierra Proto express, 2013 [3]. STMicroelectronics. STM32 embedded graphic objects/ touchscreen library, 2011. [4]. STMicroelectronics. STM32F10xxx ı2c optimized examples, 2010. [5]. STMicroelectronics. Migratin

Morphy Richards Fastbake Breadmaker 48280 User Manual Honda GCV160 User Manual Canon Powershot A95 User Manual HP Pocket PC IPAQ 3650 User Manual Navman FISH 4200 User Manual - Instruction Guide Jensen VM9021TS Multimedia Receiver User Manual Sanyo SCP-3100 User Manual Honda GC160 User Manual Canon AE-1 Camera User Manual Spektrum DX7 User Manual

Ademco Passpoint Plus User Manual Morphy Richards Fastbake Breadmaker 48280 User Manual Honda GCV160 User Manual Canon Powershot A95 User Manual HP Pocket PC IPAQ 3650 User Manual Navman FISH 4200 User Manual - Instruction Guide Jensen VM9021TS Multimedia Receiver User Manual Sanyo SCP-3100 User Manual Honda GC160 User Manual Canon AE-1 Camera .

User manual Discovery kit with STM32L496AG MCU Introduction The 32L496GDISCOVERY Discovery kit is a complete demonstration and development platform for the STMicroelectronics Arm Cortex -M4 core-based STM32L496AGI6 microcontroller. Thanks to the innovative ultra-low-power-oriented features, extended RAM,

E-816 DLL Manual, PZ120E E-621.CR User Manual, PZ160E E-816 LabVIEW Software Manual, PZ121E E-621.SR, .LR User Manual, PZ115E Analog GCS LabVIEW Software Manual, PZ181E E-625.CR User Manual, PZ166E PIMikromove User Manual, SM148E E-625.SR, .LR User Manual, PZ167E E-665 User Manual, PZ127E E-801 User Manual

How a designer can make the most of STMicroelectronics serial EEPROMs Introduction Electrically Erasable and PROgrammable Memory (EEPROM) devices are standard products used for the non-volatile storage of data parameters, with a fine-granularity. This application note describes most of the internal architecture and related functionality of

The threat profile for SECRET anticipates the need to defend against a higher level of capability than would be typical for the OFFICIAL level. This includes sophisticated, well resourced and determined threat actors, such as some highly capable serious organised crime groups and some state actors. Reasonable steps will be taken to protect information and services from compromise by these .