on 2023-05-22 06:55 AM
How to add or update the SVD file in a project using STM32CubeIDE, IAR or Keil®?
To check the behavior of the project, it is necessary to control the changes made to registers status. To do that, it is important to check these registers status in the system view descriptions (SVD).
So, the most important benefit of the SVD is that it provides detailed information about peripherals registers and bit-fields values using the debugger view.
The purpose of this article is to share steps for adding the SVD file in different toolchains.
STM32CubeIDE
IAR
Keil®
1.Download the system view description from this link: STM32U575 and STM32U585 microcontrollers - STMicroelectronics.
2.Extract the file that you downloaded from STMicroelectronics web site.
3.Open STM32CubeIDE.
4.Click Window -> Show View -> SFRs.
5.Click Configure SVD settings as shown in the below figure.
6.Browse the .SVD file as shown in the below figure.
1.Download the system view description from this link: STM32U575 and STM32U585 microcontrollers - STMicroelectronics.
2.Extract the file that you downloaded from STMicroelectronics web site.
3.Copy the STM32U575.svd file that you downloaded from STMicroelectronics web site in \IAR Systems\Embedded Workbench 9.0\arm\config\debugger\ST folder.
4.Open the STM32U575ZI.ddf file in IAR Systems\Embedded Workbench 9.0\arm\config\debugger\ST folder, which corresponds to the MCU mounted on the NUCLEO-U575ZI-Q board.
As you can see in the above figure, the STM32U575.ddf file uses the STM32U5xx.svd file.
5.For that, modify the STM32U575.svd file name that you add in \IAR Systems\Embedded Workbench 9.0\arm\config\debugger\ST folder to STM32U5xx.svd.
6.Open IAR tool chain.
7.Click Project -> Options.
8.Browse the SVD file as shown in the below figure.
1. Download the system view description from this link: STM32U575 and STM32U585 microcontrollers - STMicroelectronics.
2.Extract the file that you downloaded from STMicroelectronics web site.
3.Copy the STM32U575.svd file that you downloaded from STMicroelectronics web site in…\Keil_v5\UV4 folder.
4.Open Command Prompt and write this command "cd …\Keil_v5\UV4" to change directory for UV4 folder and press enter.
5.Write this command "SVDConv STM32U575.svd --generate=sfr" in Command Prompt and press enter to convert the STM32U575.svd file to STM32U575.sfr.
6.Check if the STM32U575.sfr file is created in UV4 folder.
7.Open your project with MDK-ARM toolchain and click “Options for Target” as shown in the below figure.
8.Browse the STM32U575.sfr file generated in UV4 folder as shown in the below figure.
STM32U575 and STM32U585 microcontrollers - STMicroelectronics
STM32CubeIDE - Integrated Development Environment for STM32 - STMicroelectronics
IAR Embedded Workbench for Arm | IAR
Keil® embedded development tools for Arm, Cortex-M, Cortex-R4, 8051, C166, and 251 processor families.