cancel
Showing results for 
Search instead for 
Did you mean: 

How to add or update the SVD file in different toolchains: An example using Nucleo-U575ZI-Q board

KDJEM.1
ST Employee

How to add or update the SVD file in different toolchains: An example using NUCLEO-U575ZI-Q board

Question 

How to add or update the SVD file in a project using STM32CubeIDE, IAR or Keil®?

Answer 

1. Introduction 

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. 

2. Prerequisite 

STM32CubeIDE 
IAR 
Keil® 

3. Steps 

3.1 Add SVD file in STM32CubeIDE toolchain 

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.
 

1646.png
6.Browse the .SVD file as shown in the below figure. 
 

1647.png
 

3.2 Add SVD file in IAR toolchain

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.
1648.png
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.
1649.png

3.3 Add SVD file in 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.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.
1650.png
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.
1651.png
8.Browse the STM32U575.sfr file generated in UV4 folder as shown in the below figure.
1652.png

4. Links

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.
 

Version history
Last update:
‎2023-05-22 06:55 AM
Updated by: