AN4178 Application note

Similar documents
STEVAL-SPBT2ATV2. USB Dongle for the Bluetooth class 2 SPBT2532C2.AT module. Features. Description

STEVAL-ICB004V1. Advanced resistive touchscreen controller demonstration board based on the STMPE811. Features. Description

Obsolete Product(s) - Obsolete Product(s)

STEVAL-ILL015V1. High brightness RGB LED array with LED error detection based on the STP24DP05 and STM32. Features. Description

Obsolete Product(s) - Obsolete Product(s)

STEVAL-ILL029V1. Front panel demonstration board based on the STLED325 and STM8S. Features. Description

Obsolete Product(s) - Obsolete Product(s)

STEVAL-ILH004V1. 70 W electronic ballast for metal halide lamp (HID) based on the L6382D5 and ST7FLITE49K2. Features. Description

STEVAL-IHM043V1. 6-step BLDC sensorless driver board based on the STM32F051 and L6234. Features. Description

Multi-channel LED driver with integrated boost controller for medium, large LCD panel backlight based on LED7708 and STM32F103C6T6A

ROBOT-M24LR16E-A. Evaluation board for the M24LR16E-R dual interface EEPROM. Features. Description

STEVAL-CCM003V1. Graphic panel with ZigBee features based on the STM32 and SPZBE260 module. Features. Description

STEVAL-IME002V1. Multi-lead electrocardiogram (ECG) and body impedance demonstration board. Features. Description

IEC compliant smart meter system for AMI applications based on STM32, ST7570 PLM, and STPMC1/STPMS1 chipset

STEVAL-IKR001V7D. Sub Ghz transceiver daughterboard with power amplifier based on the SPIRIT1. Features. Description

STEVAL-IHM021V W, 3-phase inverter based on the L6390 and UltraFASTmesh MOSFET for speed FOC of 3-phase PMSM motor drives. Features.

STEVAL-ILL037V1. Demonstration board for the HVLED805 IC for LED power supply. Features. Description

STEVAL-ISB008V1. Standalone USB Li-Ion battery charger demonstration board based on the STw4102 and STM32F103C6. Features.

STEVAL-CCH002V2. HDMI and video switches demonstration board. Features. Description

STEVAL-IFN003V1. PMSM FOC motor driver based on the L6230 and STM32F103. Features. Description

STEVAL-IHM024V W 3-phase inverter using the L6390 and STGDL6NC60DI for vector control. Features. Applications. Description

EVALPM8803-FWD. EVALPM8803-FWD: IEEE802.3at compliant demonstration kit with synchronous active clamp forward PoE converter. Features.

March 2012 Doc ID Rev 1 1/4

STEVAL-ILH005V W electronic ballast for HID lamps based on the L6562A and ST7LITE39F2. Features. Description

Obsolete Product(s) - Obsolete Product(s)

STEVAL-CCA043V1. 25 Watt mono BTL class-d audio amplifier demonstration board based on the TDA7491MV. Features. Description

GM60028H. DisplayPort transmitter. Features. Applications

STEVAL-ILL043V1. High end, 75 W high power factor flyback LED driver based on the L6562A with two dimmable strings. Features.

L7208. Portable consumer electronics spindle and VCM motor controller. General features. Spindle driver. Description. VCM driver.

GM68020H. DisplayPort receiver. Features. Applications

Obsolete Product(s) - Obsolete Product(s)

PRODUCT INFORMATION LETTER

AN2421 Application note

Obsolete Product(s) - Obsolete Product(s)

TN0885 Technical note

IMPORTANT NOTICE. Company name - STMicroelectronics NV is replaced with ST-NXP Wireless.

SPC564A80CAL176 SPC564A70CAL176

Obsolete Product(s) - Obsolete Product(s)

M24LR04E-R, M24LR16E-R, M24LR64E-R Errata sheet

Main components Narrow-band OFDM power line networking PRIME compliant system-on-chip

ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32

GM69010H DisplayPort, HDMI, and component input receiver Features Applications

STEVAL-TDR007V1. 3 stage RF power amplifier demonstration board using: PD57002-E, PD57018-E, 2 x PD57060-E. Features. Description

Order code Package Connection. SPDC400FC12M0.60 Open frame Comb. October 2007 Rev 1 1/9

STEVAL-IHM025V1. 1 kw 3-phase motor control demonstration board featuring the IGBT SLLIMM STGIPL14K60. Features. Description

PRODUCT TERMINATION NOTIFICATION

AN3075 Application note

STEVAL-IHM008V1. BLDC & AC motor control Power board SEMITOP 2 1kW. Features. Applications

STM32-PRIMER/LAB. Raisonance EvoPrimer-LAB to monitor STM32 applications and standalone STM32 Flash programming. Features

STEVAL-ILL019V1. 32 W offline RGGB LED driver with individual LED channel brightness regulation. Features. Description

STEVAL-ISA121V1. Wide range single-output demonstration board based on the VIPER37LE. Features. Description

Mechanical specification. October 2010 Doc ID Rev 1 1/10

VT5365. Single-chip optical mouse sensor for wireless applications. Features. Applications. Technical specifications. Description.

M24SR-DISCOVERY. Discovery kit for the M24SR series Dynamic NFC/RFID tag. Features

STDP4020. DisplayPort receiver. Features. Applications

STV6417 R/C/Pr, G/C, B/Pb Switches + Filter. C, Y, CVBS/Y Switches + Filter. Audio Switches Volume Control AUDIO R SLOW BLANK

STV6110A. 8PSK/QPSK low-power 3.3 V satellite tuner IC. Description. Features

EVAL-RHF1009A. EVAL-RHF1009A product evaluation board. Description. Features

STEVAL-ISA050V1. Monolithic VR for chipset and DDR2/3 demonstration board based on the PM6641. Features. Application. Description

STEVAL-MKI126V2. MEMS microphone system evaluation board based on the STA321MPL and MP34DB01. Description. Features

BAL-NRF01D3. 50 ohm balun transformer for 2G45 ISM matched Nordic s chipset: nrf24le1 QFN32, nrf24ap2-1ch and nrf24ap2-8ch. Features.

STDP2650 Advanced DisplayPort to HDMI converter Features Applications

Obsolete Product(s) - Obsolete Product(s) UM0223 User manual STEVAL-IFS001V1 evaluation kit with MEMS Introduction

STEVAL-MKI126V3. STSmartVoice demonstration board based on MP34DT01. Description. Features

STEVAL-IHT005V2. Demonstration board with full 3.3 V ACS/Triac control using the STM32F100. Description. Features

Very low-noise, high-efficiency DC-DC conversion circuit

STEVAL-TDR020V1. Portable UHF 2-way radio demonstration board based on the PD84006L-E. Features. Description

UM0534 User manual. STEVAL-MKI014V1 demonstration kit for the LIS344ALH. Introduction

Obsolete Product(s) - Obsolete Product(s)

Main components Proximity and ambient light sensing (ALS) module

FLI30x02 Single-chip analog TV processor Features Application

STEVAL-TDR021V1. Demonstration board using the PD84008L-E for 900 MHz 2-way radio. Features. Description

2 x 58 W high frequency ballast for T8 fluorescent tubes based on L6562A, L6569, and STL11NM60N in PowerFlat HV package

IMPORTANT NOTICE. Company name - STMicroelectronics NV is replaced with ST-NXP Wireless.

STANC0. Stereo HD-PA digitally programmable active noise cancelling audio engine. Features. System. Input and output.

STA3005. Dual-IF AM/FM digital radio receiver. Feature summary. Order codes

EVAL6474PD. Stepper motor driver mounting the L6474 in a high power PowerSO package. Features. Description

STW High voltage fast-switching NPN power transistor. Features. Application. Description

STEVAL-IHM038V1. BLDC ceiling fan controller based on the STM32 and SLLIMM-nano. Description. Features

PRODUCT/PROCESS CHANGE NOTIFICATION

STi5105 High-performance advanced SD decoder for set-top box Features

STEVAL-IHM034V2. Dual motor control and PFC evaluation board featuring the STM32F103 and STGIPS20C60. Features

ST10F273M Errata sheet

PRODUCT INFORMATION LETTER

EVAL6208Q. Stepper motor driver mounting the L6208Q. Features. Description

STDP2500. Mobility DisplayPort (MyDP) to DP converter. Features. Applications

Obsolete Product(s) - Obsolete Product(s)

STEVAL-ILL031V1. Digital constant-current controller for LED driving based on the STM8S208x. Features. Description

