background image

April 2011

Doc ID 18064 Rev 1

1/49

UM1011

User manual

STM32100E-EVAL demonstration firmware

Introduction

This user manual describes the demonstration firmware running on the STM32100E-EVAL 
evaluation board, which can be used to evaluate the capabilities of the high-density value 
line STM32F100ZET6 microcontroller and on-board peripherals. 

This demo contains many applications that can be easily reused, such as RTC calendar, file 
system FAT implementation on SD Card, Waveplayer with STM32 DAC peripheral, HDMI 
CEC networking demo with an infrared remote control capability, temperature sensor 
interfacing and TFT LCD with touch screen.

The STM32100E-EVAL board is delivered with the demonstration programmed in the 
internal Flash memory, and all the files needed by the demonstration are programmed in the 
MicroSD card. At each reset (board power-up, external reset, etc.), the demonstration is 
executed.

In case the STM32100E-EVAL board was not factory-programmed or the demonstration 
application was erased, the in-circuit programming (ICP) boot loader can be used to 
program this file. For more details, refer to 

Section 3: STM32100E-EVAL demonstration 

package

 and 

Section 4: STM32100E-EVAL demonstration programming

.

This demonstration firmware is available for download from the STMicroelectronics website: 

www.st.com

.

www.st.com

Содержание STM32100E-EVAL

Страница 1: ...trol capability temperature sensor interfacing and TFT LCD with touch screen The STM32100E EVAL board is delivered with the demonstration programmed in the internal Flash memory and all the files needed by the demonstration are programmed in the MicroSD card At each reset board power up external reset etc the demonstration is executed In case the STM32100E EVAL board was not factory programmed or ...

Страница 2: ... Motor control 9 1 10 IrDA 9 1 11 Miscellaneous peripherals 9 1 11 1 Joystick 9 1 11 2 Push buttons 9 1 11 3 12 bit analog to digital converter ADC 9 1 11 4 Audio amplifier 9 1 11 5 Storage memories 9 1 11 6 Temperature sensor 10 2 Running the demonstration 11 2 1 Menu tree and navigation 11 2 2 Demonstration startup 12 2 3 Time and date configuration 14 2 4 Menu navigation 14 2 4 1 Navigation pro...

Страница 3: ...ndar 24 2 7 3 Image Viewer submenu 29 2 7 4 Wave Player submenu 30 2 7 5 Low power modes 32 2 7 6 Infrared decoding 37 2 7 7 Thermometer 38 2 7 8 HDMI CEC submenu 39 2 7 9 Help submenu 42 2 7 10 About submenu 43 3 STM32100E EVAL demonstration package 44 3 1 Libraries 45 3 2 Project 45 3 3 Utilities 45 4 STM32100E EVAL demonstration programming 46 4 1 Programming the media files 46 4 2 Programming ...

Страница 4: ...oc ID 18064 Rev 1 List of tables Table 1 STM32F100ZET6 demonstration peripherals 18 Table 2 STM32F100ZET6 demonstration interrupts 19 Table 3 STM32F100ZET6 demonstration external interrupts 20 Table 4 Document revision history 48 ...

Страница 5: ...e 21 End of slide show 24 Figure 22 Setting the time and date 25 Figure 23 Time Adjust submenu 25 Figure 24 Time Show submenu 26 Figure 25 Setting the year 26 Figure 26 Setting the month 27 Figure 27 Setting the day of the month 27 Figure 28 Date Show submenu 27 Figure 29 Setting the alarm activation time 28 Figure 30 Alarm Show submenu 28 Figure 31 Time and date not configured 29 Figure 32 Image ...

Страница 6: ...mperature display 39 Figure 55 Temperature sensor error 39 Figure 56 HDMI CEC submenu selected 40 Figure 57 HDMI CEC configuration submenu 40 Figure 58 CEC menu 40 Figure 59 Select CEC command 41 Figure 60 Receive subscreen information 41 Figure 61 Help submenu 42 Figure 62 Joystick push buttons 42 Figure 63 Second Help slide 43 Figure 64 About submenu 43 Figure 65 STM32100E EVAL demonstration pac...

