dpf生成:.\SVDConv 324xF.svd --generate= sfr
.\SVDConv 324xF.svd -b 324xF.log
<?xml version="1.0" encoding="UTF-8"?>
<!-- File naming: <vendor>_<part/series name>.svd -->
<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD.xsd" >
<!-- <vendor>zzl()Co.,Ltd.</vendor> device vendor name -->
<!--<vendorID></vendorID> device vendor short name -->
<name>324xF</name> <!-- name of part-->
<series>ARMCM4</series> <!-- device series the device belongs to -->
<version>1.0</version> <!-- version of this description, adding CMSIS-SVD 1.1 tags -->
<description>ARM 32-bit Cortex-M4 Microcontroller based device, CPU clock up to 168MHz, etc. </description>
<cpu> <!-- details about the cpu embedded in the device -->
<name>CM4</name>
<revision>r0p1</revision>
<endian>little</endian>
<mpuPresent>true</mpuPresent>
<fpuPresent>true</fpuPresent>
<nvicPrioBits>4</nvicPrioBits>
<vendorSystickConfig>false</vendorSystickConfig>
</cpu>
<addressUnitBits>8</addressUnitBits> <!-- byte addressable memory -->
<width>32</width> <!-- bus width is 32 bits -->
<!-- default settings implicitly inherited by subsequent sections -->
<size>0x20</size> <!-- this is the default size (number of bits) of all peripherals -->
<resetValue>0x00000000</resetValue> <!-- by default all bits of the registers are initialized to 0 on reset -->
<resetMask>0xFFFFFFFF</resetMask> <!-- by default all 32Bits of the registers are used -->
参考:https://blog.csdn.net/ZCShouCSDN/article/details/127144450
SVDConv.exe Files\SVD\324xx.svd -b 324xF.log --generate=header --fields=macro //生成.h