Description. Table 1. Device summary. Order codes Temperature range [ C] Package Packing. LPS2HBTR -30 to +105 HLGA - 10L

STDP4320 DisplayPort 1.2a splitter Features Applications

Main components Proximity and ambient light sensing (ALS) module

EVLHVLED815W8CV. 8 W - high power factor - constant voltage regulation based on HVLED815PF. Features. Description

PRODUCT/PROCESS CHANGE NOTIFICATION

UM1596 User manual. STM8 based universal motor control example software. Introduction

SPSGRF-868 / 915 SubGiga (868 or 915 MHz) programmable transceiver module Datasheet

STA2051E VESPUCCI 32-BIT SINGLE CHIP BASEBAND CONTROLLER FOR GPS AND TELEMATIC APPLICATIONS 1 FEATURES. Figure 1. Packages

PRODUCT/PROCESS CHANGE NOTIFICATION

USBLC6-4SC6Y. Automotive very low capacitance ESD protection. Features. Applications. Description. Benefits. Complies with the following standards

AN2415 Application note

Low-cost SDTV set-top box decoder for H.264/AVC and MPEG-2. S/PDIF AudioL AudioR. SD video in. Audio. DACs USB 2.0. Digital video input.

Transcription:

Application note LIN communication with two STM8AF boards of STM8A-DISCOVERY Introduction Note: This application note describes a LIN demonstration. One STM8AF board is configured as a basic LIN master node, while the other STM8AF board is configured as a basic LIN slave node. Each board is connected through a single wire LIN bus, thanks to the LIN transceivers embedded in the L99PM62GXP device. Please read the AN4101 first, which describes the demonstration delivered with the STM8A- DISCOVERY. You can use all these examples as a reference for understanding how to configure LINUART, and how to implement your own LIN driver in STM8AF microcontrollers. A LIN Software Package and a J2602 Software Package are available for free from STMicroelectronics. Please contact your STMicroelectronics sales office for details. Table 1. Applicable products Type Part numbers Microcontrollers STM8AF5xxx STM8AF6x26/4x/66/68 STM8AF6x69/7x/8x/9x/Ax STM8A-DISCOVERY December 2012 Doc ID 23745 Rev 1 1/13 www.st.com

Contents AN4178 Contents 1 Related documents.......................................... 3 2 Implementing a LIN master node with STM8AF board............. 4 2.1 STM8AF microcontroller LINUART and USART features for LIN master.. 4 2.2 Software algorithm........................................... 4 2.2.1 LIN state machine.......................................... 4 2.2.2 LINUART interrupt.......................................... 4 3 Implementing a LIN slave node with STM8AF board............... 5 3.1 STM8AF microcontroller LINUART features for LIN slave............. 5 3.2 Software algorithm........................................... 5 3.2.1 LIN state machine.......................................... 5 3.2.2 LINUART interrupt.......................................... 6 4 LIN demonstration software................................... 7 4.1 Getting started.............................................. 7 4.2 STM8AF LIN master software description......................... 8 4.2.1 STM8AF peripherals........................................ 8 4.2.2 Software modules.......................................... 8 4.2.3 STM8S/A standard peripheral library modules.................... 9 4.3 STM8AF LIN slave software description.......................... 9 4.3.1 STM8AF peripherals........................................ 9 4.3.2 Software modules......................................... 10 4.3.3 STM8S/A standard peripheral library modules................... 10 4.4 Debugging with ST visual develop (STVD)....................... 11 4.4.1 Downloading the software tools............................... 11 4.4.2 Opening the workspace and selecting the correct project........... 11 4.4.3 Rebuilding and debugging the project.......................... 11 5 Revision history........................................... 12 2/13 Doc ID 23745 Rev 1

Related documents 1 Related documents The following documents are related to this product: STM8A-DISCOVERY User manual (UM1574) STM8AF5xxx STM8AF6x69/7x/8x/9x/Ax datasheet STM8S and STM8A microcontroller families Reference Manual (RM0016) L99PM62GXP datasheet LIN communication with STM8A-DISCOVERY (AN4101) CAN communication with two STM8AF boards of STM8A-DISCOVERY (AN4179) Doc ID 23745 Rev 1 3/13