Страница 7: ...izes the main functional blocks of the evaluation board Figure 1 Evaluation board overview 34 4 23 TRANSCEIVER R TRANSCEIVER 6 ICRO3 CARD 3PEAKER AMPLIFIER CONNECTOR S 0OTENTIOMETER 53 24 CONNECTOR 0 XTENSION CONNECTOR FOR 0 S 4EMPERATURE SENSOR 4 OYSTICK MBEDDED 34 53 4YPE CONNECTOR UTTONS OTOR CONTROL CONNECTOR 4 TRACE CONNECTOR 53 24 CONNECTOR 30 53 24 23 TRANSCEIVER 3ERIAL LASH 30 CONNECTOR CO...

Страница 8: ...set button activates the RESET input when pressed JTAG reset 1 4 Debugging JTAG interface Software debug is done via the standard ARM JTAG interface a 20 pin IDC insulation displacement connector for connection to the standard ARM host interface 1 5 Serial wire debugger interface The serial wire debug port SWD DP provides a 2 pin clock data interface to the AHP AP port 1 6 Embedded ST LINK The ST ...

Страница 9: ...key 1 11 2 Push buttons The following push buttons are available Key Tamper Wakeup used to wake up the processor from low power mode 1 11 3 12 bit analog to digital converter ADC The MCU ADC channel ADC1_IN14 is connected to an on board variable resistor The variable resistor provides a voltage in the range of 0 V to 3 3 V Moreover a BNC connector is available for analog input 1 11 4 Audio amplifi...

Страница 10: ...Evaluation board overview UM1011 10 49 Doc ID 18064 Rev 1 1 11 6 Temperature sensor The STM32100E EVAL evaluation board includes an I2 C temperature sensor connected to the I2C2 peripheral ...

Страница 11: ... the user to navigate between items in the main menu and the submenus The user can also navigate through the demonstration menu by using the touch screen The touch screen works only at the first level of the demonstration main menu To enter a submenu press the SEL push button The SEL push button designates the action of vertically pressing the top of the joystick as opposed to moving it horizontal...

Страница 12: ...start and the message shown in Figure 3 is displayed on the LCD screen 0RODUCT PRESENTATION 3TART 4IME ATE LARM ALENDAR 2ETURN 3TART ELP 4HERMOMETER 3 6 2ETURN 3 2 BOUT 2ETURN 2ETURN 3HOW 3HOW 0HILIPS 2 BOUT OW POWER MODE 7AVE 0LAYER MAGE 6IEWER MAGE 6IEWER 2ETURN 2ETURN 2ETURN 3TANDBY 3TOP 2ETURN 2ETURN 2ETURN 2ETURN XIT 24 ALARM XIT WAKEUP PIN XIT 84 2ETURN 2ETURN AIN MENU XIT 24 ALARM NFRARED D...

Страница 13: ...he MicroSD Card for the demonstration to start If an icon is missing the demonstration does not start and the message shown in Figure 4 is displayed on the LCD screen Figure 4 Warning message If the icons are correctly loaded into the SD Card memory the welcome screen is displayed and the ST logo appears on the LCD screen Figure 5 ST logo Please insert SD Card Warning No loaded Bitmap files Demo c...

Страница 14: ...ation sequence press any key except for the SEL push button The main menu is displayed Note 1 You can set the time parameters at any time by using the Calendar menu see Section 2 7 2 Calendar 2 If the time has already been configured then the number of elapsed days higher than 1 day since the last time the demonstration board was powered up appears on the LCD screen It is soon followed by the curr...

Страница 15: ...ion menu is based on circular navigation submenu selection item selection and back navigation To navigate through the demonstration menus use the joystick push buttons located on the evaluation board RIGHT LEFT UP DOWN and SEL The UP DOWN RIGHT and LEFT push buttons are used to perform circular navigation in the main menu and the current menu items TOUCH SCREEN is used also to perform navigation o...

