UM1480 User manual. STM8SVLDISCOVERY quick start guide. Introduction. Reference documents

Similar documents
UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

AN4108 Application note

AN3354 Application note

AN3332 Application note

AN3265 Application note

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

UM1676 User manual. Getting started with.net Micro Framework on the STM32F429 Discovery kit. Introduction

DDSL01. Secondary protection for DSL lines. Features. Description

BD238. Low voltage PNP power transistor. Features. Applications. Description. Low saturation voltage PNP transistor

M24LRxx/CR95HF application software installation guide

EVL185W-LEDTV. 185 W power supply with PFC and standby supply for LED TV based on the L6564, L6599A and Viper27L. Features.

TN0023 Technical note

2STBN15D100. Low voltage NPN power Darlington transistor. Features. Application. Description

SPC5-FLASHER. Flash management tool for SPC56xx family. Description. Features

ULN2801A, ULN2802A, ULN2803A, ULN2804A

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

BD241A BD241C. NPN power transistors. Features. Applications. Description. NPN transistors. Audio, general purpose switching and amplifier transistors

AN4156 Application note

ST High voltage fast-switching NPN power transistor. Features. Applications. Description

AN3998 Application note

AN2389 Application note

AN3110 Application note

UM0834 User manual. Developing and debugging your STM8S-DISCOVERY application code. Introduction. Reference documents

AN3353 Application note

Single LNB supply and control IC DiSEqC 1.X compliant with EXTM based on the LNBH29 in a QFN16 (4x4) Description

AN3990 Application note

AN2604 Application note

ESDLIN1524BJ. Transil, transient voltage surge suppressor diode for ESD protection. Features. Description SOD323

BD135 - BD136 BD139 - BD140

AN2557 Application note

ULN2001, ULN2002 ULN2003, ULN2004

AN2680 Application note

AN2824 Application note

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

ETP01-xx21. Protection for Ethernet lines. Features. Description. Applications. Benefits. Complies with the following standards

DSL01-xxxSC5. Secondary protection for DSL lines. Features. Description. Applications. Benefits. Complies with the following standards

BZW50. Transil, transient voltage surge suppressor (TVS) Features. Description

Order code Temperature range Package Packaging

AN4128 Application note

STEVAL-IEG001V2. Smart real-time vehicle tracking system. Features

How To Write To An Eeprom Memory On A Flash Memory On An Iphone Or Ipro Memory On Microsoft Flash Memory (Eeprom) On A Microsoft Microsoft Powerbook (Ai) 2.2.2

LM337. Three-terminal adjustable negative voltage regulators. Features. Description

AN3252 Application note

MC Low noise quad operational amplifier. Features. Description

STTH2R06. High efficiency ultrafast diode. Features. Description

UM1613 User manual. 16-pin smartcard interface ST8034P demonstration board. Introduction

AN3359 Application note

LM135-LM235-LM335. Precision temperature sensors. Features. Description

Table 1. Absolute maximum ratings (T amb = 25 C) Symbol Parameter Value Unit. ISO C = 330 pf, R = 330 Ω : Contact discharge Air discharge

AN2866 Application note

STTH1R04-Y. Automotive ultrafast recovery diode. Features. Description

Description. IO and RF AGC. ASIC controller and power management. Carrier recovery loop. GPIO switch matrix. Lock indicator and monitoring DVBS2 FEC

Description. Table 1. Device summary

Description. Table 1. Device summary. Order code Temperature range Package Packaging Marking

L78MxxAB L78MxxAC. Precision 500 ma regulators. Features. Description

SPC5-CRYP-LIB. SPC5 Software Cryptography Library. Description. Features. SHA-512 Random engine based on DRBG-AES-128

UM1969 User manual. Getting started with STM32F746G discovery software development tools. Introduction

LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description

UA741. General-purpose single operational amplifier. Features. Applications. Description. N DIP8 (plastic package)

ST19NP18-TPM-I2C. Trusted Platform Module (TPM) with I²C Interface. Features

L6234. Three phase motor driver. Features. Description

UM1075 User manual. ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32. Introduction

STP60NF06FP. N-channel 60V Ω - 30A TO-220FP STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

AN2703 Application note

P6KE. Transil, transient voltage surge suppressor (TVS) Features. Description. Complies with the following standards

AN3270 Application note

STP60NF06. N-channel 60V Ω - 60A TO-220 STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

STN3NF06L. N-channel 60 V, 0.07 Ω, 4 A, SOT-223 STripFET II Power MOSFET. Features. Application. Description

AN3155 Application note

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Description. Table 1. Device summary. Order codes. TO-220 (single gauge) TO-220 (double gauge) D²PAK (tape and reel) TO-220FP

AN2146 APPLICATION NOTE

Description SO-8. series. Furthermore, in the 8-pin configuration Very low-dropout voltage (0.2 V typ.)

STTH110. High voltage ultrafast rectifier. Description. Features

Figure 1. STM32F429 Discovery board: STM32F429I-DISCO

UM0462 User manual. STM32 and STM8 Flash loader demonstrator. Introduction

AN2760 Application note

AN3997 Application note

TDA W CAR RADIO AUDIO AMPLIFIER

STP55NF06L STB55NF06L - STB55NF06L-1

STGB10NB37LZ STGP10NB37LZ

Obsolete Product(s) - Obsolete Product(s)

TDA2004R W stereo amplifier for car radio. Features. Description

STDP2690. Advanced DisplayPort to DisplayPort (dual mode) converter. Features. Applications

AN2328 Application note

MC34063AB, MC34063AC, MC34063EB, MC34063EC

STM32F4DISCOVERY. Discovery kit with STM32F407VG MCU. Features. Description

AN4368 Application note

TN0072 Technical note

UM0109 USER MANUAL. Public Transport Ticketing Demo

32F072BDISCOVERY. Discovery kit for STM32F072xx microcontrollers. Features. Description

STCS A max constant current LED driver. Features. Applications. Description

STP10NK80ZFP STP10NK80Z - STW10NK80Z

STB75NF75 STP75NF75 - STP75NF75FP

AN438 APPLICATION NOTE SAFETY PRECAUTIONS FOR DEVELOPMENT TOOL TRIAC + MICROCONTROLLER

VN05N. High side smart power solid state relay PENTAWATT. Features. Description

Installation Guide E Dielectric Probe Kit 85071E Materials Measurement Software

Transcription:

User manual STM8SVLDISCOVERY quick start guide Introduction The STM8SVLDISCOVERY, based on the STM8S003K3T6, is a quick-start evaluation board for the 8-bit mainstream line of MCUs. It is the cheapest and quickest way to discover the STM8S Value line features and performance, to program and use the device, and to build and debug applications using the embedded debugger ST-LINK. Simply connect the STM8SVLDISCOVERY to a PC through a standard USB cable, and run the pre-programmed example. Once the debugger is open, you can see the real-time execution of the code. Applications are provided to allow you to learn, reuse and modify their source code. This can be used for a quick proof-of-concept, evaluation or demonstration prototype. The STM8SVLDISCOVERY is ideal for hobbyists, developers, students and support teams. By using this document as a guide and trying out the application examples, you can quickly familiarize yourself with the STM8SVLDISCOVERY and all its possibilities. Visit www.st.com/stm8svldiscovery to access all related user manuals and application notes. Reference documents STM8SVLDISCOVERY user manual (UM1482) Developing and debugging your STM8S-DISCOVERY application code (UM0834) ST Visual Develop (STVD) user manual (UM0036) Adjustable LED blinking speed using STM8SVLDISCOVERY (AN3996) STM8S reference manual (RM0016) STM8S003 datasheet November 2011 Doc ID 022385 Rev 1 1/10 www.st.com

Contents UM1480 Contents 1 Getting started.............................................. 4 1.1 System prerequisites......................................... 4 1.2 Discover demo.............................................. 4 1.3 Quick start tutorial (less than 20 minutes)......................... 4 1.3.1 Software environment (optional)............................... 5 1.3.2 Running the STM8SVLDISCOVERY application examples........... 5 1.3.3 Developing your own application............................... 6 2 Support................................................... 8 3 Revision history............................................ 9 2/10 Doc ID 022385 Rev 1

List of tables List of tables Table 1. Application.............................................................. 4 Table 2. Document revision history.................................................. 9 Doc ID 022385 Rev 1 3/10

Getting started UM1480 1 Getting started The present document provides a quick overview on how to get started with your STM8S Value line application. For all details on application development and debugging refer to the user manual Developing and debugging your STM8S-DISCOVERY application code (UM0834). Note: UM0834 is pertinent to the STM8S-DISCOVERY and may require adaptation to be used with the STM8SVLDISCOVERY. 1.1 System prerequisites Before using the STM8SVLDISCOVERY, the following material is required: A Windows PC (XP, Vista, 7) A USB type A to B cable 1.2 Discover demo The STM8SVLDISCOVERY comes pre-programmed with the Discover demo. This selfteaching demo makes LD1 LED blink at different speeds when the user push button is pressed. 1. Simply connect the STM8SVLDISCOVERY to your PC using a USB cable. 2. The application immediately starts and LD1 starts toggling slowly (every second). 3. Each time a user push button event is detected, LD1 blinking speed increases until: 4. The third time the button is pressed results in the LED being switched off. 5. You can then restart a blinking cycle from the 200ms blinking speed state (see Table 1). For demo details, download application note AN3996 on www.st.com/stm8svldiscovery. For details about the board, refer to STM8SVLDISCOVERY user manual UM1482. Table 1. Application Push button LED1 Period At application start-up (only) Toggle 1 sec 1st press Toggle 200 ms 2nd press Toggle 100 ms 3rd press Switched off N/A 1.3 Quick start tutorial (less than 20 minutes) This tutorial explains how to start running one of the STM8SVLDISCOVERY application examples from scratch in less than 20 minutes. 4/10 Doc ID 022385 Rev 1

Getting started 1.3.1 Software environment (optional) 1. Download your free software environment (IDE). Choose between: a) IAR Embedded Workbench for STM8 available on www.iar.com, which includes its own compiler, b) STMicroelectronics MCU toolset composed of ST Visual Develop (STVD) and ST Visual Programer (STVP) available on http://www.st.com. STVD requires either Cosmic or Raisonance freeware compilers: - Cosmic for STM8 available on http://www.cosmicsoftware.com/download.php - Raisonance 32K for STM8 available on www.mcu-raisonance.com To install the Raisonance compiler, download both Ride7 and the Raisonance kit RKit-STM8 and follow the installation wizard instructions Note: 1 A free license is required to use the compilers. You will receive the license file by e-mail, this procedure is not automatic so it may take a few hours or a few days (after the week-end), depending on your location and time zone, before you receive your license file. 2 For installation details of your IDE and/or your compilers, read Chapter 2 of UM0834 available on www.st.com/stm8s-discovery. 1.3.2 Running the STM8SVLDISCOVERY application examples The STM8SVLDISCOVERY is provided with some application examples available on www.st.com/stm8svldiscovery. Ensure your free software environment is correctly installed. 1. Download one of the application examples and its associated application note (available on www.st.com/stm8svldiscovery) and extract the directory STM8SVLDISCOVERY_Example on your PC. 2. Run the IDE of your choice: STVD or IAR. If you chose STVD 1. Select File -> Open Workspace and browse for the Example.stw project that you intend to run: Cosmic: STM8SVLDISCOVERY_Example/Project/Example/STVD/Cosmic/Example.stw. Raisonance: STM8SVLDISCOVERY_Example/Project/Example/STVD/Raisonance/ Example.stw. 2. Configure STVD to use ST-LINK as the debug instrument: a) Click Debug Instrument -> Target Settings. b) Select target Swim ST-LINK in the target list. 3. Click Build -> Rebuild All to build your application. 4. Click Debug -> Start Debugging to download your application to the STM8S program memory and start the debug session. 5. Run the application code in Debug or Stand-alone mode: a) Click Debug -> Run to run your application in debug mode. b) Click Debug -> Stop Debugging to disconnect the debugger; then the application starts running immediately in stand-alone mode. Doc ID 022385 Rev 1 5/10

Getting started UM1480 If you chose IAR Note: 1. Select File -> Open -> Workspace and browse for the Example.eww project that you intend to run: STM8SVLDISCOVERY_Example/Project/Example/EWSTM8/Cosmic/Example.eww 2. Configure EWSTM8 to use ST-LINK as the debug instrument: a) Right-click on the project name Example in the Workspace window and select Options... b) In Category Debugger, select target ST-LINK in the menu Driver. 3. Click Project -> Rebuild All to build your application 4. Click Project -> Download and Debug to download your application to the STM8S program memory and start the debug session 5. Run the application code in Debug or Stand-alone mode: a) Click Debug -> Go to run your application in debug mode b) Click Debug -> Stop Debugging to disconnect the debugger; then the application starts running immediately in stand-alone mode. Once the selected application is running in one of the above IDEs, check whether it operates as described in the application note associated with the example. Some of the examples require additional components to work properly. See the application note associated with the example to find out more. 1.3.3 Developing your own application 1. Ensure the free software environment of your choice (IDE and/or compilers) is correctly installed. If this is not already done, refer to Section 1.3.1. 2. Install one of the STM8SVLDISCOVERY application examples: a) Download ANxxxx.zip from www.st.com/stm8svldiscovery (zip file available together with this ANxxxx) and extract the directory structure on your PC. b) Duplicate the project_template directory and rename it (My_own_project). 3. Run the Integrated Development Environment of your choice. 4. Select File -> Open Workspace. 5. Open the project My_own_project following the procedure explained in section Section 1.3.2: STVD with Cosmic: STM8SVLDISCOVERY_My_own_project/Project/My_own_project/STVD/ Cosmic/STVD_workspace.stw STVD with Raisonance: STM8SVLDISCOVERY_My_own_project/Project/My_own_project/STVD/ Raisonance/STVD_workspace.stw IAR Embedded Workbench (EWSTM8): STM8SVLDISCOVERY_My_own_project/Project/My_own_project/STVD/ EWSTM8/workspace.eww 6/10 Doc ID 022385 Rev 1

Getting started If you chose STVD 1. Check that appropriate MCU is selected: a) Go to Projects>Settings>MCU and check that STM8S003K3 is displayed in the selected MCU field. b) If not already done, select it from the MCU list and ensure that this MCU is displayed in the selected MCU field before clicking OK. 2. Add your project files to the STVD workspace windows then build and debug your application code. If you chose IAR with IAR Embedded Workbench for STM8 1. Check that appropriate MCU is selected: a) Right-click on the project name My_own_project in the Workspace window and select Options... b) In General Options category, select STM8S003K3U as Target Device. 2. Check that all the path of your project include directories are defined a) Right-click on the project name My_own_project in the Workspace window and select Options... b) In C/C++ Compile Category, select Preprocessor tab. c) If not already set, add your relative include directory paths using $PROJ_DIR$ key world as follow for instance: $PROJ_DIR$\..\inc $PROJ_DIR$\..\..\..\Libraries\STM8S_StdPeriph_Driver\inc 3. Add your project files to the IAR EWSTM8 workspace window then build and debug your application code. This procedure provides for a prestructured project workspace and simplifies your project design. Detailed instructions on project creation are provided in the user manual UM0834, Developing and debugging your STM8S-Discovery application code, available for download from www.st.com/stm8s-discovery. Doc ID 022385 Rev 1 7/10

Support UM1480 2 Support For support go to www.st.com, select the Support button and choose either: ST e2e Communities and visit our STM8SVLDISCOVERY forum (or access directly from www.st.com/e2e). Online Support, and contact our technical support. 8/10 Doc ID 022385 Rev 1

Revision history 3 Revision history Table 2. Document revision history Date Revision Changes 24-Nov-2011 1 Initial release. Doc ID 022385 Rev 1 9/10

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 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 TWO AUTHORIZED ST REPRESENTATIVES, 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 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. 2011 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 10/10 Doc ID 022385 Rev 1