<?xml version="1.0" encoding="iso-8859-1"?>
<rules>

<rule name="GTZC_S instance for project manager">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>ProjectManager.functionlistsort.*</MatcherOnKey>
        <MatcherPattern>(.*)-MX_GTZC_Init-GTZC-(.*)</MatcherPattern>
        <MatchToPattern>$1-MX_GTZC_S_Init-GTZC_S-$2</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32WL</ParserCondition>
    </description>
</rule>
<rule name="GTZC_S instance for context M0+">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>CortexM0Plus.IPs.*</MatcherOnKey>
        <MatcherPattern>(.*)GTZC(.*)</MatcherPattern>
        <MatchToPattern>$1GTZC_S$2</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32WL</ParserCondition>
    </description>
</rule>
<rule name="GTZC_NS instance for context M4">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>CortexM4.IPs.*</MatcherOnKey>
        <MatcherPattern>(.*)SYS:I(.*)</MatcherPattern>
        <MatchToPattern>$1SYS\:I,GTZC_NS\:I$2</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32WL</ParserCondition>
    </description>
</rule>
<rule name="GTZC_S instance value for IP GTZC">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>^GTZC\.(.*)</MatcherOnKey>
        <MatcherPattern>GTZC(\..*)</MatcherPattern>
        <MatchToPattern>GTZC_S$1</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32WL</ParserCondition>
     </description>
</rule>
<rule name="GTZC_S instance for mcu">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>Mcu\.IP\d*</MatcherOnKey>
        <MatcherPattern>(.*)GTZC(.*)</MatcherPattern>
        <MatchToPattern>$1GTZC_S$2</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32WL</ParserCondition>
    </description>
</rule>
<rule name="GTZC_S instance for VP">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>VP_GTZC.*\.Mode.*</MatcherOnKey>
        <MatcherPattern>VP_GTZC(.*)</MatcherPattern>
        <MatchToPattern>VP_GTZC_S$1</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32WL</ParserCondition>
    </description>
</rule>
<rule name="GTZC_S instance for signal">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>.*\.Signal</MatcherOnKey>
        <MatcherPattern>(.*)_VS_GTZC_Enable(.*)</MatcherPattern>
        <MatchToPattern>$1_S_VS_GTZC_Enable$2</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32WL</ParserCondition>
    </description>
</rule>

<rule name="SPDIFRX instance for mcu">
    <description>
        <MXDBVersion>DB.5.0.0</MXDBVersion>
        <MatcherOnKey>Mcu\.(.*)</MatcherOnKey>
        <MatcherPattern>(.*)SPDIFRX(.*)</MatcherPattern>
        <MatchToPattern>$1SPDIFRX1$2</MatchToPattern> 
        <ParserCondition>STM32H7</ParserCondition>  
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename Tracer Mode">
    <description>
        <MXDBVersion>DB.5.0.20</MXDBVersion>
        <MatcherOnKey>(.*)_traceremb_usart3\.Mode</MatcherOnKey>
        <MatcherPattern>TRACER_EMB</MatcherPattern>
        <MatchToPattern>TRACER_EMB_USART3</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
    </description>
</rule>

<rule name="SPDIFRX instance value for IP SPDIFRX">
    <description>
        <MXDBVersion>DB.5.0.0</MXDBVersion>
        <MatcherOnKey>^SPDIFRX\.(.*)</MatcherOnKey>
        <MatcherPattern>SPDIFRX(\..*)</MatcherPattern>
        <MatchToPattern>SPDIFRX1$1</MatchToPattern>   
        <ParserCondition>STM32H7</ParserCondition>  
        <SeparatorOnValue>,</SeparatorOnValue>
     </description>
</rule>

<rule name="SPDIFRX instance for signal">
    <description>
        <MXDBVersion>DB.5.0.0</MXDBVersion>
        <MatcherOnKey>.*\.Signal</MatcherOnKey>
        <MatcherPattern>(.*)SPDIFRX(.*)</MatcherPattern>
        <MatchToPattern>$1SPDIFRX1$2</MatchToPattern>   
        <ParserCondition>STM32H7</ParserCondition>  
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<rule name="SPDIFRX instance for project manager">
    <description>
        <MXDBVersion>DB.5.0.0</MXDBVersion>
        <MatcherOnKey>ProjectManager.functionlistsort.*</MatcherOnKey>
        <MatcherPattern>(.*)_SPDIFRX_(.*)</MatcherPattern>
        <MatchToPattern>$1SPDIFRX1$2</MatchToPattern>   
        <ParserCondition>STM32H7</ParserCondition>  
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="SPDIFRX instance for project manager">
    <description>
        <MXDBVersion>DB.5.0.0</MXDBVersion>
        <MatcherOnKey>ProjectManager.functionlistsort.*</MatcherOnKey>
        <MatcherPattern>(.*)-SPDIFRX-(.*)</MatcherPattern>
        <MatchToPattern>$1SPDIFRX1$2</MatchToPattern>   
        <ParserCondition>STM32H7</ParserCondition>  
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<!-- A rule is applicable if iocVersion < ruleVersion <= MxUsedDBVersion -->
<rule name="ADC Scan  fix with FW F7">
    <description>
        <MXDBVersion>DB.5.0.30</MXDBVersion>
        <MatcherOnKey>ADC.*ScanConvMode</MatcherOnKey>
        <MatcherPattern>^ENABLE$</MatcherPattern>
        <MatchToPattern>ADC_SCAN_ENABLE</MatchToPattern>   
        <ParserCondition>STM32F7</ParserCondition>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="ADC Scan  fix with FW F7">
    <description>
        <MXDBVersion>DB.5.0.30</MXDBVersion>
        <MatcherOnKey>ADC.*ScanConvMode</MatcherOnKey>
        <MatcherPattern>^DISABLE$</MatcherPattern>
        <MatchToPattern>ADC_SCAN_DISABLE</MatchToPattern>   
        <ParserCondition>STM32F7</ParserCondition>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename Comp Signal">
    <description>
        <MXDBVersion>DB.4.0.100</MXDBVersion>
        <MatcherOnKey>.*Signal</MatcherOnKey>
        <MatcherPattern>COMP(.*)_INM(.*)</MatcherPattern>
        <MatchToPattern>COMP$1_INM</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
    </description>
</rule>

<rule name="DMA-DAC mode for DIE422">
    <description>
        <MXDBVersion>DB.4.0.120</MXDBVersion>
        <MatcherOnKey>SH.COMP_DAC2_group.[0-9]</MatcherOnKey>
        <MatcherPattern>DAC_OUT2,DAC_OUT2</MatcherPattern>
        <MatchToPattern>DAC_OUT2,Enable_DAC_OUT2</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
        <ParserCondition>DIE422</ParserCondition>		
     </description>
</rule>

<rule name="DMA-DAC mode for DIE438">
    <description>
        <MXDBVersion>DB.4.0.120</MXDBVersion>
        <MatcherOnKey>SH.COMP_DAC21_group.[0-9]</MatcherOnKey>
        <MatcherPattern>DAC2_OUT1,DAC_OUT1</MatcherPattern>
        <MatchToPattern>DAC2_OUT1,Switch_Enable_OUT1</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
        <ParserCondition>DIE438</ParserCondition>		
     </description>
</rule>

<rule name="DMA-DAC mode for DIE432 or DIE446">
    <description>
        <MXDBVersion>DB.4.0.120</MXDBVersion>
        <MatcherOnKey>SH.COMP_DAC12_group.[0-9]</MatcherOnKey>
        <MatcherPattern>DAC1_OUT2,DAC_OUT2</MatcherPattern>
        <MatchToPattern>DAC1_OUT2,Enable_DAC_OUT2</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
        <ParserCondition>DIE432|DIE446</ParserCondition>		
     </description>
</rule>

<!--<rule name="DMA-DAC mode for DIE446">
    <description>
        <MXDBVersion>DB.4.0.120</MXDBVersion>
        <MatcherOnKey>SH.COMP_DAC12_group.[0-9]</MatcherOnKey>
        <MatcherPattern>DAC1_OUT2,DAC_OUT2</MatcherPattern>
        <MatchToPattern>DAC1_OUT2,Enable_DAC_OUT2</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
        <ParserCondition>DIE446</ParserCondition>		
     </description>
</rule>-->
<rule name="DFSDM instance value for IP DFSDM">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>^DFSDM\.(.*)</MatcherOnKey>
        <MatcherPattern>DFSDM(\..*)</MatcherPattern>
        <MatchToPattern>DFSDM1$1</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
     </description>
</rule>
<rule name="DFSDM instance for mcu">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>Mcu\.(.*)</MatcherOnKey>
        <MatcherPattern>(.*)DFSDM(.*)</MatcherPattern>
        <MatchToPattern>$1DFSDM1$2</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="DFSDM instance for VP">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>VP_DFSDM.*\.Mode.*</MatcherOnKey>
        <MatcherPattern>VP_DFSDM(.*)</MatcherPattern>
        <MatchToPattern>VP_DFSDM1$1</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="DFSDM instance for signal">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Signal</MatcherOnKey>
        <MatcherPattern>(.*)DFSDM(.*)</MatcherPattern>
        <MatchToPattern>$1DFSDM1$2</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="DFSDM instance for shared">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>SH\..*</MatcherOnKey>
        <MatcherPattern>(.*)DFSDM(.*)</MatcherPattern>
        <MatchToPattern>$1DFSDM1$2</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<!-- HAL DFSDM renaming now managed in defines file
<rule name="BreakInputSource value for IP Timer">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>TIM[0-9]([0-9])*\.(.*)</MatcherOnKey>
        <MatcherPattern>TIM_BREAKINPUTSOURCE_DFSDM</MatcherPattern>
        <MatchToPattern>TIM_BREAKINPUTSOURCE_DFSDM1</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>-->
<rule name="BreakInputSource parameter for IP Timer">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>TIM[0-9]([0-9])*\.(.*)</MatcherOnKey>
        <MatcherPattern>BreakInput_BRK(2*)_DFSDM</MatcherPattern>
        <MatchToPattern>BreakInput_BRK$1_DFSDM1</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Sourcebreak parameter for IP Timer">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>TIM[0-9]([0-9])*\.(.*)</MatcherOnKey>
        <MatcherPattern>Source_BRK(2*)_DFSDM</MatcherPattern>
        <MatchToPattern>Source_BRK$1_DFSDM1</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Sourcebreak parameter for IP Timer">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>TIM[0-9]([0-9])*\.(.*)</MatcherOnKey>
        <MatcherPattern>SourceBRK(2*)DFSDM</MatcherPattern>
        <MatchToPattern>SourceBRK$1DFSDM1</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<!-- HAL DFSDM renaming now managed in defines file
<rule name="DFSDMclock source  value for IP RCC">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>RCC\.(.*)</MatcherOnKey>
        <MatcherPattern>RCC_DFSDMCLKSOURCE_PCLK</MatcherPattern>
        <MatchToPattern>RCC_DFSDM1CLKSOURCE_PCLK</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
-->
<!-- HAL DFSDM renaming now managed in defines file
<rule name="DFSDMclock source value for IP RCC">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>RCC\.(.*)</MatcherOnKey>
        <MatcherPattern>RCC_DFSDMCLKSOURCE_SYSCLK</MatcherPattern>
        <MatchToPattern>RCC_DFSDM1CLKSOURCE_SYSCLK</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
-->
<!-- HAL DFSDM renaming now managed in defines file
<rule name="DFSDMperiph clock value for IP RCC">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>RCC\.(.*)</MatcherOnKey>
        <MatcherPattern>RCC_PERIPHCLK_DFSDM</MatcherPattern>
        <MatchToPattern>RCC_PERIPHCLK_DFSDM1</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
-->
<rule name="DFSDM for PCC">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>PCC\.(.*)</MatcherOnKey>
        <MatcherPattern>(.*)DFSDM(.*)</MatcherPattern>
        <MatchToPattern>$1DFSDM1$2</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Serial_Wire Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Serial-WireDebug|Serial-Wire</MatcherPattern>
        <MatchToPattern>Serial_Wire</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="JTAG_4_pins Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>JTAG\(4-pin\)|JTAG_4_pin</MatcherPattern>
        <MatchToPattern>JTAG_4_pins</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="JTAG_5_pins Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>JTAG\(5-pin\)|JTAG_5_pin</MatcherPattern>
        <MatchToPattern>JTAG_5_pins</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="Trace_Asynchronous_SW Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Trace-Asynchronous_SW</MatcherPattern>
        <MatchToPattern>Trace_Asynchronous_SW</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="Trace_Synchro_1bit_JTAG Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Trace-Synchro\(1bit\)_JTAG</MatcherPattern>
        <MatchToPattern>Trace_Synchro_1bit_JTAG</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="Trace_Synchro_2bits_JTAG Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Trace-Synchro\(2bits\)_JTAG|Trace-Synchro\(2bit\)_JTAG</MatcherPattern>
        <MatchToPattern>Trace_Synchro_2bits_JTAG</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="Trace_Synchro_4bits_JTAG Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Trace-Synchro\(4bits\)_JTAG|Trace-Synchro\(4bit\)_JTAG</MatcherPattern>
        <MatchToPattern>Trace_Synchro_4bits_JTAG</MatchToPattern> 
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="Trace_Synchro_1bit_SW Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Trace-Synchro\(1bit\)_SW</MatcherPattern>
        <MatchToPattern>Trace_Synchro_1bit_SW</MatchToPattern> 
        <SeparatorOnValue>,</SeparatorOnValue>		
    </description>
</rule>
<rule name="Trace_Synchro_2bits_SW Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Trace-Synchro\(2bit\)_SW</MatcherPattern>
        <MatchToPattern>Trace_Synchro_2bits_SW</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Trace_Synchro_4bits_SW Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>Trace-Synchro\(4bit\)_SW</MatcherPattern>
        <MatchToPattern>Trace_Synchro_4bits_SW</MatchToPattern>   
		<SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="SYS_WakeUp0 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp0|SYS-WakeUp-1|SYS_WKUP1|Wake-Up-1|Wake_Up_1|SYS-WakeUp1|SYS-WKUP|Wake-up|SYS-WakeUp</MatcherPattern>
        <MatchToPattern>SYS_WakeUp0</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>	
        <ParserCondition>!STM32F446</ParserCondition>		
    </description>
</rule>

<rule name="SYS_WakeUp0 Mode for STM32F446">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp0</MatcherPattern>
        <MatchToPattern>SYS_WakeUp0</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>	
        <ParserCondition>STM32F446</ParserCondition>		
    </description>
</rule>
<rule name="SYS_WakeUp1 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp-2|SYS_WKUP2|Wake-Up-2|SYS-WakeUp2|Wake_Up_2</MatcherPattern>
        <MatchToPattern>SYS_WakeUp1</MatchToPattern>   
		<SeparatorOnValue>,</SeparatorOnValue>
		<ParserCondition>!STM32F446</ParserCondition>
    </description>
</rule>
<rule name="SYS_WakeUp1 Mode for STM32F446">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp1</MatcherPattern>
        <MatchToPattern>SYS_WakeUp1</MatchToPattern>   
		<SeparatorOnValue>,</SeparatorOnValue>
		<ParserCondition>STM32F446</ParserCondition>
    </description>