Страница 16: ...ock source 24 MHz The HCLK frequency is set to 24 MHz The timer clock TIMCLK is set to 24 MHz PCLK1 is set to 24 MHz PCLK2 is set to 24 MHz Only the RTC is clocked by a 32 kHz external oscillator Figure 11 illustrates the clock tree organization for this demonstration TEM TEM TEM TEM TEM TEM TEM TEM TEM TEM TEM TEM TEM TEM 2IGHT EFT 2IGHT EFT 2IGHT EFT 2IGHT EFT 2IGHT EFT 2IGHT EFT 2IGHT EFT 2IGHT...

Страница 17: ...ot present You must connect the crystal before starting the demonstration Connecting the 8 MHz crystal after reset may not restart the demonstration correctly If the 8 MHz crystal is not reconnected in the next few seconds the MCU enters Standby mode If the 8 MHz crystal is reconnected within a few seconds a system reset is generated When a timeout occurs the MCU enters Standby mode and the messag...

Страница 18: ...ripherals Applications I2C2 Temperature sensor BKP Calendar demo kernel EXTI Menu navigation joystick push button low power modes GPIO All applications LEDs NVIC All applications using interrupts PWR Low power modes RCC All applications demo kernel RTC Calendar FSMC Color LCD SysTick Generate 10 ms time base TIM1 LED toggling DMA2 Wave Player TIM6 Wave Player DAC Wave Player SPI1 SPI Flash SPI2 MS...

Страница 19: ...Preemption fixed 2 CSS interrupt EXTI0 Preemption 2 SubPriority 1 Menu navigation EXTI9_5 Preemption 2 SubPriority 1 Menu navigation EXTI15_10 Preemption 0 SubPriority 0 Menu navigation I2C2 Error Preemption 0 SubPriority 0 SMBus Alert interrupt TIM6_UP Preemption 0 SubPriority 1 Sampling rate TIM1_UP Preemption 1 SubPriority 3 LED toggling RTC Alarm Preemption 0 SubPriority 1 Alarm generation TIM...

Страница 20: ...ing edge EXTI line11 Joystick DOWN interrupt interrupt mode falling edge SD Card Detection interrupt mode rising edge EXTI line12 IO expander Interrupt interrupt mode rising falling edge EXTI line13 TAMPER push button interrupt mode falling edge EXTI line15 Joystick UP interrupt mode falling edge EXTI line17 RTC alarm interrupt mode rising edge a The DosFs is a FAT compatible filesystem intended f...

Страница 21: ...re your 16 bit bitmap images 320x240 and waves This folder is used only by the Image Viewer and Wave Player submenus For more details on the different files properties please refer to Section 2 7 3 Image Viewer submenu and Section 2 7 4 Wave Player submenu Figure 15 MicroSD Card organization At the main menu and at any point of these applications Product Presentation Image Viewer and Wave Player i...

Страница 22: ... features The product presentation is made with a slide show Each slide is associated with a dedicated speech When you start the product presentation the first slide appears and the corresponding speech starts Once the speech is finished the second slide is displayed accompanied by its speech and so on until the last slide When the Product presentation menu is selected the message shown in Figure ...

Страница 23: ...d last slides respectively Figure 18 First presentation slide Figure 19 Last presentation slide Product presentation speech The STM32100E EVAL features an external audio amplifier used to play speech audio files through the embedded speaker The properties of the product presentation speech wave file are the following Playing time 6 min 16s File size 3 014 752 bytes Format tag PCM Channels Mono Sam...

Страница 24: ...running counters These can be used with suitable software to implement a clock calendar function The counter values can be written to set the current time of the system This submenu is used to configure the time date and alarm The date time and alarm settings are not lost when the board is powered off owing to the battery connected to the VBAT pin The VBAT pin supplies power to the RTC unit allowi...

Страница 25: ...Figure 23 is displayed on the LCD To modify the first digit of the hour field use the UP and DOWN push buttons Press UP to display the current value plus one Press DOWN to display the previous digit value 2 After setting the digit value press SEL The cursor automatically jumps to the next digit When all the time digits have been set the Time submenu appears Some digit values are limited to a range...

