| Motore di ricerca datesheet componenti elettronici |
|
AN3307 Scheda tecnica(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3307 Scheda tecnica(HTML) 8 Page - STMicroelectronics |
|
8 / 37 page ![]() Main differences between STM32F packages and their possible modifications AN3307 8/37 Doc ID 18186 Rev 4 memory checking at KEIL project. Users have to store the checksum computation result into final source code manually by modifying and proper placement of CHECKSUM area at the end of Flash memory (see end of startup_stm32fxxx.s file and linker file settings). Result of a CRC calculation can be obtained by an external tool or it can be read at debug phase from begin of RAM (see invariable memory check part in stm32fxxx_STLstartup.c file) where the result is stored temporarily by initial test. The CHECKSUM area itself must be excluded from the range of CRC calculation. Other possible testing method could be to compute a 32-bit checksum by the CRC generator in the initial phase and validate its result by using 16-bit software CRC computation in parallel. Specific SW procedures for 16-bit CRC calculation must be provided and called for proper testing at this case during startup tests. The validated 32-bit CRC value can be then saved as a reference for comparing all the subsequent runtime checks. This method decreases CPU load at run time phase significantly, as CRC computation is done via hardware CRC generator exclusively. Please follow the latest updates from providers of compilers to implement the latest and most sufficient methods. FLASH can be tested while DMA is used for feeding CRC block, too. In comparison with software test, the CPU load decreases significantly when DMA is applied but the speed of the test itself doesn't change so much as DMA needs few cycles to read and transfer data anyway. The test even can slow down when DMA services some other transfers in parallel. Moreover some additional DMA configuration is required at initialization of the test. User can find some detailed information about using DMA at CRC calculation at dedicated application note, AN4187: Using the CRC peripheral in STM32 family. Startup and system initialization There are differences at initial system configuration and setup of debug and diagnostic utilities (e.g. recognizing reset cause) respecting hardware deviations. Startup file is modified to force the very first flow to begin of startup tests set. Parameters All the configuration parameters are centralized into one file stm32fxxx_STLparam.h. Configuration differences respect mainly different sizes of tested areas, different compilers, slight deviations of control flow, etc. Be careful when modifying an initial or run time test of possible corruption of control flow. In this case, values summarized at complementary control flow counters can differ from the constants defined for comparison at flow check points. To prevent any control flow error, user must change definition of these constants in an adequate way. Files structure Structure of directories of all the packages is nearly the same for all the packages. It follows common structure used for ST standard peripheral drivers with added extra directory for self-test files. There is an additional subdirectory at Libraries directory at STM32F3xx package where two different directories are applied for STM32F30x and STM32F37x standard peripheral drivers, respecting both subfamilies differences. The dedicated group of standard drivers is included in dependency on project setting. Number of included self-test library header files is reduced at STM32F0xx package, as most of headers associated with their source files stay simply empty and they follow a formal structure only. The function of stm32xxx_STLlib.h header including all these associated headers is replaced by common header stm32f0xx_STL_param.h here, which is included by all the sources in this package instead of stm32xxx_STLlib.h, as it is used in the other packages. |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore All Rights Reserved©Alldatasheet.com |
| 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 |