Implementing a LIN master node with STM8AF board AN4178 2 Implementing a LIN master node with STM8AF board 2.1 STM8AF microcontroller LINUART and USART features for LIN master The LINUART and USART inside the STM8AF microcontroller implement both generation and detection of LIN Breaks. LIN Break generation allows sending of 13-bit Breaks on the TX pin, thanks to the LIN protocol requirement. LIN Break detection allows detection of feedback from the LIN transceiver, before the Synch Field (55h data byte) transmission is requested on the TX pin. There is a dedicated flag (LBDF) which may or may not trigger the receive interrupt depending on the LBDIE bit configuration. 2.2 Software algorithm The software algorithm described below is implemented in the STM8AF master software. Refer to Section 4.2: STM8AF LIN master software description. 2.2.1 LIN state machine The LIN task is called regularly by the main routine. This task is a basic LIN master driver, implementing a state machine with the following states: Idle Break SynchField Identifier DataReception DataTransmission 2.2.2 LINUART interrupt The LINUART interrupt reads and clears the hardware flags in the LINUART registers, and sets appropriate software flags to allow transitions in the basic LIN driver state machine: BreakReceived, which is set if the break detection flag (LBDF) is set DataReceived, which is set if the RXNE flag is set ReceptionError, which is set if the case framing error flag (FE) or the overrun flag (OR) is set 4/13 Doc ID 23745 Rev 1

Implementing a LIN slave node with STM8AF board 3 Implementing a LIN slave node with STM8AF board 3.1 STM8AF microcontroller LINUART features for LIN slave LINUART supports autonomous handling of LIN headers. The software is notified of header reception through a dedicated flag, LHDF. This means a single interrupt occurs only when the entire header is received, including the Break, the Synch Field and the Identifier Field. LINUART implements a mute mode, allowing the software to remain quiet without generating any interrupts until reception of the next header. This is very useful for filtering frames for which the STM8AF is neither publisher nor subscriber. All data bytes of the frame response will thus be ignored by the LINUART, and will not generate any interrupts. The automatic resynchronization feature allows a LIN slave to be built with the STM8AF microcontroller, without the need for an external crystal, oscillator or resonator. The LINUART can synchronize on the Synch Field of each received header, and automatically adjusts the baudrate prescaler in order to receive and send the rest of the frame with the right frequency tolerance, whatever the frequency deviation of the embedded internal RC oscillator (HSI) may be. If one of the following errors is detected during the header reception, the software is notified through the LHE flag: resynchronization error, if the deviation is more than 14% identifier error (framing error or parity error) break delimiter error, if the delimiter is too short header timeout, if the LIN header is longer than the T_HEADER_MAX defined in the LIN standard In order to enhance system robustness, the LINUART can detect a Break at any time, even while receiving a data byte, and resynchronizes upon detecting the Break. 3.2 Software algorithm The software algorithm described below is implemented in the STM8AF slave software. For details, refer to Section 4.3: STM8AF LIN slave software description. 3.2.1 LIN state machine The LIN task is called regularly by the main routine. This task is a basic LIN slave driver that implements a state machine with the following states: Idle Identifier DataReception DataTransmission Doc ID 23745 Rev 1 5/13

Implementing a LIN slave node with STM8AF board AN4178 3.2.2 LINUART interrupt The LINUART interrupt reads and clears the hardware flags in the LINUART registers, and sets the appropriate software flags to allow transitions in the basic LIN driver state machine: HeaderReceived, which is set if the header detection flag (LHDF) is set in the interrupt routine DataReceived, which is set if the RXNE flag is set IdentifierParityError, which might be set if the header detection flag is set, after first checking the parity flag ReceptionError, which is set if the case framing error flag (FE), the overrun flag (OR), or the LIN synchro flag (LSF) is set 6/13 Doc ID 23745 Rev 1

