Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

AN4141 Datasheet(PDF) 40 Page - STMicroelectronics

Part # AN4141
Description  Migration and compatibility guidelines for STM32W108xx microcontroller applications based on the HAL
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4141 Datasheet(HTML) 40 Page - STMicroelectronics

Back Button AN4141 Datasheet HTML 34Page - STMicroelectronics AN4141 Datasheet HTML 35Page - STMicroelectronics AN4141 Datasheet HTML 36Page - STMicroelectronics AN4141 Datasheet HTML 37Page - STMicroelectronics AN4141 Datasheet HTML 38Page - STMicroelectronics AN4141 Datasheet HTML 39Page - STMicroelectronics AN4141 Datasheet HTML 40Page - STMicroelectronics AN4141 Datasheet HTML 41Page - STMicroelectronics AN4141 Datasheet HTML 42Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 40 / 42 page
background image
Migration application using the automatic script
AN4141
40/42
DocID023425 Rev 2
PLATFORM_HEADER=Utilities\STM32W108xx_HAL_Driver/micro/cortexm3/compiler/iar.h
11. Remove the BOARD_HEADER from the preprocessor defined symbols (the #include
BOARD_HEADER line will be updated by the #include "board.h" line when running the
automatic script on the user application sources files).
12. Add these defines in the preprocessor defined symbols:
USE_STDPERIPH_DRIVER: this define is used to enable the StdPeriph drivers.
USE_MBxxx_REVx: to define the project target board
STM32W108XX: to define the StdPeriph target product
Note:
For boards MB951 and MB950, only one revision exists, so USE_MBxxx_REVx can be
USE_MB950 when using the board MB950 and USE_MB951 when using the board MB951.
Update application sources files
1.
Launch the automatic Perl script on the user application source files that makes all
possible firmware changes (CMSIS support, including types, handler names, core
macro names…). For more details on these changes, please refer to file trace.log.
2.
If the user application uses a specific interrupt, you need to edit manually the interrupt
IRQ handler files:
In stm32w108xx_it.c, call the ISR handler defined by the hal in the IRQ handler defined by
CMSIS (refer to Table 7: STM32W108xx HAL exception names vs. CMSIS).
Example:
/**
* @brief
This function handles PendSVC exception.
* @param
None
* @retval None
*/
void PendSV_Handler(void)
{
halPendSvIsr();
}
In stm32w108xx_it.h, add the ISR handler prototype.
3.
Library configuration section inside file stm32w108xx.h:
In file stm32w108xx.h, select the case that corresponds to the product that you are using:
STM32W108CC, STM32W108CB…
Select whether you want to use the STM32W108xx standard peripheral drivers through
define
USE_STDPERIPH_DRIVER.
Configure values for: HSE (high speed external quartz), HSE startup timeout, HSI (internal
high speed oscillator), LSE (low speed external quartz) and LSI (low speed internal
oscillator)
4.
If you wish to use the assert function, refer to step 5 in Section 3.1.3: Library user and
toolchain specific files



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 32 33 34 35 36 37 38 39 40 41 42


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