</rule>
<rule name="SYS_WakeUp2 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp-3|SYS_WKUP3|Wake-Up-3|SYS-WakeUp3|Wake_Up_3</MatcherPattern>
        <MatchToPattern>SYS_WakeUp2</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="SYS_WakeUp3 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp-4|SYS_WKUP4|SYS-WakeUp4</MatcherPattern>
        <MatchToPattern>SYS_WakeUp3</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="SYS_WakeUp4 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp-5|SYS_WKUP5|SYS-WakeUp5</MatcherPattern>
        <MatchToPattern>SYS_WakeUp4</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="SYS_WakeUp5 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS-WakeUp-6|SYS_WKUP6</MatcherPattern>
        <MatchToPattern>SYS_WakeUp5</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="SYS_WakeUp6 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS_WKUP7</MatcherPattern>
        <MatchToPattern>SYS_WakeUp6</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="SYS_WakeUp7 Mode">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>SYS_WKUP8</MatcherPattern>
        <MatchToPattern>SYS_WakeUp7</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Mode_PVD_Ext">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>PVD_ext</MatcherPattern>
        <MatchToPattern>Mode_PVD_Ext</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Mode_PVD_Int">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <MatcherOnKey>.*\.Mode$</MatcherOnKey>
        <MatcherPattern>PVD_int</MatcherPattern>
        <MatchToPattern>Mode_PVD_Int</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<rule name="Add RTC Activate Clock Source">
    <description>
        <MXDBVersion>DB.4.0.170</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>Mcu.IP([0-9]|[0-9][0-9])</MatcherOnKey>
        <MatcherPattern>RTC</MatcherPattern>
        <MatchToPattern>Pin:VP_RTC_VS_RTC_Activate;AddedKeys:VP_RTC_VS_RTC_Activate.Mode=RTC_Enabled,VP_RTC_VS_RTC_Activate.Signal=RTC_VS_RTC_Activate</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue> 
     </description>
</rule>

<rule name="Add RTC Activate Calendar 1">
    <description>
        <MXDBVersion>DB.4.0.170</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>VP_RTC_VS_RTC_(.*).Mode</MatcherOnKey>
        <MatcherPattern>Alarm A|Alarm B|WakeUp</MatcherPattern>
        <MatchToPattern>Pin:VP_RTC_VS_RTC_Calendar;AddedKeys:VP_RTC_VS_RTC_Calendar.Mode=RTC_Calendar,VP_RTC_VS_RTC_Calendar.Signal=RTC_VS_RTC_Calendar</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue> 
    </description>
</rule>

<rule name="Add RTC Activate Calendar 2">
    <description>
        <MXDBVersion>DB.4.0.170</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>(.*).Mode</MatcherOnKey>
        <MatcherPattern>AlarmA_RoutedAF|AlarmB_RoutedAF|WakeUpAF1</MatcherPattern>
        <MatchToPattern>Pin:VP_RTC_VS_RTC_Calendar;AddedKeys:VP_RTC_VS_RTC_Calendar.Mode=RTC_Calendar,VP_RTC_VS_RTC_Calendar.Signal=RTC_VS_RTC_Calendar</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue> 
    </description>
</rule>

<rule name="Add RTC Activate Calendar 3">
    <description>
        <MXDBVersion>DB.4.0.170</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>(.*).Mode</MatcherOnKey>
        <MatcherPattern>Timestamp enabled - Input Enabled to AF1|Timestamp enabled - Input Enabled to AF2|Timestamp enabled</MatcherPattern>
        <MatchToPattern>Pin:VP_RTC_VS_RTC_Calendar;AddedKeys:VP_RTC_VS_RTC_Calendar.Mode=RTC_Calendar,VP_RTC_VS_RTC_Calendar.Signal=RTC_VS_RTC_Calendar</MatchToPattern>   
        <SeparatorOnValue>__No_Separator</SeparatorOnValue> 
    </description>
</rule>

<!-- these 2 rules are now managed in defines file
<rule name="COMP HAL renaming ">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <ParserCondition>STM32L0</ParserCondition>
        <MatcherOnKey>COMP[1-2]\.(.*)</MatcherOnKey>
        <MatcherPattern>COMP_INVERTINGINPUT_IO2</MatcherPattern>
        <MatchToPattern>COMP_INPUT_MINUS_DAC1_CH2</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="COMP HAL renaming ">
    <description>
        <MXDBVersion>DB.4.0.150</MXDBVersion>
        <ParserCondition>STM32L0</ParserCondition>
        <MatcherOnKey>COMP[1-2]\.(.*)</MatcherOnKey>
        <MatcherPattern>COMP_INVERTINGINPUT_IO3</MatcherPattern>
        <MatchToPattern>COMP_INPUT_MINUS_IO2</MatchToPattern>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>-->

<rule name="UART/USART TX Mode">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>(.*).Mode</MatcherOnKey>
        <MatcherPattern>(.*)_MODE_TX</MatcherPattern>
        <MatchToPattern>MODE_TX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="UART/USART RX Mode">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>(.*).Mode</MatcherOnKey>
        <MatcherPattern>(.*)_MODE_RX</MatcherPattern>
        <MatchToPattern>MODE_RX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="UART/USART RX TX Mode">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>(.*).Mode</MatcherOnKey>
        <MatcherPattern>(.*)_MODE_TX_RX</MatcherPattern>
        <MatchToPattern>MODE_TX_RX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="UART/USART PARITY NONE">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>(.*).Parity</MatcherOnKey>
        <MatcherPattern>(.*)_PARITY_NONE</MatcherPattern>
        <MatchToPattern>PARITY_NONE</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="UART/USART PARITY EVEN">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>(.*).Parity</MatcherOnKey>
        <MatcherPattern>(.*)_PARITY_EVEN</MatcherPattern>
        <MatchToPattern>PARITY_EVEN</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="UART/USART PARITY ODD">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>(.*).Parity</MatcherOnKey>
        <MatcherPattern>(.*)_PARITY_ODD</MatcherPattern>
        <MatchToPattern>PARITY_ODD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>

<rule name="USART StopBits 1">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>USART(.*).StopBits</MatcherOnKey>
        <MatcherPattern>(.*)_STOPBITS_1</MatcherPattern>
        <MatchToPattern>STOPBITS_1</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART StopBits 2">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>USART(.*).StopBits</MatcherOnKey>
        <MatcherPattern>(.*)_STOPBITS_2</MatcherPattern>
        <MatchToPattern>STOPBITS_2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART StopBits 1.5">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>USART(.*).StopBits</MatcherOnKey>
        <MatcherPattern>(.*)_STOPBITS_1_5</MatcherPattern>
        <MatchToPattern>STOPBITS_1_5</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART StopBits 0.5">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <MatcherOnKey>USART(.*).StopBits</MatcherOnKey>
        <MatcherPattern>(.*)_STOPBITS_0_5</MatcherPattern>
        <MatchToPattern>STOPBITS_0_5</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="UART/USART WORD LENGTH 7">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>(.*).WordLength</MatcherOnKey>
        <MatcherPattern>(.*)_WORDLENGTH_7B</MatcherPattern>
        <MatchToPattern>WORDLENGTH_7B</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>           
    </description>
</rule>
<rule name="UART/USART WORD LENGTH 8">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>(.*).WordLength</MatcherOnKey>
        <MatcherPattern>(.*)_WORDLENGTH_8B</MatcherPattern>
        <MatchToPattern>WORDLENGTH_8B</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>           
    </description>
</rule>
<rule name="UART/USART WORD LENGTH 9">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>(.*).WordLength</MatcherOnKey>
        <MatcherPattern>(.*)_WORDLENGTH_9B</MatcherPattern>
        <MatchToPattern>WORDLENGTH_9B</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>           
    </description>
</rule>
<rule name="Rename FMC NAND NCE signal">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <ParserCondition>(STM32F4&amp;DIE434)|(STM32F7&amp;(DIE449|DIE451))|(STM32H7&amp;DIE450)</ParserCondition>
        <MatcherOnKey>.*\.Signal</MatcherOnKey>
        <MatcherPattern>FMC_NCE3</MatcherPattern>
        <MatchToPattern>FMC_NCE</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename FMC NAND INT signal">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <ParserCondition>(STM32F4&amp;DIE434)|(STM32F7&amp;(DIE449|DIE451))|(STM32H7&amp;DIE450)</ParserCondition>
        <MatcherOnKey>.*\.Signal|SH\.FMC_INT3\..*</MatcherOnKey>
        <MatcherPattern>FMC_INT3</MatcherPattern>
        <MatchToPattern>FMC_INT</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigConv L4 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIG_T1_CC1</MatchToPattern>   
        <ParserCondition>STM32L4</ParserCondition>
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigInjecConv L4 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigInjecConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGINJEC_T1_TRGO</MatchToPattern>   
        <MatcherCondition>ExternalTrigInjecConvEdge!=ADC_EXTERNALTRIGINJECCONV_EDGE_NONE</MatcherCondition>
        <ParserCondition>STM32L4</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigConv F3 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T1_CC1</MatchToPattern>   
        <ParserCondition>DIE439|DIE422|DIE438|DIE466</ParserCondition>
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigInjecConv F3 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigInjecConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGINJECCONV_T1_TRGO</MatchToPattern>   
        <MatcherCondition>ExternalTrigInjecConvEdge!=ADC_EXTERNALTRIGINJECCONV_EDGE_NONE</MatcherCondition>
        <ParserCondition>DIE439|DIE422|DIE438|DIE466</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>


<rule name="Change Default Value for ADC ExternalTrigConv Goldfish serie">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T19_TRGO</MatchToPattern>   
        <ParserCondition>DIE432</ParserCondition>
         <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigInjecConv Goldfish serie">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
         <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigInjecConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGINJECCONV_T19_CC1</MatchToPattern>  
        <MatcherCondition>ExternalTrigInjecConvEdge!=ADC_EXTERNALTRIGINJECCONV_EDGE_NONE</MatcherCondition> 
        <ParserCondition>DIE432</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>


<rule name="Change Default Value for ADC ExternalTrigConv L0 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T6_TRGO</MatchToPattern>   
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition>
        <ParserCondition>STM32L0</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigConv F0 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T1_TRGO</MatchToPattern>   
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition>  
        <ParserCondition>STM32F0</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>


<rule name="Change Default Value for ADC ExternalTrigConvn L1 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T2_CC3</MatchToPattern>  
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition> 
        <ParserCondition>STM32L1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigInjecConv L1 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigInjecConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGINJECCONV_T2_CC1</MatchToPattern>   
        <MatcherCondition>ExternalTrigInjecConvEdge!=ADC_EXTERNALTRIGINJECCONV_EDGE_NONE</MatcherCondition>
        <ParserCondition>STM32L1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>


<rule name="Change Default Value for ADC ExternalTrigConv F1 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T1_CC1</MatchToPattern>   
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition>
        <ParserCondition>STM32F1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigInjecConv F1 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
         <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigInjecConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGINJECCONV_T1_TRGO</MatchToPattern>   
        <MatcherCondition>ExternalTrigInjecConvEdge!=ADC_EXTERNALTRIGINJECCONV_EDGE_NONE</MatcherCondition>
        <ParserCondition>STM32F1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigConv F7 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
         <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T1_CC1</MatchToPattern>   
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition>
        <ParserCondition>STM32F7</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigInjecConv F7 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
         <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigInjecConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGINJECCONV_T1_TRGO</MatchToPattern>   
        <MatcherCondition>ExternalTrigInjecConvEdge!=ADC_EXTERNALTRIGINJECCONV_EDGE_NONE</MatcherCondition>
        <ParserCondition>STM32F7</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigConv F4 and F2 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGCONV_T1_CC1</MatchToPattern>  
        <MatcherCondition>ExternalTrigConvEdge!=ADC_EXTERNALTRIGCONVEDGE_NONE</MatcherCondition> 
        <ParserCondition>STM32F4|STM32F2</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for ADC ExternalTrigInjecConv F4 and F2 family">
    <description>
        <MXDBVersion>DB.4.0.180</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>ADC[1-4]*\..*</MatcherOnKey>
        <MatcherPattern>ExternalTrigInjecConv</MatcherPattern>
        <MatchToPattern>ADC_EXTERNALTRIGINJECCONV_T1_CC4</MatchToPattern> 
        <MatcherCondition>ExternalTrigInjecConvEdge!=ADC_EXTERNALTRIGINJECCONV_EDGE_NONE</MatcherCondition>  
        <ParserCondition>STM32F4|STM32F2</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="ADC SamplingTime fix with FW L0 ">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>ADC.SamplingTime</MatcherOnKey>
        <MatcherPattern>ADC_SAMPLETIME_7CYCLES_5</MatcherPattern>
        <MatchToPattern>ADC_SAMPLETIME_3CYCLES_5</MatchToPattern> 
        <ParserCondition>STM32L0</ParserCondition>  
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<rule name="ADC SamplingTime fix with FW L0 ">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>ADC.SamplingTime</MatcherOnKey>
        <MatcherPattern>ADC_SAMPLETIME_28CYCLES_5</MatcherPattern>
        <MatchToPattern>ADC_SAMPLETIME_12CYCLES_5</MatchToPattern> 
        <ParserCondition>STM32L0</ParserCondition>  
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="ADC SamplingTime fix with FW L0">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>ADC.SamplingTime</MatcherOnKey>
        <MatcherPattern>ADC_SAMPLETIME_41CYCLES_5</MatcherPattern>
        <MatchToPattern>ADC_SAMPLETIME_19CYCLES_5</MatchToPattern>  
        <ParserCondition>STM32L0</ParserCondition> 
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="ADC SamplingTime fix with FW L0">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>ADC.SamplingTime</MatcherOnKey>
        <MatcherPattern>ADC_SAMPLETIME_55CYCLES_5</MatcherPattern>
        <MatchToPattern>ADC_SAMPLETIME_39CYCLES_5</MatchToPattern>
        <ParserCondition>STM32L0</ParserCondition>   
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="ADC SamplingTime fix with FW L0 ">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>ADC.SamplingTime</MatcherOnKey>
        <MatcherPattern>ADC_SAMPLETIME_71CYCLES_5</MatcherPattern>
        <MatchToPattern>ADC_SAMPLETIME_79CYCLES_5</MatchToPattern>   
        <ParserCondition>STM32L0</ParserCondition>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="ADC SamplingTime fix with FW L0">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>ADC.SamplingTime</MatcherOnKey>
        <MatcherPattern>ADC_SAMPLETIME_239CYCLES_5</MatcherPattern>
        <MatchToPattern>ADC_SAMPLETIME_160CYCLES_5</MatchToPattern>   
        <ParserCondition>STM32L0</ParserCondition>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename USB_OE Signal">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>.*Signal</MatcherOnKey>
        <MatcherPattern>USB_OE</MatcherPattern>
        <MatchToPattern>USB_NOE</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE417|DIE435|DIE445|DIE447|DIE448</ParserCondition>
    </description>
</rule>
<rule name="Rename Activate_OE Mode">
    <description>
        <MXDBVersion>DB.4.0.190</MXDBVersion>
        <MatcherOnKey>.*Mode</MatcherOnKey>
        <MatcherPattern>Activate_OE</MatcherPattern>
        <MatchToPattern>Activate_NOE</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE417|DIE435|DIE445|DIE447|DIE448</ParserCondition>
    </description>
</rule>
<!-- Start update for DIE462 / DIE415 -->
<rule name="Rename DIE462/DIE415 pin PC14/OSC32_IN -> PC14-OSC32_IN (PC14)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PC14.*</MatcherOnKey>
        <MatcherPattern>"PC14/OSC32_IN"</MatcherPattern>
        <MatchToPattern>"PC14-OSC32_IN (PC14)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462|DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462/DIE415 pin PC15/OSC32_OUT -> PC15-OSC32_OUT (PC15)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PC15.*</MatcherOnKey>
        <MatcherPattern>"PC15/OSC32_OUT"</MatcherPattern>
        <MatchToPattern>"PC15-OSC32_OUT (PC15)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462|DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462/DIE415 pin PH0/OSC_IN -> PH0-OSC_IN (PH0)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PH0.*</MatcherOnKey>
        <MatcherPattern>"PH0/OSC_IN"</MatcherPattern>
        <MatchToPattern>"PH0-OSC_IN (PH0)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462|DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462/DIE415 pin PH1/OSC_OUT -> PH1-OSC_OUT (PH1)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PH1.*</MatcherOnKey>
        <MatcherPattern>"PH1/OSC_OUT"</MatcherPattern>
        <MatchToPattern>"PH1-OSC_OUT (PH1)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462|DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462 pin PA13 -> PA13 (JTMS/SWDIO)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PA13.*</MatcherOnKey>
        <MatcherPattern>"PA13"</MatcherPattern>
        <MatchToPattern>"PA13 (JTMS/SWDIO)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE415 pin PA13 -> PA13 (JTMS/SWDIO)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PA13.*</MatcherOnKey>
        <MatcherPattern>"PA13"</MatcherPattern>
        <MatchToPattern>"PA13 (JTMS-SWDIO)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462 pin PA14 -> PA14 (JTCK/SWCLK)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PA14.*</MatcherOnKey>
        <MatcherPattern>"PA14"</MatcherPattern>
        <MatchToPattern>"PA14 (JTCK/SWCLK)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE415 pin PA14 -> PA14 (JTCK/SWCLK)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PA14.*</MatcherOnKey>
        <MatcherPattern>"PA14"</MatcherPattern>
        <MatchToPattern>"PA14 (JTCK-SWCLK)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462/DIE415 pin PA15 -> PA15 (JTDI)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PA15.*</MatcherOnKey>
        <MatcherPattern>"PA15"</MatcherPattern>
        <MatchToPattern>"PA15 (JTDI)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462|DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462 pin PB3 -> PB3 (JTD0/TRACESWO)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PB3.*</MatcherOnKey>
        <MatcherPattern>"PB3"</MatcherPattern>
        <MatchToPattern>"PB3 (JTD0/TRACESWO)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE415 pin PB3 -> PB3 (JTD0-TRACESWO)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PB3.*</MatcherOnKey>
        <MatcherPattern>"PB3"</MatcherPattern>
        <MatchToPattern>"PB3 (JTD0-TRACESWO)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462/DIE415 pin PB4 -> PB4 (NJTRST)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PB4.*</MatcherOnKey>
        <MatcherPattern>"PB4"</MatcherPattern>
        <MatchToPattern>"PB4 (NJTRST)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462|DIE415</ParserCondition>
    </description>
</rule>
<rule name="Rename DIE462 pin PH3/BOOT0 -> PH3-BOOT0 (BOOT0)">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>PH3.*</MatcherOnKey>
        <MatcherPattern>"PH3/BOOT0"</MatcherPattern>
        <MatchToPattern>"PH3-BOOT0 (BOOT0)"</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>		
        <ParserCondition>DIE462</ParserCondition>
    </description>
</rule>
<rule name="Rename CRYP DataEncryptionTypesList to Algorithm">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>CRYP.*</MatcherOnKey>
        <MatcherPattern>DataEncryptionTypesList</MatcherPattern>
        <MatchToPattern>Algorithm</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename AES DataEncryptionTypesList to Algorithm">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>AES.*</MatcherOnKey>
        <MatcherPattern>DataEncryptionTypesList</MatcherPattern>
        <MatchToPattern>Algorithm</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>DIE470</ParserCondition>
    </description>
</rule>
<rule name="Rename TDESECB to CRYP_TDES_ECB">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>TDESECB</MatcherPattern>
        <MatchToPattern>CRYP_TDES_ECB</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule>
<rule name="Rename TDESCBC to CRYP_TDES_CBC">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>TDESCBC</MatcherPattern>
        <MatchToPattern>CRYP_TDES_CBC</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule>
<rule name="Rename DESECB to CRYP_DES_ECB">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>DESECB</MatcherPattern>
        <MatchToPattern>CRYP_DES_ECB</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule>
<rule name="Rename DESCBC to CRYP_DES_CBC">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>DESCBC</MatcherPattern>
        <MatchToPattern>CRYP_DES_CBC</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule>
<rule name="Rename AESECB to CRYP_AES_ECB">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>AESECB</MatcherPattern>
        <MatchToPattern>CRYP_AES_ECB</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule>
<rule name="Rename AESCBC to CRYP_AES_CBC">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>AESCBC</MatcherPattern>
        <MatchToPattern>CRYP_AES_CBC</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule>
<rule name="Rename AESCTR to CRYP_AES_CTR">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>AESCTR</MatcherPattern>
        <MatchToPattern>CRYP_AES_CTR</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule><rule name="Rename AESGCM to CRYP_AES_GCM">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>AESGCM</MatcherPattern>
        <MatchToPattern>CRYP_AES_GCM</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule><rule name="Rename AESCCM to CRYP_AES_CCM">
    <description>
        <MXDBVersion>DB.5.0.1</MXDBVersion>
        <MatcherOnKey>CRYP.Algorithm</MatcherOnKey>
        <MatcherPattern>AESCCM</MatcherPattern>
        <MatchToPattern>CRYP_AES_CCM</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F4|STM32F7</ParserCondition>
    </description>
</rule>
<!-- rename can val -->


<rule name="Rename CAN TimeSeg1 to BS1">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>TimeSeg1</MatcherPattern>
        <MatchToPattern>BS1</MatchToPattern>
       <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename CAN TimeSeg2 to BS2">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>TimeSeg2</MatcherPattern>
        <MatchToPattern>BS2</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename CAN SyncJumpWidth to SJW">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>SyncJumpWidth</MatcherPattern>
        <MatchToPattern>SJW</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="TimeTriggeredMode to TTCM">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>TimeTriggeredMode</MatcherPattern>
        <MatchToPattern>TTCM</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename CAN AutoBusOff to ABOM">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>AutoBusOff</MatcherPattern>
        <MatchToPattern>ABOM</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename CAN AutoWakeUp to AWUM">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>AutoWakeUp</MatcherPattern>
        <MatchToPattern>AWUM</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename CAN AutoRetransmission to NART">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>AutoRetransmission</MatcherPattern>
        <MatchToPattern>NART</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename CAN ReceiveFifoLocked to RFLM">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>ReceiveFifoLocked</MatcherPattern>
        <MatchToPattern>RFLM</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename CAN TransmitFifoPriority to TXFP">
    <description>
        <MXDBVersion>DB.4.0.240</MXDBVersion>
        <MatcherOnKey>CAN.*</MatcherOnKey>
        <MatcherPattern>TransmitFifoPriority</MatcherPattern>
        <MatchToPattern>TXFP</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<rule name="Rename HRTIMER HRTIM_OUTPUTFAULTLEVEL_HIGH in HRTIMER HRTIM_OUTPUTFAULTLEVEL_HIGHZ">
    <description>
        <MXDBVersion>DB.4.0.210</MXDBVersion>
        <MatcherOnKey>HRTIM.*</MatcherOnKey>
        <MatcherPattern>HRTIM_OUTPUTFAULTLEVEL_HIGH</MatcherPattern>
        <MatchToPattern>HRTIM_OUTPUTFAULTLEVEL_HIGHZ</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>STM32F3</ParserCondition>
    </description>
