| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
AN4141 Datasheet(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4141 Datasheet(HTML) 40 Page - STMicroelectronics |
|
40 / 42 page ![]() 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 |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |