Home

UM0549 - STMicroelectronics

image

Contents

1. However if the icons are correctly loaded into the NOR Flash memory the Welcome screen is displayed and the ST Logo appears on the LCD see Figure 4 Figure 4 ST Logo Then after 1 second the following STM32 slide is displayed on the LCD screen as shown in Figure 5 Figure 5 STM32 family STM32 Re easing your creativity EYE When the board is powered up for the first time and no power supply on Vgar is detected Battery the user is prompted to set the time year month and day The user may choose to ignore it by pressing any key except for the SEL push button to abort the configuration ky Doc ID 14703 Rev 3 13 59 Running the demonstration UM0549 Note 14 59 1 sequence To set the time and date the user should press SEL and follow the setting sequence The message shown in Figure 6 appears on the LCD screen Figure 6 Time and date configuration ame Ini late Contig Select Press SE Abort Pres If the user chooses to configure the time and date the Time Adjust and Date Adjust menus are displayed Otherwise the main menu is displayed and the user can set the time parameters in the Calendar menu To set the time date use the joystick up down and SEL push buttons If the time configuration has already been done then the number of elapsed days higher than 1 day from the last time the demo board was powered up appears on the LCD screen It is soon fol
2. wv UMO549 J User manual STM3210E EVAL demonstration software August 2010 Introduction This user manual describes the demonstration firmware running on the STM3210E EVAL evaluation board It can be used to evaluate the capabilities and on board peripherals of the high density access line and performance line MCUs STM32F101xC STM32F101xD STM32F101xE STM32F103xC STM32F103xD STM32F103xE The STM3210E EVAL board is delivered with the demonstration and the DFU device firmware upgrade programmed in the internal Flash memory and all the files needed by the demonstration are programmed in the NOR Flash memory At each reset board power up external reset etc the demonstration is executed To run the DFU the Key push button must be kept pressed at reset If the STM3210E EVAL board was not factory programmed the demonstration application was erased or the NOR Flash memory contents were modified the DFU can be used to program those files For more details refer to Section 2 and Section 3 This demonstration firmware the USB library and other such firmware are available for download from the STMicroelectronics website www st com Doc ID 14703 Rev 3 1 59 www st com Contents UM0549 Contents 1 Functional description lllleeeeeeees 7 1 1 Power control ree 8 1 2 Clocking AA a e 8 1 3 Reset control oe ic E De NN 8 1 4 Debug JTAG interface eses vs pERPERESSERSEN ERR De RA ba
3. C Verify after download C Optimize Upgrade duration Remove some FFs Time duration 00 00 00 Choose 5 Select the STM3210E EVAL Demo NORHFlash V1 0 dfu file as shown in Figure 76 Doc ID 14703 Rev 3 51 59 Demonstration programming using the DFU UM0549 52 59 Figure 76 Selecting the STM3210E EVAL Demo NORFlash V1 0 dfu file c STM3210E EVAL_Demo_NORFlash_V 1 0 dfu STM3210E EVAL Demo V1 0 dfu Filename STM3210E EVAL Demo NORFash V1 0 dfu Files of type Dfu Files dfu X Cancel C Open as read only 6 Then click on the Upgrade button A dialog window will appear Select Yes to continue see Figure 77 Figure 77 Click Yes to continue DfuSeDemo Your device was plugged in DFU mode So it is impossible to make sure this file is correct for this device Continue however Doc ID 14703 Rev 3 ky UM0549 Demonstration programming using the DFU 4 7 Atthis step the M29W128 NOR Flash memory programming will start as shown in Figure 78 Figure 78 NOR Flash memory programming DfuSe Demo v2 2 Available DFU and compatible HID Devices Application Mode DFU Mode Vendor ID Vendor ID 0483 Supports Upload Manifestation tolerant SN SENI Supports Download Accelerated Upload ST Procuct ID Procuct ID DFT1 Can Detach Version Version 0200 Actions Select Tamgell Targetid Name Available Sectors D
4. Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 24 Figure 25 Figure 26 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Figure 34 Figure 35 Figure 36 Figure 37 Figure 38 Figure 39 Figure 40 Figure 41 Figure 42 Figure 43 Figure 44 Figure 45 Figure 46 Figure 47 Figure 48 ky Evaluation board overview 0 20 0c tee ee 7 Structure of the demonstration menus 000 c eee ae 12 Warning message r tena kiida Ea E a e a 13 SELOJ AA 13 STM32 family 22 ci iia que lec dora eer NG Ya YU c ise ees 13 Time and date configuration eh 14 Main MENU re meam ee eine See RR eed RETE Pe EAR eee ae d a Rab X Eee 14 Corresponding submenus rr 15 Navigating in the demonstration menus llis ere 15 Clock tree diagram 1 6 hh 16 No HSE clock detected 2 2 00 60 rn 17 Standby mode entered 0 0 00 ceca 17 Internal Flash memory organization 0 0 0 eee 20 NOR Flash memory organization lille ren 20 Product presentation is ready to start llle 21 First presentation slide gt sso liliis Rh 21 Last presentation slide rn 22 No loaded wave file RR III rh 22 End of slide SHOW incisos I mara eda a d he ROSE ee eee 23 Setting the time and date es 23 Time Adjust SUBMENU 2 e ren 24 Time Show submenu 22 eh
5. STM32 presentation slides composed of 14 slides with a speed controlled through the RV1 trimmer Increase or decrease the delay between two frames by adjusting RV1 the maximum delay is of about 1s when RV1 is at its maximum position When the STM32 Display Speed menu is selected the animation shown in Figure 33 is displayed on the LCD screen ky Doc ID 14703 Rev 3 29 59 Running the demonstration UM0549 2 4 4 30 59 Figure 33 STM32 Display Speed 3 ng your creativity S7 If the SEL push button is pressed while the animation is playing the animation is stopped and the Exit submenu shown in Figure 34 is displayed Figure 34 Exit submenu Exit Push JoyStick Wave Player submenu The STM32F103ZE T6 microcontroller provides SPI peripherals that support the 125 mode The Wave Player submenu is used to demonstrate the 12S feature An audio codec is connected to the I S interface to play a stored wave file By selecting Wave Player the submenu shown in Figure 35 is displayed Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 35 Wave Player submenu Wave Player Wave Player Return When Start is selected the wave player interface is displayed as shown in Figure 36 Figure 36 Wave Player interface Up 5 Speaker DOWN gt Headphone When the Wave Player starts by default the audio stream is stopped In
6. a submenu press the SEL push button SEL push button is the switch closure that occurs when the joystick button is pushed To exit a submenu select the Return menu and press SEL ky Doc ID 14703 Rev 3 11 59 Running the demonstration UM0549 Figure 2 Structure of the demonstration menus Product presentation Calendar Main menu Animation o o Is o o o E o E o 2 z x E X o LL N e EH Wave player USB mass storage HH TU Low power modes Smartcard interface Thermometer Help STM32 banner STM32 display speed Return Return Start NAND physical format Return 2 o T D lt o A m x m a Stop Exit RTC Alarm Return Exit Wakeup pin Standby Exit RTC Alarm Return Return Smartcard Return emperature Return Help Return About Return ai15161 12 59 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration 21 1 Demo startup After a board reset at demo startup the icons and bitmap files are checked in the NOR Flash memory All the icons have to be correctly programmed in the NOR Flash memory for the demo to start so if an icon is missing the demo will not start and the message shown in Figure 3 is displayed on the LCD screen Figure3 Warning message Warning Loaded a gt S can e gt be sure that all files are correctly programmed in the NOR FLASH and restart the Demo
7. hr 24 Setting the Year sumen a KANG teeta kg e Ai ee dece gn 25 Setting the Month rre 26 Setting the day of the month s 26 Exiting the Date Show submenu 0 26 Setting the alarm activation time liliis ee 27 Alarm Show submenu ooo 27 The time and date need setting eren 28 Animation submenu hm mr rn 28 STM32 Banner animation re 29 qni PET 29 STM32 Display Speed teeta 30 EXICSUDITIODU uc drei ERE Eon ite ewe ERR UE A Hat Se AS Babee UR C n 30 Wave Player SUBMENU lh ren 31 Wave Player interface liess n 31 Wave Player Playing submenu e en 32 Pause submenu cern esr 32 Memory Error submenu 0 000 rr m 33 12C Communication Error submenu 2 eee tent eeaee 33 Audio file Error submenu 00 eee eee 34 USB Mass Storage submenu 2 20 20 0c eee 34 USB Mass Storage submenu selected llle 35 USB cable connected 0600s 35 NAND Erase operation rh 36 NAND Flash Erase operation completed oooccocccocooo eae 36 Exiting the Stop mode rn 37 Stop mode entered cc eae 37 Doc ID 14703 Rev 3 5 59 List of figures UM0549 Figure 49 Figure 50 Figure 51 Figure 52 Figure 53 Figure 54 Figure 55 Figure 56 Figure 57 Figure 58 Figure 59 Figure 60 Figure 61 Figure 62 Figure 63 Figure 64 Figure 65 Figure 66 Figure 67 Figure 68 Figure
8. in different low power modes The Stop and Standby modes are taken as examples Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Stop mode menu This menu allows the user to put the STM32F103ZE T6 in the Stop mode The software performs the specific instruction sequence needed to enter the Stop mode In this application the STM32F103ZE T6 can be made to exit the Stop mode in two ways as shown in Figure 47 Figure 47 Exiting the Stop mode Exit RTC Alarm Return e In the first case The EXTI Key button is used to make the MCU exit the Stop mode Once the Stop mode submenu has been selected the red LEDs continue blinking until the SEL push button is pressed and the system enters the Stop mode When the MCU is in the Stop mode the message shown in Figure 48 is displayed on the LCD Figure 48 Stop mode entered MCU in Stop Mode TO exit press push button The MCU remains in the Stop mode until the Key push button is pressed and the message shown in Figure 49 is displayed on the LCD screen Once the Key push button has been pressed the MCU exits the Stop mode The system clock is then set to 72 MHz and the application resumes execution Doc ID 14703 Rev 3 37 59 Running the demonstration UM0549 Note 38 59 Figure 49 MCU in the Stop mode Stop Mode Wake Up by Key Button Press joystick to continue if an RTC Alarm is generate
9. message shown in Figure 45 is displayed on the LCD Doc ID 14708 Rev 3 35 59 Running the demonstration UM0549 Note Caution 2 4 6 36 59 Figure 45 NAND Erase operation Please Wait Once the NAND Erase operation has completed the message shown in Figure 46 is displayed on the LCD In some cases the NAND Flash memory contents can be corrupted and thus this memory cannot be used as a mass storage device The NAND Physical Format submenu erases all the NAND Flash memory contents and rebuilds the look up table LUT used to translate logical addresses to physical ones and to detect bad blocks in the NAND Flash memory This operation could take a few seconds Once this operation has been performed the NAND Flash memory can be used as a mass storage device Figure 46 NAND Flash Erase operation completed To exit Press SEL To exit this submenu and return to the USB Mass Storage submenu press SEL The build look up table LUT process used to translate logical addresses to physical ones and keep the block status is patented by STMicroelectronics It is not allowed to use it outside the STM32F 10xxx firmware and it should not be reproduced without STMicroelectronics s agreement Low power modes The STM32F103ZE T6 microcontroller provides different operating modes in which the power consumption is reduced The purpose of this menu is to show the behavior of the microcontroller
10. pressing the DOWN push button will display the previous value To confirm the selected month the user has to press the SEL push button and an automatic jump to the year configuration takes place The same procedure is applicable for the year configuration After configuring the day pressing the SEL push button will store the entered value and exit to the Date submenu The current date value is then shown and the user can change the setting if required The messages shown in Figure 23 Figure 24 and Figure 25 are successively displayed on the LCD when this submenu is selected Figure 23 Setting the Year 2 7 9 14 16 I 0 59 20 et 122 Ba 9d Z5 eh 2i eg 29 30 31 Set Year UP DOWN Doc ID 14703 Rev 3 25 59 Running the demonstration UM0549 Figure 24 Setting the Month Month 2 9 10 15 16 ir 18 Je 20 Zl Gane 23 24 ZH MG A LO Z5 30 31 UP DOWN Set Month 10 tr de Ba NG is 20 ei e 3 E 25 26 Y 20 9 ib Cab All Key Set Day Date Show this item displays the current date If the time and date have not been configured before a message is displayed that gives the choice to set the time and date or to exit to the upper submenu The message shown in Figure 26 is displayed on the LCD when the submenu is selected with the date already configured Figure 26 Exiting the Date Show submenu To exit this submen
11. services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED 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 APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY
12. speech is not loaded in the dedicated memory the message shown in Figure 18 is displayed on the LCD screen Figure 18 No loaded wave file ERROR No Wave File Press joystick to exit To stop the product presentation slide show and speech push the SEL push button The message shown in Figure 19 is displayed Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 19 End of slide show End of slide show Exit Push joystick At the end of the product presentation or if the presentation was stopped simply press any joystick key to exit and return to the Product Presentation submenu 24 2 Calendar The STM32F103ZE T6 features a real time clock RTC that provides a set of continuously 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 Vpar pin The Vgar pin supplies power to the RTC unit allowing the RTC to operate even when the main digital supply Vpp is turned off Note To be able to use the battery to back up the RTC the JP1 jumper must be in the position 1 2 in the STM3210E EVAL board In any submenu if the time and date parameters have not yet been configured the mess
13. the following steps 1 Loadthe DFU firmware project using your preferred Toolchain and load the DFU image using JTAG for the first time 2 Connect the STM3210E EVAL board to the PC with a USB cable The first time this is done you will be asked to install a driver for the board The driver is already available in the installation directory Hold down the Key push button on the STM3210E EVAL board to enter the DFU mode 3 Runthe DfuSeDemo exe program 4 Inthe Action Select Target s field select NOR Flash M29W128 and in the Upgrade or Verify Action field click on the Choose button as shown in Figure 75 Doc ID 14703 Rev 3 ky UM0549 Demonstration programming using the DFU Figure 75 Programming the NOR Flash memory P DfuSe Demo v2 2 Available DFU and compatible HID Devices STM Device in DFU Mode Application Made DFU Mode mor VendorlD VendorlD 0483 Supports Upload Manifestation tolerant Supports Download Accelerated Upload ST Procuct ID Procuct ID DF11 Can Detach Version Version 0200 F de HID detac Leave DFU mode Actions Select Targets Targetld Name Available Sectors Double Click for more 00 Internal Flash 256 sectors SPI Flash M25P64 128 sectors NOR Flash M29 86 128 sectors Upload Action Upgrade or Verify Action File File Vendor ID Targets in file Choose Procuct ID Transfered data size Version D KB O Bytes of O KB Bytes
14. x1 2 multiplier LSE 32 kHz gt RTC oscillator 32 kHz ai15163 2 2 2 Clock failure At any demo level if no clock is present on OSC_IN broken or disconnected crystal the message shown in Figure 17 is displayed on the LCD screen 16 59 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 11 No HSE clock detected If the 8 MHz Crystal is not reconnected in the next few seconds the MCU enters the Standby mode If the 8 MHz crystal is reconnected within a few seconds a system reset is generated Note The clock security system CSS feeds the MCU with the HSI OSC used as an emergency clock if no clock is detected When a timeout occurs the MCU enters the Standby mode and the message shown in Figure 12 is displayed on the LCD screen Figure 12 Standby mode entered Detectec y eU EM moda 1 The demo will not restart as long as the 8 MHz crystal is not present 2 Connecting the 8 MHz crystal after reset may not restart the demo correctly The crystal must be connected before starting the demo ky Doc ID 14703 Rev 3 17 59 Running the demonstration UM0549 2 3 2 3 1 18 59 STM32F103ZE T6 resources Peripherals All used peripherals are described in Table 1 Table 1 STM32F103ZE T6 demo peripherals Used peripherals Application I2C1 Temperature sensor BKP Calendar Demo kernel EXTI Menu navig
15. 69 Figure 70 Figure 71 Figure 72 Figure 73 Figure 74 Figure 75 Figure 76 Figure 77 Figure 78 Figure 79 Figure 80 Figure 81 Figure 82 Figure 83 6 59 MCU in the Stop mode ren 38 RTC Alarm causes the MCU to exit the Stop mode cee eee ee 38 Setting the Wakeup time 00000 tetas 39 RTC Alarm wakeup configured eh 39 RTC Alarm wakeup emn 39 Time and Date configuration prompt e 40 Entering the Standby mode res 40 MCU in Standby mode ehh rn 41 RTC Alarm causes the MCU to exit the Standby mode 20 00ee aes 41 Setting the wakeup time ananunua aaaea 42 RTC Alarm wakeup configured ren 42 Time and Date configuration prompt eh 43 Smartcard submenu 1 erre 43 Smartcard submenu 2 enr 44 Smartcard submenu 8 2 erre 44 Smartcard ATR decoded 0 00 teen ae 44 Smartcard ATH uc ep dta emet a Me ie PE hee ee eee 45 Smartcard Error message 2 lerne 45 Noncompatible smartcard error message eere 46 Thermometer submenu selected tee 46 Temperature display en 47 Temperature sensor error e nn 47 Help submenu 20 24 na AKUNG exem nk yk dusk e E RR EORR ROLL ee ec e ex 48 Joystick buttons sci teri RR m err 48 Second Help slide s 48 About submenu eh ren 49 Programming the NOR Flash memory r
16. 9 Note 40 59 if the Time and Date have not been set the message shown in Figure 54 is displayed on the LCD screen Figure 54 Time and Date configuration prompt Time and Date are not configured please go to the Calendar menu and set time and Date parameters Press joystick to continue Standby mode menu This menu allows the user to put the STM32F103ZE T6 in the Standby mode The software runs the specific instruction sequence needed by the STM32F103ZE T6 to enter the Standby mode In this application the STM32F103ZE T6 can be made to exit the Standby mode in two ways as shown in Figure 55 Figure 55 Entering the Standby mode Standby Mode Exit Wakeup Pin Exit RIC Alarm Return e Inthe first case the Wakeup push button is used to wake up the MCU from Standby mode Once the Standby mode submenu has been selected the red LEDs continue blinking until the SEL push button is pressed and the system enters the Standby mode When the MCU is in the Standby mode the message shown in Figure 56 is displayed on the LCD Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 56 MCU in Standby mode MCU in Standby Mode To exit press Wakeup The MCU remains in the Standby mode until the Wakeup push button is pressed Once the Wakeup push button has been pressed the MCU exits the Standby mode and the system reset sig
17. 9 Doc ID 14703 Rev 3 ky UM0549 Contents 2 3 2 Li Aa 19 2 3 3 External interrupts eserine 0 0 0 eee eee 20 2 3 4 Internal memory size 1 ee 20 2 3 5 External memory size 1 eee 20 2 4 Demo applIDallaliS tees resce bee den EE AERE Canes AD CES 21 2 4 1 Product presentation lille eee 21 2 4 2 Calendar xs ia is one le Rue Nadu E Shae eds 23 2 4 8 Animation submenu serr n 28 2 4 4 Wave Player submenu een 30 2 4 5 USB mass storage res 34 2 4 6 Low power modes rn 36 2 4 7 Smartcard AA 43 2 4 8 Thermometer nes 46 2 4 9 Help submenu ooo 47 2 4 10 About submenu sese nen 49 3 Demonstration programming using the DFU 50 3 1 Programming the M29W128 NOR Flash memory 50 3 2 Demo programming eee 54 4 REVISION history Xa BARB ARENA NAKAKA KR te RC d ca ae 58 KYT Doc ID 14703 Rev 3 3 59 List of tables UM0549 List of tables Table 1 STM32F103ZE T6 demo peripherals ee 18 Table 2 STM32F103ZE T6 demo interrupts ee 19 Table 3 STM32F103ZE T6 demo external interrupts eee 20 Table 4 Document revision history m rn 58 4 59 Doc ID 14703 Rev 3 ky UM0549 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
18. Figure 29 is displayed on the LCD screen Doc ID 14703 Rev 3 27 59 Running the demonstration UM0549 2 4 3 28 59 Figure 29 The time and date need setting Animation submenu The STM32F103ZE T6 microcontroller provides an FSMC memory interface that is used with a parallel LCD The Animation submenu is used to demonstrate the LCD control performance using the embedded FSMC interface The application is a successive display of stored images The result is a video like animation Figure 30 Animation submenu Animation STM32 Banner STM32 Display Speed Return STM32 Banner This STM32 Banner animation is composed of fifty images These images are displayed at a rate equal to 12 frames per second fps When the STM32 Banner menu is selected the animation shown in Figure 31 is displayed on the LCD screen Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 31 STM32 Banner animation Once the STM32 Banner Animation submenu has been selected the relative animation is displayed in a loop on the LCD screen If the SEL push button is pressed while the animation is playing the animation is stopped and the submenu shown in Figure 32 is displayed Figure 32 Exit submenu Exit Push JoyStick If any push button is pressed the application returns to the Animation menu STM32 Display Speed This submenu displays the set of
19. Figure 36 the active push buttons and their functions are displayed below Control Buttons For example at start up pressing the Up JoyStick push button causes the file to be played through the embedded speaker whereas pressing the Down push button causes the file the file to be played through the Headphone in which case a headphone needs to be connected to the audio jack implemented on the evaluation board Once the play command is prompted the submenu shown in Figure 37 is displayed Doc ID 14703 Rev 3 31 59 Running the demonstration UM0549 32 59 Figure 37 Wave Player Playing submenu KEY gt Pause Up Vol SEL gt Stop DOWN Vol vol ELLE The Progress bar and the Volume bar are displayed at the bottom of the Wave Player Playing submenu The Progress bar is updated every 196 of the audio file duration and the Volume bar is updated each time the volume level is changed At this application level pressing the Key push button pauses the audio stream the SEL push button stops the audio stream the Up push button increases the audio volume the Down push button decreases the audio volume When the audio stream is paused the menu in Figure 38 is displayed Figure 38 Pause submenu KEY Play Up SPKR SEL Stop DOWN HEAD A CELL EH 000 To resume playing press the Key push button To change the audio output press the Up JoyStick push bu
20. ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2010 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com ky Doc ID 14703 Rev 3 59 59
21. age shown in Figure 20 is displayed on the LCD screen Figure 20 Setting the time and date Time and D Se Lect Pre The user has the choice to set or not the time year month and day Press any key except for SEL to ignore the prompt and abort the configuration sequence Press on SEL and follow the setting sequence to set the time and date ky Doc ID 14703 Rev 3 23 59 Running the demonstration UM0549 Time submenu This submenu is divided into two items that allow the user to display or set the current time Time Adjust After the evaluation board is powered up the user has to select this submenu to change the default time 00 00 00 to the current time Once Time Adjust has been selected the first digit of the hour field can be changed Pressing the UP button will display the current value plus one Pressing the DOWN button will display the previous digit value 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 of values depending on the field hour minute or seconds The following message with the default time or the current time is displayed on the LCD when this submenu is selected Figure 21 Time Adjust submenu Time Show this item displays the current time If time and date have not been configured before a messag
22. alue is displayed in Celsius and Fahrenheit as shown in Figure 69 46 59 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 69 Temperature display Press any key to return to the Thermometer submenu Note Any hardware trouble with the temperature sensor is detected by a test In this event the message shown in Figure 70 is displayed Figure 70 Temperature sensor error NO TSENSOR Present Exit push joystick 2 4 9 Help submenu This submenu provides help on the different keys used in the STM32F103ZE T6 demo When this submenu is selected the message shown in Figure 71 is displayed on the LCD Screen ky Doc ID 14703 Rev 3 47 59 Running the demonstration UM0549 Figure 71 Help submenu Help Help Return If the user presses on SEL the image shown in Figure 72 is displayed on the LCD screen Figure 72 Joystick buttons J Stick mp UP SEL C O O ES a DOWN Press any joystick push button to display the next help slide shown in Figure 73 Figure 73 Second Help slide UP DOWN RIGHT and LEFT push buttons perform circular navigation in the main menu menu items able ale SEL push button selects the current item UP and DOWN perform vertical navigation Press SEL to exit the slide and return to the Help submenu Doc ID 14703 Rev 3 UM0549 Run
23. ation 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 SPI1 SPI Flash SysTick Generate 10 ms time base TIM1 LED toggling FSMC Color LCD NAND Flash NOR Flash SDIO MSD SPI2 125 Audio codec Doc ID 14703 Rev 3 UM0549 Running the demonstration 2 3 2 Interrupts Table 2 shows all the enabled interrupts Table 2 STM32F103ZE T6 demo interrupts Interrupts Priority Used for SysTick sien System timing RTC Mina hi Calendar date update NMI Preemption fixed 2 CSS interrupt EXTIS ST Menu navigation EXTI9 5 e a Menu navigation EXTI15 10 Pregmpliofiee Menu navigation SubPriority O USB LP CAN RXO Preemption 1 SubPriority O USB Mass Storage USB HP CAN TX Preemption 0 SubPriority 1 USB Mass Storage Preemption 1 TIM1_UP SubPriority 3 LED toggling RTCAlarm Preemption 1 Alarm generation SubPriority 1 9 SPI2 Preemption Q Audio data transfer SubPriority 0 Doc ID 14703 Rev 3 19 59 Running the demonstration UM0549 2 3 3 External interrupts Table 3 STM32F103ZE T6 demo external interrupts External interrupts Used for EXTI line3 Joystick DOWN interrupt mode falling edge EXTI line15 Joystick UP interrupt mode falling edge EXTI line7 Joys
24. ct ID Procuct ID DF11 Version 0200 Version Leave DFU mode Name Available Sectors Double Click for more 256 sectors 128 sectors 128 sectors Intemal Flash SPI Flash M25P64 NOR Flash M29w128G Upgrade or Verify Action File STM3210E EVAL Demo NORFlash V1 0 Prod Vendor ID 0483 Targets in file 02 STM3210E EYAL Demo NO Procuct ID 3210 Version C Verify after download C Optimize Upgrade duration Remove some FFs Choose Uparade Verify Target 02 Upgrade successful Quit a Doc ID 14703 Rev 3 UM0549 Demonstration programming using the DFU 2 Select the STM3210E EVAL Demo V1 0 dfu file as shown in Figure 80 Figure 80 Selecting the STM3210E EVAL Demo V1 0 dfu file Look in images Q e m STM3210E EVAL Demo NORFlash V1 0 dfu E5 STM3210E EVAL_Demo_V1 0 dfu File name STM3210E EVAL_Demo_V1 0 dfu Files of type Dfu Files dfu C Open as read only 3 Then click on the Upgrade button A dialog window will appear Select Yes to continue Figure 81 Click Yes to continue DfuSeDemo Your device was plugged in DFU mode So itis impossible to make sure this file is correct for this device Continue however ky Doc ID 14703 Rev 3 55 59 Demonstration programming using the DFU UM0549 4 At this step the STM32F103ZE T6 s internal Flash memory programming starts as shown in Figure 82 Figur
25. d while the MCU is in the Stop mode and the message shown in Figure 49 is displayed which means that the Key push button needs to be pressed to exit the Stop mode the RTC Alarm causes the MCU to exit the Stop mode The message shown in Figure 50 is then displayed Figure 50 RTC Alarm causes the MCU to exit the Stop mode Stop Mode Wakeup by RTC Alarm Press joystick to continue e Inthe second case the RTC Alarm wakes up the MCU from the Stop mode after the programmed time has elapsed When selecting this submenu the user has to set the alarm to the time when the MCU is to exit the Stop mode Figure 51 shows how to set the wakeup time Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 51 Setting the Wakeup time HH MM SS Once the alarm has been configured the red LEDs stop blinking and the system enters the Stop mode The message shown in Figure 52 is displayed on the LCD Figure 52 RTC Alarm wakeup configured MCU in Stop Mode Wait For RTC Alarm After the programmed time has elapsed the system exits the Stop mode The system clock is then set to 72 MHz and the application resumes execution The message shown in Figure 53 is displayed on the LCD screen Figure 53 RTC Alarm wakeup Stop Mode Wakeup by RTC Alarm Press joystick to continue Doc ID 14703 Rev 3 39 59 Running the demonstration UM054
26. e 82 Internal Flash memory programming DfuSe Demo v2 2 Available DFU and compatible HID Devices Application Mode DFU Mode VENE Vendor ID Vendor ID Supports Upload Manifestation tolerant Supports Download Accelerated Upload ST Procuct ID Procuct ID Can Detach Version Version Actions Select Target s Targetld Name Available Sectors Double Click for more 00 Internal Flash 256 sectors 01 SPI Flash M25P64 128 sectors 02 NOR Flash M28w 128G 128 sectors Upload Action Upgrade or Verify Action File File STM3210E EVAL Demo V1 0 Production Pack Vendor ID 0483 Targets in file pes 00 STM3210E EVAL_Demo Procuct ID 3210 Transtered data size Version 0001 9 KB 9794 Bytes of 50 KB 51548 Bytes C Verify after download C Optimize Upgrade duration Remove some FFs Time duration 00 00 05 PO Target 00 Upgrading Download Phase 19 Abort a 56 59 Doc ID 14703 Rev 3 UM0549 Demonstration programming using the DFU 5 Once the internal Flash memory programming has completed click on Leave DFU Mode This causes the target to switch from DFU mode to Application mode as shown in Figure 83 And the demonstration starts executing Figure 83 DFU mode left DfuSe Demo v2 2 Available DFU and compatible HID Device Application Mode DFLI Mode Vendor ID Vendor ID Supports Upload Manifestation tolerant Supports Dow
27. e is displayed that gives the choice to set the time and date or to exit to the upper submenu When this submenu is selected the message shown in Figure 22 appears on the LCD In the example the time has not been set yet Figure 22 Time Show submenu r To exit the Time Show submenu press the SEL push button To exit Time submenu select the Return line and press the SEL push button 24 59 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Date submenu This submenu is divided into two items that allow the user to display or set the current date Date Adjust this item has to be selected after each power up in order to set the current date If the time and date have not been configured before a message is displayed that gives the choice to set the time and date or to exit to the upper submenu The user is asked to set the current date to be stored in the application memory 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 the user has to set the date at least once Once the submenu has been selected the user starts by setting the Year then the Month and the day of the selected month The Month and the Year are selected using the UP or DOWN push button For the day the UP DOWN RIGHT and LEFT push buttons can be used Pressing the UP push button will display the current value plus one
28. ed ATR TS Ox3B TO Ox3E Setup Characters 95 00 Historical Characters 80 3l 00 73 FE 21 13 Press any JoyStick key to exit this submenu If no smartcard is inserted and the SEL push button is pressed the message shown in Figure 66 is displayed Figure 66 Smartcard Error message Card not inserted Push JoyStick to exit If the JoyStick push button is pressed the application returns to the Smartcard submenu If a smartcard that is not ISO7816 3 T 0 compatible is inserted then the message shown in Figure 67 is displayed Doc ID 14703 Rev 3 45 59 Running the demonstration UM0549 Figure 67 Noncompatible smartcard error message Non supported card Only ISO7816 3 T 0 cards are supported Push JoyStick to exit 2 4 8 Thermometer The STM32F103ZE T6 microcontroller has two embedded I C peripherals that can be connected to any device supporting the 1 C protocol including the system management bus SMBus mode An STLM75 or a compatible device I C temperature sensor is mounted on the STM3210E EVAL board and used to get instantaneous external temperature When the Thermometer submenu is selected the message shown in Figure 68 is displayed on the LCD Figure 68 Thermometer submenu selected Thermometer Temperature Return Once the Temperature submenu has been selected by pressing the SEL push button the temperature v
29. en 51 Selecting the STM3210E EVAL Demo NORFlash V1 0 dfu file 52 Click Yes to continue hr 52 NOR Flash memory programming lssseeleele rn 53 Programming the demo eh 54 Selecting the STM3210E EVAL_Demo_V1 0 dfufile oooooooooooo 55 Click Yes to continue mr 55 Internal Flash memory programming eR III 56 DFU mode left 2 esee dete er om ewe dde doas ase dan ae be c he a 57 Doc ID 14703 Rev 3 ky UM0549 Functional description Functional description The STM32F103ZE T6 microcontroller evaluation board provides a development and demonstration platform for STM32F103xx based applications It is designed to allow the user to try out the major functions of the STM32F103ZE T6 microcontroller Figure 1 summarizes the main functional blocks of the evaluation board Figure 1 Evaluation board overview 3 3 V voltage regulator 512 Kbit x 16 SRAM 512 Mbit NAND Flash 128 Mbit NOR Flash TFT LCD Serial Flash memory MC control connector MicroSD card Temperature sensor JTAG TRACE Oo R c o E A NO T LEDs Key and Joystick gt E 2 o o gt O Extension connector for GPIOs Tranceiver D pu 0p o N N oO Co N N Tranceiver Tranceiver Smartcard interface gt 5 z gt tranceiver 3 BNC connector Potentiometer c 0 UJ gt l
30. gure 15 Product presentation is ready to start Press SEL to Start When presentation starts use RIGHT LEFT to go to the next previous slide Press SEL to exit Product presentation slides The set of slides is composed of 14 slides where all features and advantages of the STM32F103ZE T6 are listed Figure 16 and Figure 17 show the first and last slides respectively Figure 16 First presentation slide de 32 Releasing your creativity Doc ID 14703 Rev 3 21 59 Running the demonstration UM0549 Note 22 59 Figure 17 Last presentation slide ST s objectives for creating STM32 Family e Enable y OU to s Create value added products Address nev markets and new market needs Enable and encourage solutions that are Innovative Easy to implement Secure Cost effective ES S7 Product presentation speech The High density STM32F103xx microcontroller has two embedded SPI peripherals that can be used in I S mode for audio communication An external audio codec is implemented on the evaluation board in order to allow speech audio files to be played through the embedded speaker or headphone The properties of the product presentation speech wave file are the following Playing time 6 min 16s File size 6 024 058 bytes Format tag PCM Channels Mono Sample rate 8 kHz Bits per sample 16 bits If the wave file of the promotion presentation
31. ime and Date configuration prompt Time and Date are not configured please go to the Calendar menu and set time and Date parameters Press joystick to continue 2 4 7 Smartcard The STM32F103ZE T6 microcontroller provides USART peripherals that support the Smartcard mode The Smartcard submenu is used to demonstrate the Smartcard control using the USART interface Figure 61 Smartcard submenu 1 Smartcard Interface Smartcard Keturn If the Smartcard submenu is selected the message shown in Figure 62 is displayed and the user is prompted to insert a smartcard KY Doc ID 14703 Rev 3 43 59 Running the demonstration UM0549 Figure 62 Smartcard submenu 2 Please insert Card Press SEL to exit If a smartcard is inserted the ATR is decoded and displayed on the LCD screen Figure 63 Smartcard submenu 3 Card inserted Decoding ATR Once the smartcard answer to reset ATR is decoded and if the inserted card is ISO7816 3 T 0 compatible the message shown in Figure 64 is displayed Figure 64 Smartcard ATR decoded AAA ee Smartcard 1S507816 3 Compatible PrOococo TEN Push JoyStick to continue If the JoyStick is pushed the ATR is displayed and the message shown in Figure 65 is displayed 44 59 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 65 Smartcard ATR Decod
32. lowed by the current date Once the time date have been set the main menu appears The main menu is displayed in the form of a set of icons It presents all the submenus in the same screen The user can navigate using the UP DOWN RIGHT and LEFT joystick directions to select the desired submenu To enter the desired submenu the user has to press the SEL joystick push button and the new submenu corresponding to the selected icon is displayed Figure 7 Main menu APP Main Menu Name STM32 1 The icons shown in Figure 7 are taken from http Commons wikimedia org wiki Crystal Clear Once a submenu has been selected the name of the application is listed at the top of the display and all the corresponding submenus are listed below as shown in Figure 8 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 8 Corresponding submenus APP Main Menu Name APP Sub Menu 1 Name APP Sub Menu2 Name Return Navigation The demonstration menu is based on circular navigation submenu selection item selection and back capability as described in Figure 9 Figure 9 Navigating in the demonstration menus Left sk E gt gy Right i Left c E ES HE Down Down Down Down The user navigates using the joystick push buttons located on the evaluation board RIGHT LEFT SEL UP and DOWN e the UP DOWN RIGHT and LEFT push buttons are used to perf
33. nal is generated Note if an RTC Alarm is generated while the MCU is in the Standby mode and the message shown in Figure 56 is displayed which means that the Wakeup push button needs to be pressed to exit the Standby mode the RTC Alarm causes the MCU to exit the Standby mode and a system reset signal is generated Figure 57 RTC Alarm causes the MCU to exit the Standby mode Stop Mode Wakeup by RTC Alarm Press joystick to continue e Inthe second case the RTC Alarm wakes up the MCU from the Standby mode after the programmed time has elapsed When selecting this submenu the user has to set the alarm to the time when the MCU is to exit the Standby mode Figure 58 shows how to set the wakeup time ky Doc ID 14703 Rev 3 41 59 Running the demonstration UM0549 Figure 58 Setting the wakeup time HH MM SS Once the alarm has been configured The red LEDs stop blinking and the system enters the Standby mode The message shown in Figure 59 is then displayed on the LCD Figure 59 RTC Alarm wakeup configured MCU in Standby Mode Wait For RTC Alarm After the programmed timing has elapsed the system exits the Standby mode and a system reset signal is generated Note if the Time and Date have not been set the message shown in Figure 60 is displayed on the LCD screen 42 59 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 60 T
34. ning the demonstration 2 4 10 About submenu This submenu shows the version of the STM32F103ZE T6 demo software When the About submenu is selected the message shown in Figure 74 is displayed on the LCD Screen Figure 74 About submenu About About Return Pressing SEL then displays a message showing the STM3210E EVAL demo version on the LCD screen Doc ID 14703 Rev 3 49 59 Demonstration programming using the DFU UM0549 3 Note 3 1 50 59 Demonstration programming using the DFU This section explains how to use the DFU device firmware upgrade application to program the demonstration application It also describes the files needed for the STM3210E EVAL board To save programming time using DFU proceed as follows e usea certified USB 2 0 high speed hub between STM3210E EVAL board and your PC e minimize the used PC RAM size by closing unused applications e usean efficient PC When using the DFU application make sure that in the STM3210E EVAL board jumper JP14 is in the position 2 3 The USB DFU firmware and the demo firmware support three different NOR Flash memories The DFU firmware will automatically detect which NOR Flash is being used and configure its attributes The supported NOR Flash memories are e ST M29W128F NOR Flash e ST M29W128G NOR Flash e Spansion S29GL128P NOR Flash Programming the M29W128 NOR Flash memory To program the NOR Flash memory go through
35. nload Accelerated Upload ST Procuct ID Procuct ID Can Detach Version Version Action Select Target s Targetld Name Available Sectors Double Click for more Upgrade or Verify Action File STM3210E EVAL Demo 41 0 Production Pack Vendor ID 0483 Targets in file 00 STM3210E EVAL Demo Grocer Procuct ID 3210 Transfered data size Version 0001 50 KB 51548 Bytes of 50 KB 51548 Bytes C Verify after download C Optimize Upgrade duration Remove some FFs Time duration 00 00 01 Choose Successfully left DFU mode Quit 4 Doc ID 14703 Rev 3 57 59 Revision history UM0549 4 58 59 Revision history Table 4 Document revision history Date Revision Changes 22 May 2008 1 Initial release a UU 27 Aug 2010 3 Cover page modified to specify supported MCUs Doc ID 14703 Rev 3 x UM0549 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 Purchasers are solely responsible for the choice selection and use of the ST products and
36. orm circular navigation in the main menu and the current menu items e the SEL push button selects the current item e the UP and DOWN push buttons are used for vertical navigation in the submenus e to return to the upper menu go to the Return line and press SEL ai15162 Doc ID 14703 Rev 3 15 59 Running the demonstration UM0549 2 2 Clock sources 2 2 1 Clock control The STM32F103ZE s internal clocks are derived from the HSE clocked by the external 8 MHz crystal In this demo application the different system clocks are configured as follows System clock is set to 72 MHz the PLL is used as the system clock source 72 MHz two wait states Flash memory prefetch buffer enabled HCLK frequency is set to 72 MHz Timer clock TIMCLK is set to 72 MHz PCLK1 is set to 36 MHz PCLK2 is set to 72 MHz USB clock USBCLK is set to 48 MHz internal clock PLLCLK 1 5 Only the RTC is clocked by a 32 kHz external oscillator Figure 10 illustrates the clock tree organization for this demo Figure 10 Clock tree diagram HSE PLL SYSCLK oscillator x16 x2 x3 x4 8 MHz x 9 USB prescaler 48 MHz 1 1 5 PCLK1 to APB1 36 uz N peripherals 3 o a TIM2 3 4 5 6 7 bex 2 72 MH x1 2 multiplier APB1 prescaler 2 4 8 16 AHB prescaler 1 2 512 72 MHz PCLK2 to APB2 72 MHz 8 MHz N ioharal APB2 prescaler peupngras 2 4 8 16 g TIM1 TIM8 72 MHz
37. ors Doc ID 14703 Rev 3 ky UM0549 Functional description 1 7 2 1 7 3 1 8 1 9 1 10 1 10 1 1 10 2 1 10 3 1 10 4 CAN The STM3210E EVAL evaluation board supports CAN 2 0 A CAN 2 0 B compliant CAN bus communication based on a 3 3 V CAN transceiver Both the high speed mode and the slope control mode are available They are selected by setting a dedicated jumper USB The STM3210E EVAL evaluation board supports full speed USB 2 0 communication thanks to its embedded USB peripheral Motor control The STM3210E EVAL evaluation board supports inductor motor control via a 34 pin connector that provides all required control and feedback signals to and from the motor power driving board IrDA The STM3210E EVAL evaluation board supports IrDA communication The interface is mounted on USARTS Miscellaneous peripherals Joystick Four direction joystick with a selection key Push buttons The following push buttons are provided e Key user push button e Tamper user push button e Wakeup push button used to wake up the processor from a low power mode 12 bit analog to digital converter ADC Varistor ADC channel3 connected to an on board variable resistor The variable resistor provides a voltage in the range of 0 V to 3 3 V Moreover three BNC connectors are available for analog input Audio The STM3210E EVAL evaluation board implements a dedicated audio DAC with an 12S interface Fo
38. ouble Click for more 00 Internal Flash 256 sectors 01 SPI Flash M25P64 128 sectors 02 NOR Flash M29w128G 128 sectors Upload Action Upgrade or Verify Action File File STM3210E EYAL Demo NORFlash V1 0 Prod Vendor ID 0483 Targets in file 02 STM3210E EVAL_Demo_NO Procuct ID 3210 Transfered data size Version 0001 D KB Bytes of 15372 KB 15355354 y Bytes O Verify after download C Optimize Upgrade duration Remove some FFs Time duration 00 00 17 A ce 02 Upgrading Erase Phase 2529 Abort Doc ID 14703 Rev 3 Demonstration programming using the DFU UM0549 3 2 54 59 Demo programming To program the STM3210E EVAL Demo V1 0 dfu file in the internal Flash memory go through the following steps 1 When the NOR Flash memory has finished programming in the Action Select Target s field select nternal Flash and in the Upgrade or Verify Action field click on the Choose button Figure 79 Programming the demo STM Device in DFU Mode Supports Upload Supports Download Can Detach Actions Select Targets q aget Id Upload Action File Choose Transfered data size KB 16355354 Bytes Time duration 00 05 06 15372 KB 16355354 Bytes of 15972 DfuSe Demo v2 2 Available DFU and compatible HID Devices Application Mode DFU Mode Vendor ID Vendor ID Manifestation tolerant Accelerated Upload ST Procu
39. r the audio output a speaker and an audio Jack are available on the board and connected to the DAC Doc ID 14703 Rev 3 9 59 Functional description UM0549 1 10 5 1 10 6 1 10 7 10 59 Storage memories The STM3210E EVAL evaluation board has five different storage memories an SPI Flash memory of 8 Mbyte connected to the SPI1 peripheral an MSD mass storage device of 128 Mbyte connected to the SDIO peripheral a 1 Mbyte SRAM a 64 Mbyte NAND Flash memory and a 16 Mbyte NOR Flash memory The SRAM the NAND Flash memory and the NOR Flash memory are connected together to the FSMC interface Temperature sensor The STM3210E EVAL evaluation board includes an 12C temperature sensor connected to the 12C1 peripheral STM3210E EVAL board jumper configuration To be able to run the STM3210E EVAL demo correctly configure the following STM3210E EVAL board jumpers as follows e IS MCLK JP18 position 24 53 Smartcard JP15 fitted Smartcard JP16 fitted SD Card JP17 fitted SD Card JP20 open USB JP14 position 2 lt gt 3 NAND JP7 position 1 lt gt 2 JP4 position 1 lt gt 2 Doc ID 14703 Rev 3 ky UM0549 Running the demonstration 2 Running the demonstration 2 1 Menu Figure 2 shows the menu system of the STM32F103ZE demonstration The main menu is shown on the left hand side The UP DOWN RIGHT and LEFT joystick directions allow the user to navigate between items in the main menu and the submenus To enter
40. storage The STM32F103ZE T6 microcontroller features a USB universal serial bus that provides a full speed interface to a USB host PC The USB Mass Storage submenu is used to configure the USB interface for communication with the PC and run the mass storage demo using either an MSD card or a NAND Flash Figure 42 USB Mass Storage submenu USB Mass Storage Start NAND Physical Format Return If the SEL push button is pressed when Start is selected the message shown in Figure 43 appears on the LCD screen until the cable is plugged in Doc ID 14703 Rev 3 ky UM0549 Running the demonstration Figure 43 USB Mass Storage submenu selected Plug the USB Cable Exit Push joystick To return to the previous submenu the user has to connect a USB cable between the USB connector type B CN14 and the PC If the user connects a cable or presses any joystick push button the message shown in Figure 44 is displayed on the LCD Figure 44 USB cable connected TO SCO Press SEL Once the cable has been connected the PC recognizes the board as a mass storage device and consequently opens a window to show the contents of the MSD or NAND Flash mounted on the STM3210E EVAL board The user can transfer files between the MSD or NAND Flash and the PC NAND Physical Format submenu This submenu erases all the NAND Flash contents When the NAND Physical Format submenu is selected the
41. t o o U connector QST connector USART1 DB9 connector USART2 DB9 connector Smartcard connector CAN DB9 connector ai15160 Doc ID 14703 Rev 3 7 59 Functional description UM0549 1 1 1 2 1 3 1 4 1 5 1 6 1 6 1 1 6 2 1 7 1 7 1 8 59 Power control The evaluation board can be powered from an external 5 V supply or from the USB connector all other required voltages are provided by on board voltage regulators Clocking Two clock sources are available on the STM3210E EVAL evaluation board e 32kHzcrystal for embedded RTC e 38 MHz crystal for STM32F103ZE Reset control The reset can be generated by hardware or software e Reset button activates the RESET input when pressed e JTAG reset Debug JTAG interface Software debug is done via the standard ARM JTAG connection 20 pin IDC insulation displacement connector for connection to the standard ARM host interface Serial wire debugger interface The Serial Wire Debug Port SWD DP provides a 2 pin clock data interface to the AHP AP port Display devices LCD A color LCD module is mounted on the STM3210E EVAL board It is interfaced through the embedded FSMC controller LED Four general purpose LEDs are available They are used as a display Interfaces RS232 The STM32F103ZE evaluation board STM3210E EVAL provides two on board RS 232 serial ports Both RS232 ports are accessed via DB9 connect
42. tick SEL interrupt mode falling edge EXTI line8 User Button interrupt mode falling edge EXTI line17 RTC Alarm interrupt mode rising edge 2 3 4 Internal memory size Figure 13 Internal Flash memory organization 0x0807 FFFF STM3210E EVAL Demo 0x0800 3000 USB DFU Demo 0x0800 0000 ai15164 2 3 5 External memory size Figure 14 NOR Flash memory organization Ox64FF FFFF 0x64FC AC7E 0x64D7 285E 0x6461 EB7A Product speech 0x6406 0000 0x6400 0000 ai15165 20 59 Doc ID 14703 Rev 3 a UM0549 Running the demonstration 2 4 Demo applications The following section provides a detailed description of each part of the demonstration Note In the demonstration the core runs at HCLK 72 MHz 2 4 1 Four LEDs LD1 LD2 LD3 and LD4 flash throughout the demonstration at a frequency depending on the core clock Product presentation This part of the demo is dedicated to the listing of all the embedded STM32F103ZE T6 peripherals and features This presentation of the microcontroller is made with a set of slides accompanied by a speech Each slide is associated with a dedicated speech When the user starts 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 15 is displayed on the LCD screen Fi
43. tido 8 1 5 Serial wire debugger interface llle 8 1 6 Display devices ua ncs iux erste eta E 8 1 6 1 Neige cC Tm 8 1 6 2 LED ts gane ce E ae ROC RR RN RR EQUI GEO ONG KORR a 8 1 7 InterfaCes 5 cue cens door dete AUR a ee ee EC Honig E UHR deo da s 8 1 7 1 HS232 wien bakes ed ducatu qas o e ERU ORAS Abate ee a d E URN 8 1 7 2 CAN So oen E dona AA AO is NAA aNG 9 1 7 3 USB a eR aa ae ghee ok ee dr AGS hal LIKA MG ee AG 9 1 8 Motor control aana rn 9 1 9 IrDA eA EROR Go aaa a ee haa a RO C RO oars i ea Se ee He 9 1 10 Miscellaneous peripherals 0 00 ee 9 1 10 1 Joystick ecu bbb entra rt Ra LER ewes tet KG 9 1 10 2 Pusheb lttons i5 esse ied eee ato timere Re boe A dp e KA 9 1 10 3 12 bit analog to digital converter ADC 0 aaa 9 1 10 4 Audio etr ERREUR RUE A GALANG 9 1 10 5 Storage memories eee 10 1 10 6 Temperature sensor eres 10 1 10 7 STM3210E EVAL board jumper configuration 10 2 Running the demonstration eee eee ee 11 2 1 Men uz ERA Awake MAES COA a ae oe Ped 11 2 1 1 Demo start p rereana eunt da Ga d x Edda 13 2 1 2 Navigation ME 15 2 2 ClOCK SOUNCES s s KB KAKAW ie Ra xL KA KARA KK RC CROCO DE LR AC RR Ren 16 2 2 1 Clock control ccc tenet nee ens 16 2 2 2 Clock failure 2 0 m ERE OA 16 23 STM32F103ZE T6 resources 0000 c eee eee 18 2 3 1 Peripherals rs sss secet a hk eR ee iu dew be beta Ree E ENG 18 2 5
44. tton to select the Speaker and press the Down push button to select the Headphone Once the output device has been selected the stream resumes playing immediately from the paused position and the menu shown in Figure 37 is displayed When the audio stream is stopped the stream position is reset and the menu shown in Figure 36 is displayed When the volume is being increased or decreased by pressing the Up Down push button the Volume bar is updated accordingly at the same time Doc ID 14703 Rev 3 ky UM0549 Running the demonstration A message may be displayed on the LCD screen when an error occurs during the application component initialization If the memory fails to communicate the error menu shown in Figure 39 is displayed and the user is prompted to reset the device Figure 39 Memory Error submenu If communication with the codec through the Ic peripheral fails the error message shown in Figure 40 is displayed Figure 40 12C Communication Error submenu If the audio file is missing or if its format is not supported the error message shown in Figure 41 is displayed and a reset is required ky Doc ID 14703 Rev 3 33 59 Running the demonstration UM0549 2 4 5 34 59 Figure 41 Audio file Error submenu In all cases a manual reset might be performed using the Reset push button If the problem persists the error source has to be checked USB mass
45. u press the SEL push button To exit the Date submenu select the Return line and press the SEL push button ky 26 59 Doc ID 14703 Rev 3 UM0549 Running the demonstration Note Alarm submenu Using this submenu the user can configure the alarm activation time When the alarm time value is reached all the LEDs LED1 to LED4 start flashing together and so for 30 seconds This submenu is divided into two items to display or set the current alarm e Alarm Adjust the alarm time activation is set in the same way as the time is set in the Time Adjust submenu The following messages are successively displayed on the LCD when this submenu is selected Figure 27 Setting the alarm activation time e Alarm Show this item displays the current alarm time The default Alarm activation time displayed after power up and before setting in the Alarm Adjust submenu is 00 00 00 If the time and date have not been configured before a message shown in Figure 29 is displayed when you press select it takes you back to the Alarm submenu The message shown in Figure 28 is displayed on the LCD when this submenu is selected Figure 28 Alarm Show submenu HH MM SS To exit the Alarm Show submenu press the SEL push button To exit the Alarm submenu select the Return line and press the SEL push button In the Alarm Adjust and Alarm Show menus if the time and date have not yet been configured the message shown in

Download Pdf Manuals

image

Related Search

Related Contents

INSTALLATION, INSTRUCTION AND SERVICE MANUAL  American Standard 7010.23 User's Manual    Sony SA-VE335 System  VXI Call Center Headsets User's Manual  81063940 エコセラ・テーブルチューブラルS  Prime-Line N 6514 Instructions / Assembly  

Copyright © All rights reserved.
Failed to retrieve file