Страница 26: ...the user to set the time and date or to exit to the upper submenu The date is displayed as Year Month Week Nbr Day Nbr number of the day in the year with the selected day shown in the month There is no default date since you have to set the date at least once To adjust the date 1 Start by selecting the year To select the year use the UP or DOWN push button Pressing the UP push button displays the ...

Страница 27: ...ush button to store the entered value and exit to the Date submenu The current date value is now displayed Figure 27 Setting the day of the month Date Show this item displays the current date If the time and date have not been previously configured the message shown in Figure 28 is displayed You have the choice to set the time date or to exit to the upper submenu Figure 28 Date Show submenu ...

Страница 28: ...ame way as in the Time Adjust submenu The following messages are successively displayed on the LCD when this submenu is selected Figure 29 Setting the alarm activation time Alarm Show this item displays the current alarm time The default alarm activation time displayed after powering up is 00 00 00 The message shown in Figure 30 is displayed on the LCD when this submenu is selected Figure 30 Alarm...

Страница 29: ... see Section 4 1 Programming the media files and displays only the BMP files having the following format Bit depth 16 bits RGB Size 240x320 The maximum images number that can be read from the MicroSD Card is 25 images selected by alphabetic order The Image Viewer submenu is shown in Figure 32 Figure 32 Image Viewer submenu Use RIGHT and LEFT to go to the next previous image stored in the USER fold...

Страница 30: ...ote The wave files available in the MicroSD Card are based on free music downloads from the http www danosongs com website This application reads all wave files from the USER directory see Section 4 1 Programming the media files and displays only the WAV files having the following format Audio format PCM an uncompressed wave data format in which each value represents the amplitude of the signal at...

Страница 31: ...Press the SEL push button to pause the audio stream Press the LEFT push button to decrement the audio stream Press the RIGHT push button to increment the audio stream Press the DOWN push button to exit the Wave Player submenu Press the TAMPER push button to decrement the volume level Press the KEY push button to increment the volume level When the audio stream is paused the menu in Figure 36 is di...

Страница 32: ...enter Stop mode Figure 37 Stop mode menu There are two ways to make the STM32F100ZET6 exit Stop mode In the first case you can use the EXTI Key button Once the Stop mode submenu has been selected the red LEDs continue blinking until the SEL push button is pressed and the system enters Stop mode When the MCU is in Stop mode the message shown in Figure 38 is displayed on the LCD Figure 38 Stop mode ...

Страница 33: ...ssage shown in Figure 40 is then displayed Figure 40 RTC Alarm wakes up the MCU from Stop mode In the second case the RTC Alarm wakes up the MCU from Stop mode after the programmed time has elapsed When selecting this submenu you have to set the alarm to the time when the MCU is to exit Stop mode To set the wakeup time follow the procedure explained in section Time submenu Figure 41 Setting the wa...

Страница 34: ...clock is then set to 24 MHz and the application resumes execution The message shown in Figure 43 is displayed on the LCD screen Figure 43 RTC Alarm wakeup Note If the time and date have not been set the message shown in Figure 44 is displayed on the LCD screen Figure 44 Time and Date configuration prompt MCU in Stop Mode Wait For RTC Alarm Stop Mode Wakeup by RTC Alarm continue Press joystick to T...

Страница 35: ...JP4 is in wakeup position Figure 46 MCU in Standby mode The MCU remains in Standby mode until the Wakeup push button is pressed Once you press the Wakeup push button the MCU exits Standby mode and the system reset signal is generated Note If an RTC Alarm is generated while the MCU is in Standby mode and the message shown in Figure 46 is displayed which means that the Wakeup push button needs to be...

Страница 36: ... RTC Alarm wakeup configured After the programmed timing has elapsed the system exits Standby mode and a system reset signal is generated Note If the time and date have not been set the message shown in Figure 49 is displayed on the LCD screen Figure 49 Time and Date configuration prompt HH MM SS MCU in Standby Mode Wait For RTC Alarm Time and Date are parameters Press not configured Calendar menu...