</rule>
<rule name="Rename TIMER TIM_CLEARINPUTSOURCE_OCREFCLR in  TIMER TIM_CLEARINPUTSOURCE_NONE for F7 family">
    <description>
        <MXDBVersion>DB.4.0.220</MXDBVersion>
        <MatcherOnKey>TIM.*</MatcherOnKey>
        <MatcherPattern>TIM_CLEARINPUTSOURCE_OCREFCLR</MatcherPattern>
        <MatchToPattern>TIM_CLEARINPUTSOURCE_NONE</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
        <ParserCondition>DIE451|DIE449|DIE452</ParserCondition>
    </description>
</rule>
<rule name="FDCAN_R1 - Rename FDCAN mode Master into Classic">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>[PA11|PB8|PD0|PA12|PB9|PD1]\.Mode</MatcherOnKey>
        <MatcherPattern>Master</MatcherPattern>
        <MatchToPattern>FDCANMaster</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN_R2 - Rename FDCAN mode Slave into Classic">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>[PB12|PB5|PB13|PB6]\.Mode</MatcherOnKey>
        <MatcherPattern>Slave</MatcherPattern>
        <MatchToPattern>FDCANSlave</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>

<rule name="FDCAN1_R3 - if PA10.Mode=FullDuplex, add Pin PA12">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PA10.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PA12;AddedKeys:PA12.Mode=FDCANFD,PA12.Signal=FDCAN1_TX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R3 - if PA9.Mode=FullDuplex, add Pin PA11">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PA9.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PA11;AddedKeys:PA11.Mode=FDCANFD,PA11.Signal=FDCAN1_RX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R3 - Alternatepin_1 - if PE1.Mode=FullDuplex, add Pin PB9">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PE1.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PB9;AddedKeys:PB9.Mode=FDCANFD,PB9.Signal=FDCAN1_TX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R3 - Alternatepin_1 - if PE0.Mode=FullDuplex, add Pin PB8">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PE0.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PB8;AddedKeys:PB8.Mode=FDCANFD,PB8.Signal=FDCAN1_RX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R3 - Alternatepin_2 - if PD5.Mode=FullDuplex, add Pin PD1">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PD5.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PD1;AddedKeys:PD1.Mode=FDCANFD,PD1.Signal=FDCAN1_TX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R3 - Alternatepin_2 - if PD4.Mode=FullDuplex, add Pin PD0">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PD4.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PD0;AddedKeys:PD0.Mode=FDCANFD,PD0.Signal=FDCAN1_RX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R4 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PA10">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PA10.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_TXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R4 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PA9">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PA9.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_RXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R4 - Alternatepin_1 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PE1">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PE1.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_TXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R4 - Alternatepin_1 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PE0">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PE0.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_RXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R4 - Alternatepin_2 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PD5">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PD5.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_TXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN1_R4 - Alternatepin_2 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PD4">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PD4.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_RXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>

<rule name="FDCAN2_R3 - if PD10.Mode=FullDuplex, add Pin PB13">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PD10.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PB13;AddedKeys:PB13.Mode=FDCANFD,PB13.Signal=FDCAN2_TX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN2_R3 - if PD9.Mode=FullDuplex, add Pin PB12">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PD9.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PB12;AddedKeys:PB12.Mode=FDCANFD,PB12.Signal=FDCAN2_RX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN2_R3 - Alternatepin_1 - if PB7.Mode=FullDuplex, add Pin PB6">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PB7.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PB6;AddedKeys:PB6.Mode=FDCANFD,PB6.Signal=FDCAN2_TX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN2_R3 - Alternatepin_1 - if PD9.Mode=FullDuplex, add Pin PB12">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <RuleType>AddIPMode</RuleType>
        <MatcherOnKey>PD9.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Pin:PB12;AddedKeys:PB12.Mode=FDCANFD,PB12.Signal=FDCAN2_RX</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN2_R4 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PD10">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PD10.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_TXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN2_R4 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PD9">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PD9.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_RXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN2_R4 - Alternatepin_1 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PB7">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PB7.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_TXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>
<rule name="FDCAN2_R4 - Alternatepin_1 - Rename Mode FullDuplex into Enable FDCAN_TXFD for pin PD6">
    <description>
        <MXDBVersion>DB.4.0.230</MXDBVersion>
        <MatcherOnKey>PD6.Mode</MatcherOnKey>
        <MatcherPattern>FullDuplex</MatcherPattern>
        <MatchToPattern>Enable_FDCAN_RXFD</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
	<ParserCondition>STM32H7</ParserCondition>
    </description>
</rule>

<rule name="USART TxPinLevelInvertParam Mode">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>USART(.*).TxPinLevelInvertParam</MatcherOnKey>
        <MatcherPattern>(.*)_ADVFEATURE_TXINV_(.*)</MatcherPattern>
        <MatchToPattern>ADVFEATURE_TXINV_$2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART RxPinLevelInvertParam Mode">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>USART(.*).RxPinLevelInvertParam</MatcherOnKey>
        <MatcherPattern>(.*)_ADVFEATURE_RXINV_(.*)</MatcherPattern>
        <MatchToPattern>ADVFEATURE_RXINV_$2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART DataInvertParam Mode">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>USART(.*).DataInvertParam</MatcherOnKey>
        <MatcherPattern>(.*)_ADVFEATURE_DATAINV_(.*)</MatcherPattern>
        <MatchToPattern>ADVFEATURE_DATAINV_$2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART SwapParam Mode">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>USART(.*).SwapParam</MatcherOnKey>
        <MatcherPattern>(.*)_ADVFEATURE_SWAP_(.*)</MatcherPattern>
        <MatchToPattern>ADVFEATURE_SWAP_$2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART OverrunDisableParam Mode">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>USART(.*).OverrunDisableParam</MatcherOnKey>
        <MatcherPattern>(.*)_ADVFEATURE_OVERRUN_(.*)</MatcherPattern>
        <MatchToPattern>ADVFEATURE_OVERRUN_$2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART DMADisableonRxErrorParam Mode">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>USART(.*).DMADisableonRxErrorParam</MatcherOnKey>
        <MatcherPattern>(.*)_ADVFEATURE_DMA_(.*)</MatcherPattern>
        <MatchToPattern>ADVFEATURE_DMA_$2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USART MSBFirstParam Mode">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>USART(.*).MSBFirstParam</MatcherOnKey>
        <MatcherPattern>(.*)_ADVFEATURE_MSBFIRST_(.*)</MatcherPattern>
        <MatchToPattern>ADVFEATURE_MSBFIRST_$2</MatchToPattern>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>

<rule name="Update MwName for USB_DEVICE">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <MatcherOnKey>ProjectManager.functionlistsort.*</MatcherOnKey>
        <MatcherPattern>(.*)MX_USB_DEVICE_Init(.*)</MatcherPattern>
        <MatchToPattern>MX_Usb_Device_Init</MatchToPattern>   
        <ParserCondition>STM32WB</ParserCondition>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<rule name="Change PWR_Regulator_Voltage_Scale Default Value for RCC  H7 family">
    <description>
        <MXDBVersion>DB.5.0.10</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>PWR_Regulator_Voltage_Scale</MatcherPattern>
        <MatchToPattern>PWR_REGULATOR_VOLTAGE_SCALE1</MatchToPattern>   
        <ParserCondition>STM32H7</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="UART/USART IPParameter rename Prescaler parameter to ClockPrescaler">
    <description>
        <MXDBVersion>DB.5.0.20</MXDBVersion>
        <MatcherOnKey>U(.*)ART(.*).IPParameters</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32H7</ParserCondition>
        <MatcherCondition>Prescaler=PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="UART/USART Prescaler rename Prescaler parameter to ClockPrescaler">
    <description>
        <MXDBVersion>DB.5.0.20</MXDBVersion>
        <MatcherOnKey>U(.*)ART(.*)\.Prescaler</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <MatcherCondition>Prescaler=PRESCALER_DIV(.*)</MatcherCondition>
        <ParserCondition>STM32H7</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="TIM1CLockSelection">
    <description>
        <MXDBVersion>DB.5.0.20</MXDBVersion>
        <MatcherOnKey>RCC.(.*)</MatcherOnKey>
        <MatcherPattern>TIM1CLockSelection</MatcherPattern>
        <MatchToPattern>TIM1CLockSelectionVirtual</MatchToPattern>
        <ParserCondition>STM32G0</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="TIM15CLockSelection">
    <description>
        <MXDBVersion>DB.5.0.20</MXDBVersion>
        <MatcherOnKey>RCC.(.*)</MatcherOnKey>
        <MatcherPattern>TIM15CLockSelection</MatcherPattern>
        <MatchToPattern>TIM15CLockSelectionVirtual</MatchToPattern>
        <ParserCondition>STM32G0</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="align RCC SDMMC3CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>SDMMC3CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_SDMMC3CLKSOURCE_HCLK2</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC SDMMC12CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>SDMMC12CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_SDMMC12CLKSOURCE_HCLK6</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC QSPICLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>QSPICLockSelection</MatcherPattern>
        <MatchToPattern>RCC_QSPICLKSOURCE_ACLK</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC QSPICLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>FMCCLockSelection</MatcherPattern>
        <MatchToPattern>RCC_FMCCLKSOURCE_ACLK</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
 <rule name="align RCC SPI6CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>SPI6CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_SPI6CLKSOURCE_PCLK5</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC LPTIM23CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LPTIM23CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_LPTIM23CLKSOURCE_PCLK3</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC LPTIM1CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LPTIM1CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_LPTIM1CLKSOURCE_PCLK1</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC USART1CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>USART1CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_USART1CLKSOURCE_PCLK5</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC USART24CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>USART24CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_UART24CLKSOURCE_PCLK1</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC USART6CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>USART6CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_USART6CLKSOURCE_PCLK2</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC UART78CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>UART78CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_UART78CLKSOURCE_PCLK1</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC USART35CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>USART35CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_UART35CLKSOURCE_PCLK1</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC SPI45CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>SPI45CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_SPI45CLKSOURCE_PCLK2</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC I2C46CLockSelection BCLK value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>RCC_I2C46CLKSOURCE_BCLK</MatcherPattern>
        <MatchToPattern>RCC_I2C46CLKSOURCE_PCLK5</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC SPI45CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>SPI45CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_SPI45CLKSOURCE_PCLK2</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC I2C12CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>I2C12CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_I2C12CLKSOURCE_PCLK1</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC I2C35CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>I2C35CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_I2C35CLKSOURCE_PCLK1</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="align RCC LPTIM45CLockSelection default value on MP1">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LPTIM45CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_LPTIM45CLKSOURCE_PCLK3</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="Rename DCMI PIXCK signal">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <ParserCondition>(STM32F2&amp;DIE411)|(STM32F4&amp;DIE413)|(STM32F4&amp;DIE419)</ParserCondition>
        <MatcherOnKey>.*\.Signal</MatcherOnKey>
        <MatcherPattern>DCMI_PIXCK</MatcherPattern>
        <MatchToPattern>DCMI_PIXCLK</MatchToPattern>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>
<rule name="Change Default Value for I2C46CLockSelection MP1 family">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>I2C46CLockSelection</MatcherPattern>
        <MatchToPattern>RCC_I2C46CLKSOURCE_PCLK5</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="Change Default Value for UART for G4, G0 and WB families">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>UART*\..*</MatcherOnKey>
        <MatcherPattern>WordLength</MatcherPattern>
        <MatchToPattern>WORDLENGTH_7B</MatchToPattern>   
        <ParserCondition>STM32G0|STM32G4|STM32WB</ParserCondition>
        <MatcherCondition>!UART$1_IRDA &amp; !UART$1_LIN</MatcherCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="Change Default Value for USART for G4, G0 and WB families">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>USART(.*)\..*</MatcherOnKey>
        <MatcherPattern>WordLength</MatcherPattern>
        <MatchToPattern>WORDLENGTH_7B</MatchToPattern>   
        <ParserCondition>STM32G0|STM32G4|STM32WB</ParserCondition>
        <MatcherCondition>IPParameters!=(.)*VirtualMode-SmartCard(.)*|(.)*VirtualMode-LIN(.)*</MatcherCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>

<rule name="Change Default Value for USART for G4 family">
    <description>
        <MXDBVersion>DB.5.0.40</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>UART(.*)\..*</MatcherOnKey>
        <MatcherPattern>WordLength</MatcherPattern>
        <MatchToPattern>WORDLENGTH_7B</MatchToPattern>   
        <ParserCondition>STM32G4</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="Change USART1CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>USART1CLockSelection</MatcherPattern>
        <MatchToPattern>USART1CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change USART2CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>USART2CLockSelection</MatcherPattern>
        <MatchToPattern>USART2CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change USART3CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>USART3CLockSelection</MatcherPattern>
        <MatchToPattern>USART3CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change UART4CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>UART4CLockSelection</MatcherPattern>
        <MatchToPattern>UART4CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change UART5CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>UART5CLockSelection</MatcherPattern>
        <MatchToPattern>UART5CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change LPUART1CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LPUART1CLockSelection</MatcherPattern>
        <MatchToPattern>LPUART1CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change LPTIM1CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LPTIM1CLockSelection</MatcherPattern>
        <MatchToPattern>LPTIM1CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change LPTIM2CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LPTIM2CLockSelection</MatcherPattern>
        <MatchToPattern>LPTIM2CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change RCC_MCO1Source refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>RCC_MCO1Source</MatcherPattern>
        <MatchToPattern>RCC_MCO1SourceVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change LSCOSource1 refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LSCOSource1</MatcherPattern>
        <MatchToPattern>LSCOSource1Virtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change SMPSCLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>SMPSCLockSelection</MatcherPattern>
        <MatchToPattern>SMPSCLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32WB</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change LPTIM3CLockSelection refparam name for MP1">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>LPTIM3CLockSelection</MatcherPattern>
        <MatchToPattern>LPTIM3CLockSelectionVirtual</MatchToPattern>   
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change MPCBB* Default Template Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_Template_MPCBB\d*_Secure\.Mode</MatcherOnKey>
        <MatcherPattern>Default_(MPCBB\d*.)_Template</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.$1_NonSecureArea_Choice=Use default memory template from partition_stm32l5xx.h</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change MPCWM* or MPCBB* Secure Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_MPC[WB][MB]\d*_Secure\.Mode</MatcherOnKey>
        <MatcherPattern>(MPC[WB][MB]\d*)_Secure</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.$1_NonSecureArea_Choice=from full Secured</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change MPCWM* or MPCBB* No Secure Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_NoMPC[WB][MB]\d*_Secure\.Mode</MatcherOnKey>
        <MatcherPattern>No_(MPC[WB][MB]\d*)_Secure</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.$1_NonSecureArea_Choice=from full Not Secured</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change TZSC IP Secure Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_IP_Secure\.Mode</MatcherOnKey>
        <MatcherPattern>IP_Secure</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.TZSC_Secure_IP_Choice=by Individual Unsecuring from full Secured</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change TZSC IP No Secure Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_NoIP_Secure\.Mode</MatcherOnKey>
        <MatcherPattern>No_IP_Secure</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.TZSC_Secure_IP_Choice=by Individual Securing from full Not Secured</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change TZSC IP Privilege Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_IP_Privilege\.Mode</MatcherOnKey>
        <MatcherPattern>IP_Privilege</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.TZSC_Privilege_IP_Choice=by Individual Unprivileging from full Privileged</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change TZSC IP No Privilege Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_NoIP_Privilege\.Mode</MatcherOnKey>
        <MatcherPattern>No_IP_Privilege</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.TZSC_Privilege_IP_Choice=by Individual Privileging from full Not Privileged</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change TZIC IT Secure Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_IT_Secure\.Mode</MatcherOnKey>
        <MatcherPattern>IT_Secure</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.TZIC_Configure_IT_Choice=by Individual Disabling from full Enabled</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change TZIC IT No Secure Mode to Parameters">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>ChangeIPModeToParameter</RuleType>
        <MatcherOnKey>VP_GTZC_VS_NoIT_Secure\.Mode</MatcherOnKey>
        <MatcherPattern>No_IT_Secure</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.TZIC_Configure_IT_Choice=by Individual Enabling from full Disabled</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>

<rule name="Add MPCBB1_NonSecureArea_Start_Address value with referenced to MPCBB1_NonSecureArea_Start value">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>AddParameterValueWithReferencedValue</RuleType>
        <MatcherOnKey>GTZC\.MPCBB1_NonSecureArea_Start</MatcherOnKey>
        <MatcherPattern>GTZC\.MPCBB1_NonSecureArea_Start=(.*)</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.MPCBB1_NonSecureArea_Start_Address=(MPCBB1_NonSecureArea_SRAM1_BASE_NS + $1)</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Add MPCBB2_NonSecureArea_Start_Address value with referenced to MPCBB2_NonSecureArea_Start value">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>AddParameterValueWithReferencedValue</RuleType>
        <MatcherOnKey>GTZC\.MPCBB2_NonSecureArea_Start</MatcherOnKey>
        <MatcherPattern>GTZC\.MPCBB2_NonSecureArea_Start=(.*)</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.MPCBB2_NonSecureArea_Start_Address=(MPCBB2_NonSecureArea_SRAM2_BASE_NS + $1)</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Add MPCWM1_NonSecureArea*_Start_Address value with referenced to MPCWM1_NonSecureArea*_Start value">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>AddParameterValueWithReferencedValue</RuleType>
        <MatcherOnKey>GTZC\.MPCWM1_NonSecureArea\d*_Start</MatcherOnKey>
        <MatcherPattern>GTZC\.MPCWM1_NonSecureArea(\d*)_Start=(.*)</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.MPCWM1_NonSecureArea$1_Start_Address=(MPCWM1_NonSecureArea_OCTOSPI1_BASE + $2)</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Add MPCWM2_NonSecureArea*_Start_Address value with referenced to MPCWM2_NonSecureArea*_Start value">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>AddParameterValueWithReferencedValue</RuleType>
        <MatcherOnKey>GTZC\.MPCWM2_NonSecureArea\d*_Start</MatcherOnKey>
        <MatcherPattern>GTZC\.MPCWM2_NonSecureArea(\d*)_Start=(.*)</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.MPCWM2_NonSecureArea$1_Start_Address=(MPCWM2_NonSecureArea_FMC_BANK1 + $2)</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Add MPCWM3_NonSecureArea_Start_Address value with referenced to MPCWM3_NonSecureArea_Start value">
    <description>
        <MXDBVersion>DB.5.0.50</MXDBVersion>
        <RuleType>AddParameterValueWithReferencedValue</RuleType>
        <MatcherOnKey>GTZC\.MPCWM3_NonSecureArea_Start</MatcherOnKey>
        <MatcherPattern>GTZC\.MPCWM3_NonSecureArea_Start=(.*)</MatcherPattern>
        <MatchToPattern>AddedKeys:GTZC.MPCWM3_NonSecureArea_Start_Address=(MPCWM3_NonSecureArea_FMC_BANK3 + $1)</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
    </description>
</rule>
<rule name="Change Default Value for PLL1UserDefinedConfig">
    <description>
        <MXDBVersion>DB.5.0.60</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>PLL1UserDefinedConfig</MatcherPattern>
        <MatchToPattern>true</MatchToPattern>   
        <ParserCondition>STM32MP1</ParserCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="Change GPIO_PuPd Default Value for USART in async mode">
    <description>
        <MXDBVersion>DB.5.0.20</MXDBVersion>
        <RuleType>ChangeDefaultGPIOValue</RuleType>
        <MatcherOnKey>(.*).Mode=Asynchronous</MatcherOnKey>
        <MatcherPattern>GPIO_PuPd</MatcherPattern>
        <MatchToPattern>GPIO_PULLUP</MatchToPattern>   
        <ParserCondition>STM32G0|STM32WB</ParserCondition>
        <MatcherCondition>Signal=USART(.*)_(.*)X</MatcherCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="Change SMPSDivider Default Value">
    <description>
        <MXDBVersion>DB.5.0.20</MXDBVersion>
        <RuleType>ChangeDefaultValue</RuleType>
        <MatcherOnKey>RCC*\..*</MatcherOnKey>
        <MatcherPattern>SMPSDivider</MatcherPattern>
        <MatchToPattern>1</MatchToPattern>   
        <ParserCondition>STM32WB</ParserCondition>
        <MatcherCondition>SMPSCLockSelectionVirtual=RCC_SMPSCLKSOURCE_HSI</MatcherCondition>
        <SeparatorOnValue>.</SeparatorOnValue>
    </description>
</rule>
<rule name="OPAMP">
    <description>
        <MXDBVersion>DB.6.0.0</MXDBVersion>
        <MatcherOnKey>(.*).Signal</MatcherOnKey>
        <MatcherPattern>OPAMP(.*)_VINM</MatcherPattern>
        <MatchToPattern>OPAMP$1_VINM0</MatchToPattern>
        <MatcherCondition>Mode=PGA(.*)</MatcherCondition>
        <ParserCondition>STM32G4</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32H7">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).IPParameters</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32H7</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32H7">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).Prescaler</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32H7</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32WB">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).IPParameters</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32WB</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32WB">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).Prescaler</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32WB</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32G4">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).IPParameters</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32G4</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32G4">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).Prescaler</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32G4</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>

<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32L5">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).Prescaler</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32L5</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>

<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32G4">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).IPParameters</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32WL</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="LPUART IPParameter rename Prescaler parameter to ClockPrescaler for STM32G4">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>LPUART(.*).Prescaler</MatcherOnKey>
        <MatcherPattern>Prescaler</MatcherPattern>
        <MatchToPattern>ClockPrescaler</MatchToPattern>
        <ParserCondition>STM32WL</ParserCondition>
        <MatcherCondition>Prescaler=UART_PRESCALER_DIV(.*)</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="USB device lib V2.5.3 for L0 rename USBD_SUPPORT_USER_STRING parameter to USBD_SUPPORT_USER_STRING_DESC4">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>USB_DEVICE(.*)</MatcherOnKey>
        <MatcherPattern>USBD_SUPPORT_USER_STRING</MatcherPattern>
        <MatchToPattern>USBD_SUPPORT_USER_STRING_DESC</MatchToPattern>
        <ParserCondition>STM32L0</ParserCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>	
    </description>
</rule>
<rule name="I2SCLockSelection clock entry align">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <MatcherOnKey>RCC\.(.*)</MatcherOnKey>
        <MatcherPattern>RCC_I2SCLKSOURCE_HSE</MatcherPattern>
        <MatchToPattern>RCC_I2SCLKSOURCE_HSI</MatchToPattern>
        <ParserCondition>STM32G4</ParserCondition>
        <SeparatorOnValue>,</SeparatorOnValue>
    </description>
</rule>

<rule name="Assign TIMx context if used as SYS timebase">
    <description>
        <MXDBVersion>DB.6.0.10</MXDBVersion>
        <RuleType>AssignTimToSysContext</RuleType>
        <MatcherOnKey>VP_SYS(.*)_VS_tim(.+).Mode</MatcherOnKey>
        <MatcherCondition>Mcu.ContextNb=2</MatcherCondition>
        <SeparatorOnValue>__No_Separator</SeparatorOnValue>
        <ParserCondition>STM32H7|STM32L5</ParserCondition>
     </description>
</rule>

</rules>