LIN demonstration software 4 LIN demonstration software In order to run this demonstration, you must have two STM8AF boards from two STM8A- DISCOVERY bundles. This demonstration does not require any additional hardware, but you will need to change a solder bridge configuration on one board. Before running this demonstration, make sure to load the LIN slave software and the LIN master software in each of the two STM8AF boards. 4.1 Getting started Note: 1. Set the SB8 solder bridge to ON by soldering it on the first STM8AF board. This board will be the STM8AF master board. 2. Connect CN3 and CN4 on the first STM8AF board to CN3 and CN4 on the second STM8AF board. 3. Connect both type A connectors of the USB cable to a PC. 4. Connect the mini-b connector of the USB cable to the second STM8AF board. This board will be the STM8AF slave board. 5. Load the STM8AF_LIN_Slave.s19 file into the STM8AF slave board using the STVP tool. 6. Disconnect the STM8AF slave board from the mini-b connector of the USB cable. 7. Connect the mini-b connector of the USB cable to the STM8AF master board. 8. Load the STM8AF_LIN_Master.s19 file into the STM8AF master board using the STVP tool. 9. All LEDs should blink once on STM8AF LIN master board, and all LEDs should be switched on for one second on the STM8AF LIN slave board. The LIN communication then starts between both boards. 10. Push button USER1 on the first STM8AF board in order to sequentially switch on green LEDs LD4, LD5, LD6 and LD7 on the second STM8AF board through the LIN bus. Push button USER2 on the first STM8AF board to sequentially switch them off one by one. 11. Push button USER1 on the second STM8AF board in order to sequentially switch on green LEDs LD4, LD5, LD6 and LD7 on the first STM8AF board through the LIN bus. Push button USER2 on the second STM8AF board to sequentially switch them off one by one. If you want to reuse the STM8AF Master board to run the initial demonstration delivered with the STM8A-DISCOVERY and described in AN4101, you will need to set the SB8 solder bridge to OFF by unsoldering it. Doc ID 23745 Rev 1 7/13

LIN demonstration software AN4178 4.2 STM8AF LIN master software description 4.2.1 STM8AF peripherals The following STM8AF peripherals are used by the application: SPI, which is used in master mode at 250 khz to initialize the L99PM62GPX and refresh its watchdog TIM4, which allows generation of a 1 ms timebase HSE, the High Speed External Clock, which when enabled allows the use of the external 16 MHz crystal oscillator LINUART, which is used to perform LIN communication in master mode GPIO: PA3, PD3, PD0, PE3 and PC3 ports are used for LED display. PE2 and PE1 are used for the USER1 and USER2 push buttons. PC7, PC6, PC5 and PE5 are used respectively for the SPI MISO, MOSI, SCK and NSS. PD5 and PD6 are used for LINART TX and RX. 4.2.2 Software modules main This module contains the initialization routines and the main loop. appli This module contains the application s main tasks: reading the status of the USER1 and USER2 buttons, and updating the corresponding signals in the LIN frame that will be sent to the STM8AF LIN slave board updating the status of the LEDs according to the signals read in the LIN frame received from the STM8AF LIN slave board If the LIN communication is broken, the application will switch on the red LD3 LED. l99pm62drv This module contains the driver for the L99PM62GXP device, which is controlled by the STM8AF microcontroller through SPI. If the L99PM62GXP device reports an error to the STM8AF through SPI, the software will switch on the red LD3 LED. The other LEDs will give additional information as follows: LD4 on: SPI error LD5 on: V S out of range LD6 on: thermal shutdown lin This module contains the LIN driver state machine described in Section 2.2.1: LIN state machine. 8/13 Doc ID 23745 Rev 1

LIN demonstration software stm8s_it This module contains the following interrupt routines: External interrupt of the port E routine, and update of the UserButton1/UserButton2 software flag, when a falling edge is detected on the PE2/PE1 ports CAN receive interrupt routine, which is not activated in the demonstration software (test mode only) LINUART receive/error interrupt routine, which implements the algorithm described in Section 2.2.2: LINUART interrupt TIM4 interrupt routine, which sets timebase ticks for LIN, CAN (not used in the demonstration software), application, and L99PM62GXP watchdog refresh 4.2.3 STM8S/A standard peripheral library modules The demonstration software is based on the STM8S/A standard peripheral library version 2.1.0, dated Nov 2011. The following driver modules are used: stm8s_exti.c, for the external interrupts on port E (USER1 and USER2 buttons) stm8s_clk.c, for configuring clocks and enabling HSE stm8s_gpio.c, for initializing, reading and updating all ports stm8s_spi.c, for SPI communication with the L99PM62GXP device stm8s_tim4.c, for generating a 1 ms timebase stm8s_uart3.c, for initializing LINUART Note: LINUART is described as UART3 in the RM0016 STM8S and STM8A reference manual. 4.3 STM8AF LIN slave software description 4.3.1 STM8AF peripherals The following STM8AF peripherals are used by the application: SPI, which is used in master mode at 250 khz to initialize the L99PM62GPX and refresh its watchdog TIM4, which allows generation of a 1 ms timebase LINUART, which is used to perform LIN communication in slave mode. The automatic resynchronization feature is enabled. GPIO PA3, PD3, PD0, PE3 and PC3 ports are used for LED display. PE2 and PE1 are used for the USER1 and USER2 push buttons. PC7, PC6, PC5 and PE5 are used respectively for the SPI MISO, MOSI, SCK and NSS. PD5 and PD6 are used for LINART TX and RX. Doc ID 23745 Rev 1 9/13

LIN demonstration software AN4178 4.3.2 Software modules main This module contains the initialization routines and the main loop. appli This module contains the application s main tasks: reading the status of the USER1 and USER2 buttons, and updating the corresponding signals in the LIN frame that will be sent to the STM8AF LIN master board updating the status of the LEDs according to the signals read in the LIN frame received from the STM8AF LIN slave board If the LIN communication is broken, the application will switch on the red LD3 LED. l99pm62drv This module contains the driver for the L99PM62GXP device, which is controlled by the STM8AF microcontroller through SPI. If the L99PM62GXP device reports an error to the STM8AF through SPI, the software will switch on the red LD3 LED. The other LEDs will give additional information as follows: LD4 on: SPI error LD5 on: V S out of range LD6 on: thermal shutdown lin This module contains the LIN driver state machine described in Section 3.2.1: LIN state machine. stm8l15x_it This module contains the following interrupt routines: External interrupt of the pin1 routine, and update of the UserButton1 software flag, when a falling edge is detected on the PE1 port External interrupt of the pin2 routine, and update of the UserButton2 software flag, when a falling edge is detected on the PE2 port TIM4 interrupt routine, setting timebase ticks for LIN, CAN (not used in demonstration software), application, and L99PM62GXP watchdog refresh LINUART receive/error interrupt routine, which implements the algorithm described in Section 3.2.2: LINUART interrupt 4.3.3 STM8S/A standard peripheral library modules The demonstration software is based on the STM8S/A standard peripheral library version 2.1.0, dated November 2011. 10/13 Doc ID 23745 Rev 1

LIN demonstration software The following driver modules are used: stm8s_exti.c, for the external interrupts on port E (USER1 and USER2 buttons) stm8s_clk.c, for configuring clocks and enabling HSE stm8s_gpio.c, for initializing, reading and updating all ports stm8s_spi.c, for SPI communication with the L99PM62GXP device stm8s_tim4.c, for generating a 1 ms timebase stm8s_uart3.c, for initializing LINUART Note: LINUART is described as UART3 in the RM0016 STM8S and STM8A reference manual. 4.4 Debugging with ST visual develop (STVD) 4.4.1 Downloading the software tools 1. Download your free software environment (IDE). Choose between: ST s MCU toolset, composed of ST Visual Develop (STVD) and ST Visual Programmer (STVP), available at http://www.st.com IAR Embedded Workbench for STM8 30-day time-limited edition, available at http://www.iar.com, under the Software Download tab 2. Download your free compilers if you chose STVD. While IAR Embedded Workbench for STM8 includes its own compiler, STVD must be used together with one of the following: Cosmic 32 K 1-year time-limited edition, available at http://www.cosmicsoftware.com/download_stm8_32k.php Raisonance 32 K, available at http://www.mcu-raisonance.com 4.4.2 Opening the workspace and selecting the correct project Before opening the workspace, first unzip the zip file delivered with this application note. 1. In ST Visual Develop, click File / Open Workspace... 2. Select the stm8a_discover_workspace.stw file in either the Projects\STVD\cosmic folder or the Projects\STVD\raisonance folder, depending on the compiler you want to use. The workspace contains the following projects: stm8af_discover stm8al_discover 3. Choose a project by selecting it in the workspace window and right-clicking it with the mouse. Choose Set as Active Project. 4.4.3 Rebuilding and debugging the project You can rebuild the project, download the code and debug. Make sure to connect the USB cable to the appropriate board. Refer to UM1574 STM8A-DISCOVERY User manual for more information about debugging. Doc ID 23745 Rev 1 11/13

Revision history AN4178 5 Revision history Table 2. Document revision history Date Revision Changes 03-Dec-2012 1 Initial release. 12/13 Doc ID 23745 Rev 1

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. 2012 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 Doc ID 23745 Rev 1 13/13