Страница 37: ...nu shown in Figure 51 is displayed Figure 51 Infrared protocol submenu This submenu is divided into two items Show you can use this submenu to display on the LCD the IR frame sent from the remote control To exit the infrared protocol submenu press the SEL push button You then return to the Infrared protocol submenu shown in Figure 51 Return use this item to return to the infrared decoding menu sho...

Страница 38: ...e temperature value is displayed in Celsius and Fahrenheit as shown in Figure 53 Press any key to return to the Thermometer submenu Figure 53 Temperature display The temperature variations can be monitored easily using the STM32 I2C SMBus feature This is managed by the SMBus Alert which generates a dedicated interrupt to inform the system that the temperature is out of the selected range This can ...

Страница 39: ...ET6 microcontroller features an HDMI CEC peripheral This demonstration shows how to configure this peripheral and how to create a CEC network providing a high level communication between various devices using CEC protocol messages For more details refer to application note AN3127 CEC networking using STM32F100xx value line microcontrollers This application note provides a full description of the S...

Страница 40: ...he CEC receive information receive status sender address a subscreen prompting you to select the follower address and the command to send Figure 58 CEC menu After selecting the follower address select the command to be sent to that address using the LEFT RIGHT and SEL push buttons After selecting the command the CEC device sends this command to the address and displays the status of transmission a...

Страница 41: ...emote control receiver with the STM32F10xx microcontrollers This application note provides a full description of IR decoding You can select again a new follower address and a new command Figure 59 Select CEC command When receiving a new message the following information can be displayed on the LCD Receive status Sender address Number of bytes including the sender s address Opcode message Data oper...

Страница 42: ...C submenu shown in Figure 56 Note The STM32100E CEC device responds only to the following commands To other commands it sends a feature abort Standby Get CEC version Give physical address Give OSD name 2 7 9 Help submenu This submenu provides help on the various keys used in the STM32F100ZET6 demonstration When this submenu is selected the message shown in Figure 61 is displayed on the LCD screen ...

Страница 43: ...t jumper configuration If you press the Down push button you return to the Help submenu 2 7 10 About submenu This submenu shows the version of the STM32F100ZET6 demonstration software When the About submenu is selected the message shown in Figure 64 is displayed on the LCD screen Figure 64 About submenu Press SEL to display a message showing the STM32100E EVAL demonstration version on the LCD scre...

Страница 44: ...stration package The STM32100E EVAL demonstration is supplied in one single zip file The extraction of the zip file generates one folder STM32100E EVAL_FW_VX Y Z which contains the subfolders shown in Figure 65 and described below Figure 65 STM32100E EVAL demonstration package directory tree ...

Страница 45: ...EVAL Binary contains the binary image of the demonstration that can be used to program the binary image to the internal Flash memory using IAP plus the Media files required to run the demonstration Binary Media EWARM contains preconfigured projects for the EWARM toolchain MDK ARM contains preconfigured projects for the MDK ARM toolchain HiTOP contains preconfigured projects for the HiTOP toolchain...

Страница 46: ...retrieved from Binary Media folder So if you want to reprogram the MicroSD Card you can copy the content of the Binary Media to your own SD memory 4 2 Programming the demonstration You can program the demonstration using three methods Using the Bootloader To program the demonstration binary images into the internal Flash memory you have to use the stm32100e_eval_fw_v1 0 0 bin file located under Pr...

Страница 47: ...emonstration s binary image into the internal Flash memory you have to use the stm32100e eval_fw_Usv1 0 0_offset_0x3000 bin file located under Project STM32100E EVAL Binary with IAP over USART For more details please refer to IAP application note AN2557 STM32F10x in application programming using the USART ...

Страница 48: ...Revision history UM1011 48 49 Doc ID 18064 Rev 1 5 Revision history Table 4 Document revision history Date Revision Changes 14 Apr 2011 1 Initial release ...

Страница 49: ...WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICAT...

Отзывы: