Home
Flasher STM8 Software
Contents
1. 9 1 1 What is Flasher STM8 1 6 10 1 1 1 Nice Ct ahah 10 1 2 ASSU MPEIONS are nn nr a a 11 1 3 ReEQUIF MENES nas era re retest 12 1 3 1 FOSSES AE dye ac earn 12 1 3 2 tren werent 12 2 Getting eaten 13 2 1 SGU E o ae Nau 14 2 1 1 What is included fesse es siete lode ol a vada 14 2 2 Using Flasher STM8 Software for the first 15 2 2 1 Sample Projects peda chal 16 2 3 MERURSEFUCTUIE tain a ee 17 S es hihi tea he ec lp tc sig Ae se cag ee ain 21 3 1 PROJECU SCINGS ee tent era ne Sat 22 3 1 1 General Settings vance visa hel ett 22 3 1 1 1 gt ae
2. Core MCU STM8L STM8L151K6 STM8L STM8L152C4 STM8L STM8L152C6 STM8L STM8L152K4 STM8L STM8L152K6 STM8S STM8S103F2 STM8S STM8S103F3 STM8S STM8S103K3 STM8S STM8S105C4 STM8S STM8S105C6 STM8S STM8S105K4 STM8S STM8S105K6 STM8S STM8S105S4 STM8S STM8S105S6 STM8S STM8S207C6 STM8S STM8S207C8 STM8S STM8S207CB STM8S STM8S207K6 STM8S STM8S207M8 STM8S STM8S207MB STM8S STM8S207R6 STM8S STM8S207R8 STM8S STM8S207RB STM8S STM8S207S6 STM8S STM8S207S8 STM8S STM8S207SB STM8S STM8S208C6 STM8S STM8S208C8 STM8S STM8S208CB STM8S STM8S208MB STM8S STM8S208R6 STM8S STM8S208R8 STM8S STM8S208RB STM8S STM8S208S6 STM8S STM8S208S8 STM8S STM8S903K3 Flasher STM8 Software 0 05007 2011 SEGGER Microcontroller GmbH amp Co KG 45 Chapter 7 Support The following chapter provides information about how to contact our support Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 46 7 1 CHAPTER 7 Support Troubleshooting 7 1 1 General procedure e Make sure your Flasher is working as expected See the troubleshooting section in the Flasher manual e Ensure that the target hardware matches the project file settings Pay special attention to the following aspects RAM address Flash base address MCU e Try to program your target device using a sample project file if available Flasher STM8 Software ships with an extensive number of project files for many target bo
3. The complexity of user interface can be selected Select the Engineering checkbox if you want to setup your project or the Simplified checkbox if you use Flasher STM8 Software in production environments In the simplified user interface some options are disabled to decrease possible error sources in the production phase 3 1 1 1 USB If this option is checked Flasher STM8 Software will connect to Flasher over the USB port You may change the device number if you want to connect more than one Flasher to your PC The default device number is 0 For more information about how to use multiple Flasher on one PC please refer to the Flasher STM8 User Guide 3 1 1 2 TCP IP If this option is checked Flasher STM8 Software will connect to Flasher via TCP IP You have to specify the IP address of the Flasher you want to connect to 3 1 1 3 Enable Flasher logfile If this option is checked you can specify a file name for the Flasher STM8 Software logfile The Flasher logfile will contain the same outputs as the Flasher STM8 Soft ware log window You can specify one logfile per project Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 23 3 1 2 Target interface settings This dialog allows the selection of the target interface At the moment Flasher STM8 is able to choose between the target interfaces SWIM high speed which is the default and should be used in almost any case and Sw
4. 27 3 2 2 2 Enable DEL atte 28 4 Command Line Interface sise 29 4 1 30 4 2 Command line 1 4 1 44 31 4 3 Batch letter instant te 32 5 Working with Flasher STM8 software 2 33 5 1 Creating new Flasher STM8 Software Project 34 5 2 Programming STM8 option 5 39 5 2 1 Modifying option bytes already present 39 Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 5 2 2 Creating option byte values for your target 39 Target SYSICING a dns 41 6 1 Which devices can be programmed by Flasher STM8 Software 42 6 2 Supported Microcontrollers EE EEE EEE 43 dies 45 7 1 TFOUDIESHOOLING ii fuss 46 7 1 1 General Procedures RE 46 7 1 2 Problems cs veces ee en 46 7 2 CONLACTINGSUPPORE nan Oia ener Oe re Ae
5. 22 3 1 1 2 a ne ae nr een 22 3 1 1 3 Enable Flasher logfile mirni renim Rat 22 3 1 2 655 dun near aan abs deen eyed toh aa eee 23 3 1 3 CPU SETIN So na 24 3 1 3 1 24 3 1 3 2 WISE target RAM ae a Seat ag ne 24 3 1 4 Flash sab eve 25 3 1 4 1 Base Address At foie deere Sabie 25 3 1 4 2 ses are OR ET 25 3 1 4 3 Sector selection rss AR Eck ER ee eee 25 3 1 5 PFOCUCTION Settings eiii ra ea a daaa a 26 3 2 Global Settings 27 3 2 1 eg ide 27 3 2 1 1 Disconnect after each operation EE EEE EEE EEE 27 3 2 1 2 Automatically unlock Sectors is EE EEE 27 3 2 1 3 Perforny Blank check 27 3 2 1 4 Skip blank areas read 6 6 27 3 2 2 D 27 3 2 2 1 General log level es dees ey
6. lt EADDR gt apply only if the data file is a bin file or c file savecfg lt FILENAME gt Saves programmer config file savedat lt FILENAME gt Saves programmer data file download Downloads configuration to programmer relocate lt OFFSET gt Relocate data by the given offset delrange lt SADDR gt lt EADDR gt Delete data in the given range connect Connect to target disconnect Disconnect from target unsecurechip Unsecures target device checkblank Blank check target erasesectors Erases selected sectors erasechip Erases entire flash chip programverify Program and verify target program Program target auto Erases programs and verifies target verify Verify target memory readsectors Read selected sectors readchip Read entire flash chip readrange lt SADDR gt lt EADDR gt Read specified range of target memory startapp Start target application exit Exit Flasher STM8 Software help Display help dialog Display help dialog Flasher STM8 Software UM05007 Table 4 1 Flasher STM8 Software command line options 2011 SEGGER Microcontroller GmbH amp Co KG 32 CHAPTER 4 Command Line Interface 43 Batch processing Flasher STM8 Software can be used for batch processing purposes All important options are available in command line mode as well If you provide command line options Flasher
7. FlasherS TM8 Shipping_STM8 FlasherS TM8 Default New project created successfully mi List of MCU devices read successfully 104 Devices 2 Flasher STM8 Software 0 05007 2011 SEGGER Microcontroller GmbH amp Co KG 16 2 2 1 Sample Projects CHAPTER 2 Getting Started If you are new to Flasher STM8 Software it might be a good idea to open one of our sample projects to familiarize yourself with the application You find those project files in the Projects subdirectory of Flasher STM8 Software s installation directory Once you have opened a project file the project window contains the relevant project settings e g chip type RAM size etc The settings are known to be good defaults for the respective devices You may then continue to open your own data files to actually program your device The table below contains the included project files together with a short description Project Description STM8L101K3 jflash STM8L101K3 with internal flash memory STM8S208MB jflash STM8S208MB with internal flash memory Table 2 2 List of sample Flasher STM8 Software projects Flasher STM8 Software 0 05007 2011 SEGGER Microcontroller GmbH amp Co KG 23 Menu structure The main window of Flasher STM8 Software contains seven drop down menus File Edit View Target Options Window Help Any option within these drop down menus that is followed by a three period el
8. base address of the selected device The default value is 0 which fits for all STM8 devices 3 1 4 2 Organization You should select the buswidth and the number of flash chips connected to the address and data bus of the MCU Normally this has not to be changed for STM8 devices 3 1 4 3 Sector selection The final section of this dialog indicates the sectors to be acted upon whether they are to be cleared read back or written An individual or series of sectors may be selected from the predetermined valid range Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 26 CHAPTER 3 Settings 3 1 5 Production settings The performed actions of the auto programming feature Target gt Auto shortcut F7 can be defined in the production settings dialog The default behaviour is Pro gram and Verify Complete data Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 27 3 2 Global Settings Global settings are available from the Options menu in the main window Global settings xi Operation Auto mode affects affected sectors only Automatically unlock sectors if necessary Perform blank check before program Skip blank areas on read Logging General log level Level 2 7 Enable DLL logfile EShipping_ 5 TM8 FlasherS TM8 STM8 log Cancel 3 2 1 Operation You may define the behavior of some operations s
9. have the option bytes available you need you can follow these steps to create the desired option byte values e Start the Flasher STM8 software e Open or create a project for your device e Inthe project settings on the Flash tab select only the sector located at 0x4800 from the sector list box e Use the menu entry Target gt Read back gt Selected sectors to read back the sector that contains the option bytes You can now freely edit the option bytes and any other data stored in the option bytes sector Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 40 Flasher STM8 Software 0 05007 CHAPTER 5 Working with Flasher STM8 software 2011 SEGGER Microcontroller GmbH amp Co KG 41 Chapter 6 Target systems The following chapter lists all supported flash devices Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 42 CHAPTER 6 Target systems 6 1 Which devices can be programmed by Flasher STM8 Software Flasher STM8 Software can program internal flash Flasher STM8 Software supports all STM8 microcontrollers The next section lists all supported micros known by the time this document has been written If you need support for a chip or flash not listed in the tables below do not hesitate to contact us Segger is constantly adding support for new devices You may want to request an updated list or have a look at http www segger com for more up
10. tools and ANSI b C software components middleware for embedded systems in several industries such as telecom medi cal technology consumer electronics automotive SEGG ER industry and industrial automation SEGGER S intention is to cut software development time for embedded applications by offering compact flexible and easy to use middleware allowing developers to concentrate on their application Our most popular products are emWin a universal graphic software package for embed ded applications and embOS a small yet efficent real time kernel emWin written entirely in ANSI C can easily be used on any CPU and most any display It is comple mented by the available PC tools Bitmap Converter Font Converter Simulator and Viewer embOS supports most 8 16 32 bit CPUs Its small memory footprint makes it suitable for single chip applications Apart from its main focus on software tools SEGGER developes and produces program ming tools for flash microcontrollers as well as J Link a JTAG emulator to assist in devel opment debugging and production which has rapidly become the industry standard for debug access to ARM cores Corporate Office United States Office http www segger com http www segger us com EMBEDDED SOFTWARE SEGGER TOOLS Middleware emWin Flasher Graphics software and GUI Flash programmer emWin is designed to provide an effi Flash Programming tool primarily for microcon cient processor and disp
11. Flasher STM8 Software User guide of the stand alone flash programming software Software Version 1 08 Manual Rev 6 Date August 10 2011 Document UM05007 Nie SEGGER A product of SEGGER Microcontroller GmbH amp Co KG www segger com Disclaimer Specifications written in this document are believed to be accurate but are not guar anteed to be entirely free of error The information in this manual is subject to change for functional or performance improvements without notice Please make sure your manual is the latest edition While the information herein is assumed to be accurate SEGGER Microcontroller GmbH amp Co KG the manufacturer assumes no responsibility for any errors or omissions The manufacturer makes and you receive no warranties or conditions express implied statutory or in any communication with you The manufacturer specifically disclaims any implied warranty of merchantability or fitness for a particular purpose Copyright notice You may not extract portions of this manual or modify the PDF file in any way without the prior written permission of the manufacturer The software described in this doc ument is furnished under a license and may only be used or copied in accordance with the terms of such a license 2011 SEGGER Microcontroller GmbH amp Co KG Hilden Germany Trademarks Names mentioned in this manual may be trademarks of their respective companies Brand and product names are
12. Rodents 47 8 Literature andre l entes ee a tes ee he couch ca 49 Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG Chapter 1 Introduction The following chapter introduces Flasher STM8 Software highlights some of its features and lists its requirements on host and target systems Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 10 CHAPTER 1 Introduction 1 1 Whatis Flasher STM8 Software Flasher STM8 Software is a stand alone flash programming software for PCs running Microsoft Windows The following Microsoft Windows versions are supported Microsoft Windows 2000 Microsoft Windows XP Microsoft Windows XP x64 Microsoft Windows 2003 Microsoft Windows 2003 x64 Microsoft Windows Vista Microsoft Windows Vista x64 Microsoft Windows 7 Microsoft Windows 7 x64 Flasher STM8 Software has an intuitive user interface and makes programming flash devices convenient Flasher STM8 Software requires a Flasher STM8 flasher for STM8 cores to interface to the hardware Flasher STM8 Software supports a feature called smart read back which only transfers non blank portions of the flash increas ing the speed of read back greatly These features along with its ability to work with any 5 8 chip makes it a great solution for most projects 1 1 4 Features Any 5 8 core supported STM8 microcontroller internal flash support Sma
13. STM8 Software will still start its GUI but processing will start imme diately The example batchfile displays a message opens a project and a data file starts pro gramming and closes Flasher STM8 Software The return value will be checked and in case of an error an error message displayed Adapt the example according to the requirements of your project ECHO OFF ECHO Open a project and data file start programming and exit FlasherSTM8 exe openprjC Projects Default jflash openC Data data bin 0x4800 program exit IF ERRORLEVEL 1 goto ERROR goto END ERROR ECHO Flasher STM8 Software Error pause END Note that every call of FlasherSTM8 exe has to be completed with the exit option otherwise the execution of the batch file stops and the following commands will not be processed Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 33 Chapter 5 Working with Flasher STM8 software This chapter contains information about the required steps how to setup a new Flasher STM8 Software project and other common tasks related to the Flasher STM8 software that you may need when working with the Flasher STM8 Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 34 CHAPTER 5 Working with Flasher STM8 software 5 1 Creating a new Flasher STM8 Software project Before creating a new Flasher STM8 Software project you should hav
14. ards See section Sample Projects on page 16 for a complete list of project files 7 1 2 Typical problems Failed to connect Meaning This error message is shown if any error occurs during the connection process Remedy Make sure the target is actually connected to Flasher STM8 and powered Verify the correct connection between target and Flasher Blank check failed Meaning The target memory was not empty during blank check Remedy Erase target memory RAM check failed Meaning No RAM found at the specified RAM location Remedy Make sure a correct RAM address is specified in the project settings See section CPU Settings on page 24 Unsupported flash type bus width Meaning The target flash memory or the bus organization is not yet supported Remedy Inform us about the device you want to use SEGGER is constantly adding support for new devices No matching RAMCode Meaning There is no programming algorithm available for the selected target memory type Remedy Inform us about the device you want to use SEGGER is constantly adding support for new devices Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 47 7 2 Contacting support If you experience a Flasher STM8 Software related problem and the advices from the sections above do not help you to solve it you may contact our Flasher STM8 Soft ware support In this case please provide us with the following informat
15. ata file can be defined Test speed writes data of a specified size to a defined address reads the written data back and measures the up and download speed Hardware gt allows testing of proper functionality of the Flasher RS232 interface signals Secure chip Secures the MCU Unsecure chip Unsecures the MCU Check blank Checks flash to see if it is empty Fill with zero Fills all selected flash sectors with zero Erase sectors Erases all selected flash sectors Erase chip Erases the entire chip Program Programs the chip using the currently active data file Program amp Verify Programs the chip using the currently active data file and then verifies that it was written successfully The Auto command performs a sequence of steps It con nects to the device erases sectors and programs the chip using the currently active data file before the written Auto data is finally verified The range of sectors to be erased can be configured through the Flash tab of the Project settings dialog and through the Global settings dialog See chapter Settings on page 21 for further details Verify Verifies the data found on the chip with the data file VerifyCRC gt Verifies the CRC There are three ways in which the CRC can be verified Affected sectors verifies the CRC of the affected sec tors Selected sectors verifies the CRC of the selected sec tors Ent
16. duction to Flasher STM8 Software It provides an overview of the included sample projects and describes Flasher STM8 Software s menu structure in detail Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 14 CHAPTER 2 Getting Started 21 Setup The Flasher STM8 setup procedure required in order to work with Flasher STM8 Soft ware is described in the Flasher STM8 User Guide The Flasher STM8 User Guide is part of the Flasher STM8 software package which is available for download under www segger com 211 Whatis included The following table shows the contents of all subdirectories of the Flasher STM8 software and documentation pack with regard to Flasher STM8 Software Directory Contents The Flasher STM8 Software application Please refer to the Flasher STM8 manual for more information about the other Flasher related tools Contains the Flasher STM8 Software documentation and RES the other Flasher related manuals Two csv files for the Flasher STM8 Software internal management of supported MCU s und flash chips Sam Contains sample projects with good default settings ple FlasherSTM8 Pro see section Sample Projects on page 16 for further jectFiles details Table 2 1 Flasher STM8 Software directory structure Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 15 2 2 Using Flasher STM8 Software for the first time S
17. e an under standing of your target system e a look at the schematic and the documentation of your CPU SOC e Locate RAM in the chip documentation In the following all the necessary steps to create a project file are explained 1 Select File gt New Project to open a new project 2 Open the Project Settings context menu Select Options gt Project Settings or press ALT F7 to open the Project settings dialog and select the type of con nection to Flasher STM8 Project settings Select Engineering More options typically used for setup Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 35 3 The Target interface dialog should look similar to the one below Using the SWIM high speed interface should be fine in almost any case If you are using a longer target cable than shipped with your Flasher STM8 operation in high speed mode can not be guaranteed If your Flasher is operating unstable or is not able to communicate with the target at all it might help to use the low speed mode instead Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 36 CHAPTER 5 Working with Flasher STM8 software 4 Choose a device from Device choice list in the CPU dialog Flasher STM8 Soft ware uses correct default values RAM address and size for this device If your device is not in the list you may have success in choosing a device which fits your target system bes
18. ers which are enclosed in angle brackets e g lt FILE NAME gt If these parameters are optional they are enclosed in square brackets too e g lt SADDR gt Neither the angel nor the square brackets must be typed on the command line they are used here only to denote optional parameters Also note that a parameter must follow immediately after the option e g FlasherSTM8 exe openprjC Projects Default jflash All command line options return if the processing was successfully An return value unequal 0 means that an error occured Option Description openprj lt FILENAME gt Open an existing project file merge lt FILENAME gt SADDR Merges the currently opened datafile with another data file hex mot srec or bin In case of bin a second parameter in hex is needed as start addr saveprjas lt FILENAME gt Save the current project in the specified file saveprj Save the current project open lt FILENAME gt lt SADDR gt Open a data file Please note that the lt SADDR gt parameter applies only if the data file is a bin file saveas lt FILE NAME gt lt SADDR gt lt EADDR gt Save the current data file into the specified file Please note that the parameters lt SADDR gt lt EADDR gt apply only if the data file is a bin file or c file save lt SADDR gt lt EADDR gt Save the current data file Please note that the parameters lt SADDR gt
19. im low speed which is slower than the high speed interface but might help if Flasher 8 15 not operating stable within your environment Further details about the bit format used in high speed and low speed interface mode be acquired from the STM8 SWIM protocol available from ST Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 24 CHAPTER 3 Settings 3 1 3 CPU Settings This dialog allows the selection of microcontroller dependent settings To program internal flash devices choose the respective microcontroller in the Device list If your microcontroller is not found on this list contact SEGGER as new microcontrollers are continuously being added 3 1 3 1 Device Select the respective microcontroller from the list to program internal flash devices 3 1 3 2 Use target RAM You may enable the use of target RAM to speed up flash operations if available for the selected device To use the target RAM a start location in RAM and the amount of RAM to be used must be entered Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 25 3 1 4 Flash Settings This dialog is used to select and configure the flash device to operate with The listed options of the Flash settings menu are dependent on the selection in the CPU settings dialog The should look similar to the screenshot below Project settings 3 1 4 1 Base Address You may enter the
20. ion detailed description of the problem e The relevant log file and project file In order to generate an expressive log file set the log level to All messages see section Global Settings on page 27 for information about changing the log level in Flasher STM8 Software e The relevant data file as a hex or mot file if possible e processor used Once we received this information we will try our best to solve the problem for you Our contact address is as follows SEGGER Microcontroller GmbH amp Co KG In den Weiden 11 D 40721 Hilden Germany Tel 49 2103 2878 0 Fax 49 2103 2878 28 Email support segger com Internet http www segger com Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 48 Flasher STM8 Software 0 05007 CHAPTER 7 Support 2011 SEGGER Microcontroller GmbH amp Co KG 49 Chapter 8 Literature and references This chapter lists documents which we think may be useful to gain a deeper under standing of technical details Flasher STM8 UM05006 2011 SEGGER Microcontroller GmbH amp Co KG 50 CHAPTER 8 Literature and references Reference Title Comments This document describes the SWIM STM8 SWIM STM8 SWIM communica protocol used by STM8 targets for rotocol tion protocol and debug communication with the Flasher module UM0470 STM8 It is publicly available from ST www st com Table 8 1 Lite
21. ire chip verifies the CRC of the entire chip Read back gt Reads back the data found on the chip and creates a new data file to store this information There are three ways in which the data can be read back The Selected sectors identified on the Flash tab of the Project Settings found in the Options drop down menu may be read back The Entire chip may be read back A specified Range may be read back Start Application Starts the application found on the chip Table 2 6 Target menu elements Flasher STM8 Software 0 05007 2011 SEGGER Microcontroller GmbH amp Co KG Options menu elements Command Description Project settings Location of the project settings that are displayed in the snapshot view found in the Project window of the Flasher STM8 Software application as well as various settings needed to locate the Flasher and pass specified com mands needed for chip initialization Global settings Settings that influence the general operation of Flasher STM8 Software Table 2 7 Options menu elements Window menu elements Command Description Cascade Arranges all open windows one above the other with the active window at the top Tile Horizontal Tiles the windows horizontally with the active window at the top Tile Vertical Tiles the windows vertically with the active window at the left Table 2 8 Windo
22. lay control trollers ler independent graphical user interface GUI for any application that J Link operates with a graphical display JTAG emulator for ARM cores Starterkits eval and trial versions are USB driven JTAG interface for ARM cores available J Trace embos JTAG emulator with trace Real Time Operating System USB driven JTAG interface for ARM cores with emb0OS is an RTOS designed to offer Trace memory supporting the ARM ETM Embed TT the benefits of a complete multitasking ded Trace Macrocell system for hard real time applications with minimal resources The profiling J Link J Trace Related Software PC tool embOSView is included Add on software to be used with SEGGER s indus try standard JTAG emulator this includes flash emFile programming software and flash breakpoints File system emFile is an embedded file system with FAT12 FAT16 and FAT32 support emFile has been optimized for mini mum memory consumption in RAM and ROM while maintaining high speed Various Device drivers e g for NAND and NOR flashes SD MMC and Com pactFlash cards are available emUSB USB device stack A USB stack designed to work on any embedded system with a USB client controller Bulk communication and most standard device classes are sup ported Table 1 1 2 Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG Table of Contents
23. lipsis is an option that requires more information before proceeding File menu elements Command Description Opens a data file that may be used to flash the target Open device The data file must be an Intel HEX file a Motorola S file or a Binary file hex mot srec bin Merge Merges two data files hex mot srec bin Save Saves the data file that currently has focus S ve Asii Saves the data file that currently has focus using the name and location given New Project Creates a new project using the default settings Open Project Opens a Flasher STM8 Software project file Note that only one project file may be open at a time Opening a project will close any other project currently open Save Project Saves a Flasher STM8 Software project file Save Project As Saves a Flasher STM8 Software project file using the name and location given Close Project Closes a Flasher STM8 Software project file Save programmer con figuration file Saves a Flasher STM8 Software configuration as pro grammer configuration file using the name and location given Save programmer data file Saves the content of the memory window as programmer data image file using the name and location given Download to program mer Download configuration and data to program to a con nected programmer for stand alone usage Recent Files gt Co
24. ntains a list of the most recently open data files Recent Projects gt Contains a list of the most recently open project files Exit Exits the Flasher STM8 Software application Table 2 3 File menu elements Edit menu elements Command Description Relocate Relocates the start of the data file to the supplied hex offset from the current start location Delete range Deletes a range of values from the data file starting and ending at given addresses The End address must be greater than the Start address otherwise nothing will be done Table 2 4 Edit menu elements View menu elements Command Description Opens and or brings the log window to the active win Log dow Project Opens and or brings the project window to the active window Table 2 5 View menu elements Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG Target menu elements CHAPTER 2 Getting Started Command Description Creates a connection through the Flasher using the con Connect figuration options set in the Project settings of the Options drop down menu Disconnects current connection that has been made Disconnect through the Flasher Test gt Two test functions are implemented Generates test data generates data which can be used to test if the flash can be programmed correctly The size of the gen erated d
25. nu explanations 200828 00 Chapter Command Line Interface Updated available commands 1 091210 Initial Version Table List of manual versions Software versions Refer to FlasherSTM8 html for information about the changes of the software ver sions Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG About this document Assumptions This document assumes that you already have a solid knowledge of the following e target processor e DOS command line How to use this manual This manual explains all the functions that Flasher STM8 Software offers Typographic conventions for syntax This manual uses the following typographic conventions Style Used for Body Body text Text that you enter at the command prompt or that appears on the Keyword display that is system functions file or pathnames Parameter Parameters in API functions Sample Sample code in program examples Reference Reference to chapters tables and figures or other documents GUIElement Buttons dialog boxes menu names menu commands Emphasis Very important sections Table 1 1 Typographic conventions Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG SEGGER Microcontroller GmbH amp Co KG develops and distributes software development
26. rature and References Flasher STM8 UM05006 2011 SEGGER Microcontroller GmbH amp Co KG Index 51 F Flasher tedden 12 Menu structure US 17 PROJCCUS dns 16 S SWIM are 12 Syntax conventions used 5 T TEP IP eA IRI 22 U 22 Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 52 CHAPTER Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG
27. rt read back only non blank portions of flash are transferred and saved Verbose logging of all communication hex mot srec and bin support Intuitive user interface Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 1 2 Assumptions This user manual assumes that you already possess working knowledge of the Flasher STM8 device If you feel that your knowledge of Flasher STM8 is not sufficient we recommend the Flasher STM8 manual which describes the device and its use in detail Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 12 CHAPTER 1 Introduction 1 3 Requirements 1 3 1 Host Flasher STM8 Software requires a PC running Microsoft Windows 2000 or later with a free USB port dedicated for a Flasher STM8 A network connection is required only if you want to use Flasher STM8 Software together with a remote Flasher STM8 device When using a network connection for communication with the Flasher no USB data connection is required USB will be needed for power only 1 3 2 Target A SWIM interface must be available on the target device to establish the connection with the host system The target has to be either be powered externally or being able to be powered by 5V that can optionally be output from the Flasher itself Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG Chapter 2 Getting Started This chapter presents an intro
28. t Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 37 5 The Flash dialog should look similar to the screenshot below Normally all default settings can be used without modifications ms Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 38 CHAPTER 5 Working with Flasher STM8 software 6 The Production dialog is secondary for a setup You can define the behaviour of the Auto option Target gt Auto or shortcut F7 which will affect the auto oper ation in Flasher stand alone mode 7 Save your project File gt Save Project and test it Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 39 5 2 Programming STM8 option bytes For STM8 devices the option bytes are memory mapped to the addr 0x4800 For Flasher STM8 software option bytes are handled the same way as any other program mable code data area The exact meaning of every option byte for your device can be found in the device specific manual of your chip manufacturer 5 2 1 Modifying option bytes already present If the output of your program code already contains option bytes it is very easy to modify them Open your output with the Flasher STM8 Software and modify the option byte values already present as needed 5 2 2 Creating option byte values for your target If for some reason you do not already have option bytes in your data file or you do not
29. tart Flasher STM8 Software from the Windows Start menu Flasher STM8 Software s main window will appear which contains a log window at the bottom and the Project window of a default project on the left The application log will initially display The version and time of compilation for the Flasher STM8 Software application The version and time of compilation for the STM8 DLL The number of supported flash devices The number of supported MCU devices The location of the default project The Project window contains an overview of the current project settings initially Flasher STM8 Software opens a default project ny SEGGER Flasher STM8 1 02 C Work FlasherSTM8 Shipping_STM8 FlasherSTM8 Default jflash File Edit View Target Options Window Help Default Connection USB Device 0 Target interlace SWIM MCU ST STM8A4F5169 Endian Big Use target RAM No RAM address 0 0 size 2 2 106 Application log started Flasher STM8 1 02 Flasher STM8 Software 24 2010 11 06 57 JLinkSTM8 dll 1 02 DLL compiled Jun 24 2010 11 06 Reading flash device list C Ras T HENS Hepes ATMENFleahers TMEMET C FlacheS THEN inch cv ae List of flash devices read successfully 104 Devices Reading MCU device list C WorkFlasherS TM8 Shipping_STM8 FlasherS TM8 E TC FlasherS TM8 MCU csv List of MCU devices read successfully 104 Devices Creating new project file C w ork
30. to date information Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 43 6 2 Supported Microcontrollers The list below gives an overview about supported microcontrollers available at the time this document has been written Core MCU STM8A STM8AF5168 STM8A STM8AF5169 STM8A STM8AF5178 STM8A STM8AF5179 STM8A STM8AF5188 STM8A STM8AF5189 STM8A STM8AF518A STM8A STM8AF5198 STM8A STM8AF5199 STM8A STM8AF519A STM8A STM8AF51A8 STM8A STM8AF51A9 STM8A STM8AF51AA STM8A STM8AF6126 STM8A STM8AF6146 STM8A STM8AF6148 STM8A STM8AF6166 STM8A STM8AF6168 STM8A STM8AF6169 STM8A STM8AF6176 STM8A STM8AF6178 STM8A STM8AF6179 STM8A STM8AF6186 STM8A STM8AF6188 STM8A STM8AF6189 STM8A STM8AF618A STM8A STM8AF6198 STM8A STM8AF6199 STM8A STM8AF619A STM8A STM8AF61A8 STM8A STM8AF61A9 STM8A STM8AF61AA STM8A STM8AH6126 STM8A STM8AH6146 STM8A STM8AH6148 STM8A STM8AH6166 STM8A STM8AH6168 STM8L STM8L101F2 STM8L STM8L101F3 STM8L STM8L101G2 STM8L STM8L101G3 STM8L STM8L101K3 STM8L STM8L151C4 STM8L STM8L151C6 STM8L STM8L151G4 STM8L STM8L151G6 STM8L STM8L151K4 Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 44 CHAPTER 6 Target systems
31. trademarks or registered trademarks of their respec tive holders Contact address SEGGER Microcontroller GmbH amp Co KG In den Weiden 11 D 40721 Hilden Germany Tel 49 2103 2878 0 Fax 49 2103 2878 28 Email support segger com Internet http www segger com Manual versions This manual describes the latest software version If any error occurs please inform us and we will try to assist you as soon as possible For further information on topics or routines not yet specified please contact us Revision Date By Explanation Chapter Literature ans references added Chapter Settings 6 110810 OO Added description for target interface dialog Chapter Working with Flasher STM8 software Added description for target interface dialog Renamed the chapter Create a new Flasher STM8 Software project to Working with Flasher STM8 software 3 ROQ Chapter Working with Flasher STM8 software Added explanation how to create option byte data Updated documentation to renamed binaries in 4 100624 Flasher STM8 software and documentation pack age Updated all screenshots Table List of manual versions Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG Revision Date By Explanation Chapter Command Line Interface TOROF New command line command merge Chapter Getting started Updated me
32. uch as Auto or Program amp Ver ify 3 2 1 1 Disconnect after each operation If this option is checked connection to the target will be closed at the end of each operation 3 2 1 2 Automatically unlock sectors If this option is checked all sectors affected by an erase or program operation will be automatically unlocked if necessary 3 2 1 3 Perform blank check If this option is checked a blank check is performed before any program operation to check if the affected flash sectors are completely empty The user will be asked to erase the affected sectors if they are not empty 3 2 1 4 Skip blank areas on read If this option is checked a blank check is performed before any read back operation to check which flash areas need to be read back from target This improves perfor mance of read back operations since it minimizes the amount of data to be trans ferred via SWIM and USB or ethernet 3 2 2 Logging You may set some logging options to customize the log output of Flasher STM8 Soft ware 3 2 2 1 General log level This specifies the log level of Flasher STM8 Software Increasing log levels result in more information logged in the log window Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 28 CHAPTER 3 Settings 3 2 2 2 Enable DLL logfile If this option is checked you can specify a file name for the DLL logfile The DLL log file differs from the log window output of Flasher STM8 Soft
33. w menu elements Help menu elements Command Description Flasher STM8 Software User s Guide Shows this help file in a PDF viewer such as Adobe Reader Flasher STM8 User s Guide Shows the Flasher STM8 User s Guide in a PDF viewer such as Adobe Reader Shows a dialog with licensing information The serial Licenses number of a connected Flasher may be read and licenses added or removed About Flasher STM8 Software and company information Table 2 9 Help menu elements Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 20 Flasher STM8 Software 0 05007 CHAPTER 2 Getting Started 2011 SEGGER Microcontroller GmbH amp Co KG 21 Chapter 3 Settings The following chapter provides an overview of the program settings Both general and per project settings are considered Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 22 CHAPTER 3 Settings 3 1 Project Settings Project settings are available from the Options menu in the main window or by using the ALT F7 keyboard shortcut 3 1 1 General Settings This dialog is used to choose the connection to Flasher STM8 The Flasher can either be connected directly over USB to the host system or it can be connected through TCP IP remotely Refer to the Flasher STM8 manual for more information regarding the operation of Flasher STM8 Project settings
34. ware It does not log Flasher STM8 Software operations performed Instead of that it logs the STM8 DLL API functions called from within Flasher STM8 Software only Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 29 Chapter 4 Command Line Interface This chapter describes the Flasher STM8 Software command line interface The command line allows using Flasher STM8 Software in batch processing mode and other advanced uses Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 30 CHAPTER 4 Command Line Interface 4 1 Overview In addition to its traditional Windows graphical user interface GUI Flasher STM8 Software supports a command line mode as well This makes it possible to use Flasher STM8 Software for batch processing purposes All important options accessi ble from the menus are available in command line mode as well If you provide com mand line options Flasher STM8 Software will still start its GUI but processing will start immediately The screenshot below shows the command line help dialog which is displayed if you start Flasher STM8 Software a console window with FlasherSTM8 exe help or FlasherSTM8 exe Commandline Flasher STM8 Software UM05007 2011 SEGGER Microcontroller GmbH amp Co KG 31 4 2 Command line options This section lists and describes all available command line options Some options accept additional paramet
Download Pdf Manuals
Related Search
Related Contents
Fabius Evolution : Vie Artificielle Manuale d`uso Envoy™ 460 Rolling Walker Marchette Andadera Rodante Instructions d`installation Handöl 34/35 Clavier Nice Motx-r CO-S1 User Manual URAC User`s Manual 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file