Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3181 Datasheet(PDF) 14 Page - STMicroelectronics

Part # AN3181
Description  Guidelines for obtaining IEC 60335 Class B certification in an STM8 application
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3181 Datasheet(HTML) 14 Page - STMicroelectronics

Back Button AN3181 Datasheet HTML 10Page - STMicroelectronics AN3181 Datasheet HTML 11Page - STMicroelectronics AN3181 Datasheet HTML 12Page - STMicroelectronics AN3181 Datasheet HTML 13Page - STMicroelectronics AN3181 Datasheet HTML 14Page - STMicroelectronics AN3181 Datasheet HTML 15Page - STMicroelectronics AN3181 Datasheet HTML 16Page - STMicroelectronics AN3181 Datasheet HTML 17Page - STMicroelectronics AN3181 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 31 page
background image
Class B software package
AN3181
14/31
Doc ID 17286 Rev 2
A new Class B variable must be declared as a complementary pair of two variables
allocated at different segments by definition placed into proper part of the
stm32fxxx_STLclassBvar.h header file.
The following syntax is used for the compilers:
Cosmic
EXTERN @near u16 MyClassBVariable;
....
EXTERN @near u16 MyClassBVariableInv;
IAR
EXTERN __near u16 MyClassBVariable @ "CLASS_B_RAM";
.....
EXTERN __near u16 MyClassBVariableInv @ "CLASS_B_RAM_REV";
Raisonance
EXTERN near u16 MyClassBVariable;
.....
EXTERN near u16 MyClassBVariableInv;
Note:
When the version of STVD tool does not support including the vector table content into the
checksum computation and the user wants to protect this part of the code, the proper linker
script file must be modified by placing the vector table as follows:
The line: “+seg .const -b 0x8000 -k” must be replaced by: “+seg .const -b 0x8000 -k -ck”.
Note:
Previously, “__ckdend__” symbol definition needed to be to included into linker script file for
some older versions of Cosmic compiler. There is no longer any need to use it.
3.2.3
Application demonstration example
A short example of user application is attached in each project main.c file with respect to
the package integration criteria (see Chapter 4: Class B solution structure). Except for
STM8L_10x, the examples were written to run on the corresponding STM8 evaluation
boards (STM8S/128-EVAL and STM8L1526-EVAL) as Class B package demonstration
firmware. They use on board LCD and LED diodes to display current versus initial master
clock frequency measurement changes. Display or LED outputs can be disabled in main.h
file. The main loop also performs initialization and calling all run mode tests at ordinary
intervals.
3.3
Package configuring and debugging
A functional part of the package may need to be changed, suspended, excluded or included.
For example the microcontroller type might need to be changed or there could be a
non-volatile memory space limitation. Modifications are also required to debug the user
application. This section describes how the ST solution can be configured, modified and
debugged.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com