CLion and other IDEs support SVD files for describing the layout of registers for debugging.
Note: We downloaded the SVD file to STM32F407.svd, so you don't need to download it yourselves.
ST does not provide SVD files for their MCUs. Fortunately, we can get one from the Arm Keil IDE website.
- Go to Arm Keil | CMSIS Packs and search for STM32F4xx.
- There should be one result: STM32F4xx_DFP.
- Click Download Recommended Pack or use this direct download link (might stop working in the future).
- Note: At the time we downloaded it, it was
Version 2.17.1: July 4, 2023 Keil.STM32F4xx_DFP.2.17.1.pack
. - Rename
.pack
to.zip
. Then unzip it. - Open the
Keil.STM32F4xx_DFP.2.17.1
dir, go toCMSIS/SVD
subdir. There should be theSTM32F407.svd
file. That's the one you are looking for.
CMSIS stands for Common Microcontroller Software Interface Standard.