background image

...the world's most energy friendly microcontrollers

2010-11-12 - t0008_1.01

11

www.energymicro.com

Returns instant current usage in milliamperes.

      float STK_Voltage(void);

      

Returns instant voltage (VMCU) reading in volt.

      bool STK_EnergyMode(uint8_t em);

      

Informs the board controller about the Energy Mode (sleep mode) we are going into. This information
can be used by the board controller to present a richer visual graph for illustrating what the EFM32 is
currently doing.

In addition to these main functions, full documentation of the complete API is included in the Doxygen/
HTML documentation of the installed package.

9.3 Example Applications

Under  the  EFM32_Gxxx_STK/examples  folder  in  your  installation  directory,  you  will  find  an  example
program using the BSP, with corresponding project/Makefiles for the supported IDEs.

9.4 How to include in your own applications

The easiest way to include the BSP in your application is to base your work on the example application
that use the BSP. The following items are recommended for correct configuration:

1. Make  sure  you  define  the  correct  part  number  (i.e.  EFM32G890F128)  as  a  preprocessor  defined

symbol

2. Make sure you define the correct part number (i.e. EFM32G890F128) for your project file
3. Add  and  include  the  EFM32_CMSIS-files  (startup_efm32.s,  system_efm32.c,  core_cm3.c)  to  your

project

4. Add and include _all_ BSP package .c-files, with the stk-prefix to your project
5. Configure include paths to point at the CMSIS/CM3/CoreSupport and CMSIS/CM3/DeviceSupport/

EnergyMicro/EFM32 directories

6. Configure include paths to point to the EFM32_Gxxx_STK/bsp directory

Make sure you call "STK_Init()" early at startup, and you should be all set.

9.5 Chip errata

Early  versions  of  the  development  kit  are  shipped  with  EFM32  Engineering  Samples  on  the  MCU
modules. There has been updates to configuration and reset values that needs to be configured correctly
on these early parts. We recommend always starting your application with a call to

      #include "efm32_chip.h"

      CHIP_Init();

    

in the EFM32_CMSIS (version 1.3.0 or later) core package to ensure correct and stable behavior. See
the  BSP  examples  for  details.  We  recommend  also  to  download  and  read  the  latest  errata  from  the
Energy Micro website for your part number.

Summary of Contents for EFM32-G8XX-STK

Page 1: ...uation prototyping and application development for the EFM32 Gecko MCU family with the ARM Cortex M3 CPU core Main features Advanced Energy Monitoring provides real time visibility into the energy con...

Page 2: ...precise current tracking Special hardware configuration for isolation of the MCU power domain Full feature USB debugger with debug out functionality 160 segment Energy Micro LCD 20 pin expansion heade...

Page 3: ...01 3 www energymicro com 2 STK block diagram An overview of the Kit is shown in the block diagram below Figure 2 1 EFM32 G8XX STK Block Diagram EFM32 3V CR2032 BC 20 4 44 2 4 50 4 EXP Touch Gecko Touc...

Page 4: ...the world s most energy friendly microcontrollers 2010 11 12 t0008_1 01 4 www energymicro com 3 Hardware layout The layout of the EFM32 G8XX STK is shown below Figure 3 1 EFM32 G8XX STK hardware layou...

Page 5: ...socket for a 20mm coin cell battery which can be used to power the kit When the USB is disconnected and the battery connect switch is turned on the EFM and its peripherals is powered by the battery Th...

Page 6: ...gymicro com 5 Reset infrastructure 5 1 MCU The primary user reset for the MCU is the reset button on the MCU board This will only reset the MCU The MCU can also be reset by debuggers 5 2 Board control...

Page 7: ...o the EFM and are debounced by RC filters with a time constant of 1ms 6 2 LEDs There are four LEDs on the kit marked LED0 to LED3 An active high on the respective pins will light the LEDs 6 3 LCD An E...

Page 8: ...e noise averaging of the samples is performed before the current measurement is presented in the AEM GUI During startup of the kit a calibration of the AEM is performed This calibration compensates fo...

Page 9: ...EFM and the BC The connection is made by setting the bc_en line high The EFM can then use the BSP to send commands to the BC When bc_en is low bc_tx and bc_rx can be used by other applications To use...

Page 10: ...l give unpredictable results 9 1 Installation location When installing the complete software package for the kit the BSP will be installed under the main installation directory typically in a location...

Page 11: ...or correct configuration 1 Make sure you define the correct part number i e EFM32G890F128 as a preprocessor defined symbol 2 Make sure you define the correct part number i e EFM32G890F128 for your pro...

Page 12: ...A12 TIM2_CC0 LCD Boost capacitor PA13 TIM2_CC1 LCD Boost capacitor PA14 TIM2_CC2 LCD Boost capacitor GND PE0 U0_TX PCNT0_S0 BC_TX PE1 U0_RX PCNT0_S1 BC_RX PE2 ACMP0_O EXP header PE3 ACMP1_O GND PC0 AC...

Page 13: ...11 DAC_OUT0 LET0_O0 EXP header PB12 DAC_OUT1 LET0_O1 EXP header PB15 GND PD0 US1_TX PCNT2_S0 EXP header PD1 TIM0_CC0 US1_RX PCNT2_S1 EXP header PD2 TIM0_CC1 US1_CLK EXP header PD3 TIM0_CC2 US1_CS EXP...

Page 14: ...CU GPIO pin MCU GPIO pin functions 1 GND Ground 2 VMCU MCU supply voltage 3 PC4 USART2_CLK 0 LETIMER_OUT0 3 PCNT1_S0IN 0 ACMP0_CH4 4 PD0 USART1_TX 1 PCNT2_S0IN 0 ADC0_CH0 5 PC5 USART2_CS 0 LETIMER_OUT...

Page 15: ...t voltage on the debugged application 2 NC 3 TRST JTAG tap reset 4 GND 5 TDI JTAG data in 6 GND 7 TMS SWDIO JTAG TMS or Serial Wire data I O 8 GND 9 TCK JTAG TCK or Serial Wire clock 10 GND 11 RTCK JT...

Page 16: ...board debugger is disconnected and an external debugger can be connected to debug the EFM on the EFM32 G8XX STK Debug OUT In this mode the on board debugger can be used to debug an EFM mounted in your...

Page 17: ...n how to use it You will find the IAR project file in the iar subfolder of each project 12 2 Rowley Associates CrossWorks for ARM See the quick start guide for download details for CrossWorks for ARM...

Page 18: ...ration Using the command line involves runnig the binary in a command shell with an appropriate argument e g eACommander exe help All command line options will be parsed in the other they are given so...

Page 19: ...the latest available Kit SW package It is important to upgrade the kit when installing a new SW package as new energyAware Commander functionality might require kit controller software upgrades You ca...

Page 20: ...www energymicro com for the latest erra updates on your device 14 2 efm32lib Chip Init routine The efm32lib include efm32_chip h CHIP_Init routine will as far as possible enable work arounds for chip...

Page 21: ...1 01 21 www energymicro com 15 Version information The current version information can be read from Gecko Commander Table 15 1 Current versions Type Version Released Firmware revision 1v3p0 2010 11 15...

Page 22: ...the world s most energy friendly microcontrollers 2010 11 12 t0008_1 01 22 www energymicro com 16 Schematic On the next pages you can find the schematic and the assembly drawings of the main board...

Page 23: ...Approved Sheet Created Date Sheet Modified Date Document number Schematic Title Design Created Date BOM Doc No Page Title A03 BRD2001A Tuesday June 29 2010 1 10 A3 GB OrgAddr2 EFM32 Starter Kit Cage C...

Page 24: ...Design Created Date BOM Doc No Page Title A03 BRD2001A Tuesday June 29 2010 2 10 A3 GB OrgAddr2 EFM32 Starter Kit Cage Code Saturday March 21 2009 Wednesday December 03 2008 TOP Schematic Path User In...

Page 25: ...2 4 6 LCD_PB 6 0 p 4 6 MCU_PA 15 0 p 2 4 6 MCU_PB 15 0 p 2 4 5 6 LCD_PD 12 9 p 4 6 MCU_PD 15 0 p 2 4 6 LCD_PE 15 4 p 4 6 MCU_PE 15 0 p 2 4 6 LCD_PF 9 2 p 4 6 MCU_PF 9 0 p 4 6 9 MCU_PC 15 0 p 2 4 9 MCU...

Page 26: ...1 E10 E2 ACMP0 _OUT 1 F10 E3 ACMP1_OUT 1 E11 E4 USART0_CS 1 LCD_COM0 A9 E5 USART0_CLK 1 LCD_COM1 B9 E6 USART0_RX 1 LCD_COM2 C9 E7 USART0_TX 1 LCD_COM3 D9 E8 EBI_AD0 PCNT2_S0IN 1 LCD_SEG4 B4 E9 EBI_AD...

Page 27: ...ower Size Designed Revision Sheet of Approved Sheet Created Date Sheet Modified Date Document number Schematic Title Design Created Date BOM Doc No Page Title A03 BRD2001A Tuesday June 29 2010 5 10 A3...

Page 28: ...2 Starter Kit Cage Code Tuesday January 12 2010 Wednesday December 03 2008 TOP Schematic Path LCD Size Designed Revision Sheet of Approved Sheet Created Date Sheet Modified Date Document number Schema...

Page 29: ...f Approved Sheet Created Date Sheet Modified Date Document number Schematic Title Design Created Date BOM Doc No Page Title A03 BRD2001A Tuesday June 29 2010 7 10 A3 GB OrgAddr2 EFM32 Starter Kit Cage...

Page 30: ...700 NM 1 2 C703 10U C703 10U R711 4R7 R711 4R7 R724 1R R724 1R R701 4R7 R701 4R7 R706 22K R706 22K TP713 TP713 C712 1N C712 1N C711 100N C711 100N C715 100N C715 100N R700 10K R700 10K P700 COIN_CELL...

Page 31: ...chematic Path Debug Interface R804 100K R804 100K U803B 74LVC2G125DC U803B 74LVC2G125DC 5 7 3 TP801 TP801 R803 100K R803 100K TP812 TP812 U806A 74LVC4066 U806A 74LVC4066 1Y 1 1Z 2 1E 13 2Y 4 3Y 8 4Y 1...

Page 32: ...rol MCU PORT A PORT B PORT C U900A Control MCU PA0 WKUP USART2_CTS ADC123_IN0 TIM2_CH1_ETR TIM5_CH1 TIM8_ETR G2 PA1 USART2_RTS ADC123_IN1 TIM5_CH2 TIM2_CH2 H2 PA2 USART2_TX ADC123_IN2 TIM5_CH3 TIM2_CH...

Page 33: ...05 R606 R607 R608 R609 R610 R611 R612 R700 R701 R702 R703 R704 R705 R706 R707 R708 R709 R710 R711 R712 R713 R714 R715 R716 R717 R718 R719 R720 R721 R722 R723 R724 R725 R727 R728 R729 R800 R801 R802 R8...

Page 34: ...P900...

Page 35: ...the world s most energy friendly microcontrollers 2010 11 12 t0008_1 01 34 www energymicro com...

Page 36: ...the world s most energy friendly microcontrollers 2010 11 12 t0008_1 01 35 www energymicro com...

Page 37: ...Installation location 10 9 2 Application Programming Interface 10 9 3 Example Applications 11 9 4 How to include in your own applications 11 9 5 Chip errata 11 10 Connectors 12 10 1 Breakout pads 12...

Page 38: ...the world s most energy friendly microcontrollers 2010 11 12 t0008_1 01 37 www energymicro com List of Figures 2 1 EFM32 G8XX STK Block Diagram 3 3 1 EFM32 G8XX STK hardware layout 4...

Page 39: ...es 7 1 AEM accuracy 8 10 1 Bottom breakout pad row 12 10 2 Top breakout pad row 13 10 3 Expansion header pinout 14 10 4 Expansion header pin list 14 10 5 Debug connector pinout 15 11 1 Debug modes 16...

Page 40: ......

Reviews: