Преглед на файлове

1、配置PLL,内核时钟采用PLL_CLK(80M),LSPI使用PLL时钟,UART、CAN使用SOSC时钟(16M)
2、删除FlexIO在UART中的应用,仅保留uart0-2

BJQX-ZHENGCHAO\Zhengchao преди 2 години
родител
ревизия
1d16ea4a84
променени са 5 файла, в които са добавени 160 реда и са изтрити 349 реда
  1. 2 2
      config/Can.xdm
  2. 1 1
      config/EcuM.xdm
  3. 153 180
      config/Mcu.xdm
  4. 4 4
      config/Spi.xdm
  5. 0 162
      config/Uart.xdm

+ 2 - 2
config/Can.xdm

@@ -221,7 +221,7 @@
                           </a:a>
                         </d:var>
                         <d:var name="CanControllerPrescaller" type="INTEGER" 
-                               value="12"/>
+                               value="8"/>
                         <d:var name="CanControllerPrescallerAlternate" 
                                type="INTEGER" value="10">
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -565,7 +565,7 @@
                           </a:a>
                         </d:var>
                         <d:var name="CanControllerPrescaller" type="INTEGER" 
-                               value="12"/>
+                               value="8"/>
                         <d:var name="CanControllerPrescallerAlternate" 
                                type="INTEGER" value="10">
                           <a:a name="IMPORTER_INFO" value="@DEF"/>

+ 1 - 1
config/EcuM.xdm

@@ -115,7 +115,7 @@
                       <d:var name="EcuMSleepModeSuspend" type="BOOLEAN" 
                              value="true"/>
                       <d:ref name="EcuMSleepModeMcuModeRef" type="REFERENCE" 
-                             value="ASPath:/Mcu/Mcu/McuModuleConfiguration/McuModeSettingConf_0"/>
+                             value="ASPath:/Mcu/Mcu/McuModuleConfiguration/McuModeSettingConf_Run"/>
                       <d:lst name="EcuMWakeupSourceMask">
                         <d:ref type="REFERENCE" >
                           <a:a name="IMPORTER_INFO" value="@DEF"/>

+ 153 - 180
config/Mcu.xdm

@@ -31,7 +31,7 @@
                 <d:var name="McuInitClock" type="BOOLEAN" value="true">
                   <a:a name="IMPORTER_INFO" value="@DEF"/>
                 </d:var>
-                <d:var name="McuNoPll" type="BOOLEAN" value="true"/>
+                <d:var name="McuNoPll" type="BOOLEAN" value="false"/>
                 <d:var name="McuEnterLowPowerMode" type="BOOLEAN" value="true">
                   <a:a name="IMPORTER_INFO" value="@DEF"/>
                 </d:var>
@@ -273,12 +273,7 @@
                 </d:var>
               </d:ctr>
               <d:ctr name="McuModuleConfiguration" type="IDENTIFIABLE">
-                <d:var name="McuNumberOfMcuModes" type="INTEGER" value="1">
-                  <a:a name="IMPORTER_INFO">
-                    <a:v>@DEF</a:v>
-                    <a:v>@CALC</a:v>
-                  </a:a>
-                </d:var>
+                <d:var name="McuNumberOfMcuModes" type="INTEGER" value="3"/>
                 <d:var name="McuRamSectors" type="INTEGER" value="0">
                   <a:a name="IMPORTER_INFO">
                     <a:v>@DEF</a:v>
@@ -313,13 +308,9 @@
                 </d:var>
                 <d:ctr name="McuAllowedModes" type="IDENTIFIABLE">
                   <d:var name="McuAllowHighSpeedRunMode" type="BOOLEAN" 
-                         value="false">
-                    <a:a name="IMPORTER_INFO" value="@DEF"/>
-                  </d:var>
+                         value="true"/>
                   <d:var name="McuAllowVeryLowPowerModes" type="BOOLEAN" 
-                         value="false">
-                    <a:a name="IMPORTER_INFO" value="@DEF"/>
-                  </d:var>
+                         value="true"/>
                 </d:ctr>
                 <d:lst name="McuClockSettingConfig" type="MAP">
                   <d:ctr name="McuClockSettingConfig_0" type="IDENTIFIABLE">
@@ -334,9 +325,7 @@
                       <a:a name="IMPORTER_INFO" value="@DEF"/>
                     </d:var>
                     <d:var name="McuScgClkOutSelect" type="ENUMERATION" 
-                           value="SLOW_CLK">
-                      <a:a name="IMPORTER_INFO" value="@DEF"/>
-                    </d:var>
+                           value="SPLL_CLK"/>
                     <d:ctr name="McuRunClockConfig" type="IDENTIFIABLE">
                       <d:var name="McuPreDivSystemClockFrequency" type="FLOAT" 
                              value="4.8E7">
@@ -346,54 +335,43 @@
                         </a:a>
                       </d:var>
                       <d:var name="McuCoreClockFrequency" type="FLOAT" 
-                             value="4.8E7">
+                             value="8.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSystemClockFrequency" type="FLOAT" 
-                             value="4.8E7">
+                             value="8.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuBusClockFrequency" type="FLOAT" 
-                             value="4.8E7">
+                             value="4.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuFlashClockFrequency" type="FLOAT" 
-                             value="2.4E7">
+                             value="2.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
-                        </a:a>
-                      </d:var>
-                      <d:var name="McuSystemClockSwitch" type="ENUMERATION" 
-                             value="FIRC_CLK">
-                        <a:a name="IMPORTER_INFO">
                           <a:v>@DEF</a:v>
-                          <a:v>@CALC</a:v>
                         </a:a>
                       </d:var>
-                      <d:var name="McuCoreClockDivider" type="INTEGER" value="1">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="McuBusClockDivider" type="INTEGER" value="1">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="McuSlowClockDivider" type="INTEGER" value="2">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                      <d:var name="McuSystemClockSwitch" type="ENUMERATION" 
+                             value="SPLL_CLK"/>
+                      <d:var name="McuCoreClockDivider" type="INTEGER" value="2"/>
+                      <d:var name="McuBusClockDivider" type="INTEGER" value="2"/>
+                      <d:var name="McuSlowClockDivider" type="INTEGER" value="4"/>
                       <d:var name="McuScgClkOutFrequency" type="FLOAT" 
-                             value="2.4E7">
+                             value="1.6E8">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                     </d:ctr>
@@ -406,31 +384,31 @@
                         </a:a>
                       </d:var>
                       <d:var name="McuCoreClockFrequency" type="FLOAT" 
-                             value="1000000.0">
+                             value="2000000.0">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSystemClockFrequency" type="FLOAT" 
-                             value="1000000.0">
+                             value="2000000.0">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuBusClockFrequency" type="FLOAT" 
-                             value="125000.0">
+                             value="500000.0">
                         <a:a name="IMPORTER_INFO">
                           <a:v>@CALC</a:v>
                           <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuFlashClockFrequency" type="FLOAT" 
-                             value="250000.0">
+                             value="1000000.0">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSystemClockSwitch" type="ENUMERATION" 
@@ -440,18 +418,14 @@
                           <a:v>@CALC</a:v>
                         </a:a>
                       </d:var>
-                      <d:var name="McuCoreClockDivider" type="INTEGER" value="8">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="McuBusClockDivider" type="INTEGER" value="8"/>
-                      <d:var name="McuSlowClockDivider" type="INTEGER" value="4">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                      <d:var name="McuCoreClockDivider" type="INTEGER" value="4"/>
+                      <d:var name="McuBusClockDivider" type="INTEGER" value="4"/>
+                      <d:var name="McuSlowClockDivider" type="INTEGER" value="2"/>
                       <d:var name="McuScgClkOutFrequency" type="FLOAT" 
-                             value="250000.0">
+                             value="0.0">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                     </d:ctr>
@@ -464,54 +438,43 @@
                         </a:a>
                       </d:var>
                       <d:var name="McuCoreClockFrequency" type="FLOAT" 
-                             value="4.8E7">
+                             value="8.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSystemClockFrequency" type="FLOAT" 
-                             value="4.8E7">
+                             value="8.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuBusClockFrequency" type="FLOAT" 
-                             value="4.8E7">
+                             value="4.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuFlashClockFrequency" type="FLOAT" 
-                             value="2.4E7">
+                             value="2.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
-                        </a:a>
-                      </d:var>
-                      <d:var name="McuSystemClockSwitch" type="ENUMERATION" 
-                             value="FIRC_CLK">
-                        <a:a name="IMPORTER_INFO">
                           <a:v>@DEF</a:v>
-                          <a:v>@CALC</a:v>
                         </a:a>
                       </d:var>
-                      <d:var name="McuCoreClockDivider" type="INTEGER" value="1">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="McuBusClockDivider" type="INTEGER" value="1">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="McuSlowClockDivider" type="INTEGER" value="2">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                      <d:var name="McuSystemClockSwitch" type="ENUMERATION" 
+                             value="SPLL_CLK"/>
+                      <d:var name="McuCoreClockDivider" type="INTEGER" value="2"/>
+                      <d:var name="McuBusClockDivider" type="INTEGER" value="2"/>
+                      <d:var name="McuSlowClockDivider" type="INTEGER" value="4"/>
                       <d:var name="McuScgClkOutFrequency" type="FLOAT" 
-                             value="2.4E7">
+                             value="1.6E8">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                     </d:ctr>
@@ -520,22 +483,19 @@
                              value="true">
                         <a:a name="IMPORTER_INFO" value="@DEF"/>
                       </d:var>
-                      <d:var name="McuSOSCFrequency" type="FLOAT" 
-                             value="8000000.0">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                      <d:var name="McuSOSCFrequency" type="FLOAT" value="1.6E7"/>
                       <d:var name="McuSOSCDiv2Frequency" type="FLOAT" 
-                             value="8000000.0">
+                             value="1.6E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSOSCDiv1Frequency" type="FLOAT" 
-                             value="8000000.0">
+                             value="4000000.0">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSOSCEnable" type="BOOLEAN" value="true">
@@ -552,9 +512,7 @@
                       <d:var name="McuSOSCDiv2" type="INTEGER" value="1">
                         <a:a name="IMPORTER_INFO" value="@DEF"/>
                       </d:var>
-                      <d:var name="McuSOSCDiv1" type="INTEGER" value="1">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                      <d:var name="McuSOSCDiv1" type="INTEGER" value="4"/>
                       <d:var name="McuSOSCRangeSelect" type="ENUMERATION" 
                              value="HIGH_FREQ_RANGE">
                         <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -655,58 +613,46 @@
                     </d:ctr>
                     <d:ctr name="McuSystemPll" type="IDENTIFIABLE">
                       <d:var name="McuSystemPllUnderMcuControl" type="BOOLEAN" 
-                             value="false"/>
-                      <d:var name="McuSPLLFrequency" type="FLOAT" value="9.6E7">
+                             value="true"/>
+                      <d:var name="McuSPLLFrequency" type="FLOAT" value="1.6E8">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSPLLDiv2Frequency" type="FLOAT" 
-                             value="4.8E7">
+                             value="4.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
                       <d:var name="McuSPLLDiv1Frequency" type="FLOAT" 
-                             value="9.6E7">
+                             value="8.0E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
-                      <d:var name="McuSPLLEnable" type="BOOLEAN" value="false">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                      <d:var name="McuSPLLEnable" type="BOOLEAN" value="true"/>
                       <d:var name="McuSPLLClockMonitorResetEnable" 
                              type="BOOLEAN" value="false">
                         <a:a name="IMPORTER_INFO" value="@DEF"/>
                       </d:var>
                       <d:var name="McuSPLLClockMonitorEnable" type="BOOLEAN" 
-                             value="false">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="McuSPLLDiv2" type="INTEGER" value="2">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="McuSPLLDiv1" type="INTEGER" value="1">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                             value="true"/>
+                      <d:var name="McuSPLLDiv2" type="INTEGER" value="4"/>
+                      <d:var name="McuSPLLDiv1" type="INTEGER" value="2"/>
                       <d:var name="McuSPLLInputClkPreDivider" type="INTEGER" 
-                             value="1">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                             value="1"/>
                       <d:var name="McuSPLLInputFrequency" type="FLOAT" 
-                             value="8000000.0">
+                             value="1.6E7">
                         <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
                           <a:v>@CALC</a:v>
+                          <a:v>@DEF</a:v>
                         </a:a>
                       </d:var>
-                      <d:var name="McuSPLLMultiplier" type="INTEGER" value="24">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
+                      <d:var name="McuSPLLMultiplier" type="INTEGER" value="20"/>
                       <d:var name="McuSPLLSelectSourceClock" type="ENUMERATION" 
                              value="SOSC_CLK">
                         <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -982,9 +928,7 @@
                       <d:ctr name="McuPeripheralClockConfig_3" 
                              type="IDENTIFIABLE">
                         <d:var name="McuPeripheralClockUnderMcuControl" 
-                               type="BOOLEAN" value="true">
-                          <a:a name="IMPORTER_INFO" value="@DEF"/>
-                        </d:var>
+                               type="BOOLEAN" value="true"/>
                         <d:var name="McuPerName" type="ENUMERATION" 
                                value="FLEXCAN1">
                           <a:a name="IMPORTER_INFO">
@@ -993,9 +937,7 @@
                           </a:a>
                         </d:var>
                         <d:var name="McuPeripheralClockEnable" type="BOOLEAN" 
-                               value="true">
-                          <a:a name="IMPORTER_INFO" value="@DEF"/>
-                        </d:var>
+                               value="true"/>
                         <d:var name="McuPeripheralClockSelect" 
                                type="ENUMERATION" value="CLOCK_IS_OFF">
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -1212,7 +1154,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockSelect" 
-                               type="ENUMERATION" value="SIRC"/>
+                               type="ENUMERATION" value="SPLL"/>
                         <d:var name="McuPeripheralClockDivider" type="INTEGER" 
                                value="1">
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -1222,7 +1164,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockFrequency" type="FLOAT" 
-                               value="4000000.0">
+                               value="4.0E7">
                           <a:a name="IMPORTER_INFO">
                             <a:v>@CALC</a:v>
                             <a:v>@DEF</a:v>
@@ -1804,12 +1746,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockFrequency" type="FLOAT" 
-                               value="4000000.0">
-                          <a:a name="IMPORTER_INFO">
-                            <a:v>@CALC</a:v>
-                            <a:v>@DEF</a:v>
-                          </a:a>
-                        </d:var>
+                               value="4000000.0"/>
                       </d:ctr>
                       <d:ctr name="McuPeripheralClockConfig_26" 
                              type="IDENTIFIABLE">
@@ -1900,7 +1837,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockSelect" 
-                               type="ENUMERATION" value="SIRC"/>
+                               type="ENUMERATION" value="SOSC"/>
                         <d:var name="McuPeripheralClockDivider" type="INTEGER" 
                                value="1">
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -1910,7 +1847,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockFrequency" type="FLOAT" 
-                               value="4000000.0">
+                               value="1.6E7">
                           <a:a name="IMPORTER_INFO">
                             <a:v>@CALC</a:v>
                             <a:v>@DEF</a:v>
@@ -1935,7 +1872,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockSelect" 
-                               type="ENUMERATION" value="SIRC"/>
+                               type="ENUMERATION" value="SOSC"/>
                         <d:var name="McuPeripheralClockDivider" type="INTEGER" 
                                value="1">
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -1945,12 +1882,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockFrequency" type="FLOAT" 
-                               value="4000000.0">
-                          <a:a name="IMPORTER_INFO">
-                            <a:v>@CALC</a:v>
-                            <a:v>@DEF</a:v>
-                          </a:a>
-                        </d:var>
+                               value="1.6E7"/>
                       </d:ctr>
                       <d:ctr name="McuPeripheralClockConfig_30" 
                              type="IDENTIFIABLE">
@@ -1970,7 +1902,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockSelect" 
-                               type="ENUMERATION" value="SIRC"/>
+                               type="ENUMERATION" value="SOSC"/>
                         <d:var name="McuPeripheralClockDivider" type="INTEGER" 
                                value="1">
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -1980,12 +1912,7 @@
                           <a:a name="IMPORTER_INFO" value="@DEF"/>
                         </d:var>
                         <d:var name="McuPeripheralClockFrequency" type="FLOAT" 
-                               value="4000000.0">
-                          <a:a name="IMPORTER_INFO">
-                            <a:v>@CALC</a:v>
-                            <a:v>@DEF</a:v>
-                          </a:a>
-                        </d:var>
+                               value="1.6E7"/>
                       </d:ctr>
                       <d:ctr name="McuPeripheralClockConfig_31" 
                              type="IDENTIFIABLE">
@@ -2262,19 +2189,14 @@
                       <d:ctr name="McuClockReferencePoint_CAN" 
                              type="IDENTIFIABLE">
                         <d:var name="McuClockReferencePointFrequency" 
-                               type="FLOAT" value="4.8E7">
-                          <a:a name="IMPORTER_INFO">
-                            <a:v>@CALC</a:v>
-                            <a:v>@DEF</a:v>
-                          </a:a>
-                        </d:var>
+                               type="FLOAT" value="1.6E7"/>
                         <d:var name="McuClockFrequencySelect" 
-                               type="ENUMERATION" value="CUSTOM"/>
+                               type="ENUMERATION" value="SOSC_CLK"/>
                       </d:ctr>
                       <d:ctr name="McuClockReferencePoint_LPUART0_CLK" 
                              type="IDENTIFIABLE">
                         <d:var name="McuClockReferencePointFrequency" 
-                               type="FLOAT" value="4000000.0">
+                               type="FLOAT" value="1.6E7">
                           <a:a name="IMPORTER_INFO">
                             <a:v>@CALC</a:v>
                             <a:v>@DEF</a:v>
@@ -2286,33 +2208,28 @@
                       <d:ctr name="McuClockReferencePoint_LPUART1_CLK" 
                              type="IDENTIFIABLE">
                         <d:var name="McuClockReferencePointFrequency" 
-                               type="FLOAT" value="4000000.0"/>
+                               type="FLOAT" value="1.6E7"/>
                         <d:var name="McuClockFrequencySelect" 
                                type="ENUMERATION" value="LPUART1_CLK"/>
                       </d:ctr>
                       <d:ctr name="McuClockReferencePoint_LPUART2_CLK" 
                              type="IDENTIFIABLE">
                         <d:var name="McuClockReferencePointFrequency" 
-                               type="FLOAT" value="4000000.0"/>
+                               type="FLOAT" value="1.6E7"/>
                         <d:var name="McuClockFrequencySelect" 
                                type="ENUMERATION" value="LPUART2_CLK"/>
                       </d:ctr>
                       <d:ctr name="McuClockReferencePoint_FLEXIO_CLK" 
                              type="IDENTIFIABLE">
                         <d:var name="McuClockReferencePointFrequency" 
-                               type="FLOAT" value="4000000.0">
-                          <a:a name="IMPORTER_INFO">
-                            <a:v>@CALC</a:v>
-                            <a:v>@DEF</a:v>
-                          </a:a>
-                        </d:var>
+                               type="FLOAT" value="4000000.0"/>
                         <d:var name="McuClockFrequencySelect" 
                                type="ENUMERATION" value="FlexIO_CLK"/>
                       </d:ctr>
                       <d:ctr name="McuClockReferencePoint_LPSI2" 
                              type="IDENTIFIABLE">
                         <d:var name="McuClockReferencePointFrequency" 
-                               type="FLOAT" value="4000000.0">
+                               type="FLOAT" value="4.0E7">
                           <a:a name="IMPORTER_INFO">
                             <a:v>@CALC</a:v>
                             <a:v>@DEF</a:v>
@@ -2359,7 +2276,7 @@
                   </d:ref>
                 </d:ctr>
                 <d:lst name="McuModeSettingConf" type="MAP">
-                  <d:ctr name="McuModeSettingConf_0" type="IDENTIFIABLE">
+                  <d:ctr name="McuModeSettingConf_Run" type="IDENTIFIABLE">
                     <d:var name="McuMode" type="INTEGER" value="0">
                       <a:a name="IMPORTER_INFO">
                         <a:v>@DEF</a:v>
@@ -2374,6 +2291,70 @@
                       <a:a name="IMPORTER_INFO" value="@DEF"/>
                     </d:var>
                   </d:ctr>
+                  <d:ctr name="McuModeSettingConf_HSRun" type="IDENTIFIABLE">
+                    <d:var name="McuMode" type="INTEGER" value="1">
+                      <a:a name="IMPORTER_INFO">
+                        <a:v>@DEF</a:v>
+                        <a:v>@CALC</a:v>
+                      </a:a>
+                    </d:var>
+                    <d:var name="McuPowerMode" type="ENUMERATION" value="HSRUN">
+                      <a:a name="VARIANTS" type="Variant">
+                        <variant:pbvcond>
+                          <variant:criterion 
+                                             value="ASPath:/EB/PostBuildSelectable/Criterions/PostBuildSelectableCriterion"/>
+                          <variant:cond>
+                            <variant:tst expr="0"/>
+                          </variant:cond>
+                        </variant:pbvcond>
+                      </a:a>
+                    </d:var>
+                    <d:var name="McuEnableSleepOnExit" type="BOOLEAN" 
+                           value="false">
+                      <a:a name="IMPORTER_INFO" value="@DEF"/>
+                      <a:a name="VARIANTS" type="Variant">
+                        <variant:pbvcond>
+                          <variant:criterion 
+                                             value="ASPath:/EB/PostBuildSelectable/Criterions/PostBuildSelectableCriterion"/>
+                          <variant:cond>
+                            <variant:tst expr="0"/>
+                          </variant:cond>
+                        </variant:pbvcond>
+                      </a:a>
+                    </d:var>
+                  </d:ctr>
+                  <d:ctr name="McuModeSettingConf_VLPR" type="IDENTIFIABLE">
+                    <d:var name="McuMode" type="INTEGER" value="2">
+                      <a:a name="IMPORTER_INFO">
+                        <a:v>@DEF</a:v>
+                        <a:v>@CALC</a:v>
+                      </a:a>
+                    </d:var>
+                    <d:var name="McuPowerMode" type="ENUMERATION" value="VLPR">
+                      <a:a name="VARIANTS" type="Variant">
+                        <variant:pbvcond>
+                          <variant:criterion 
+                                             value="ASPath:/EB/PostBuildSelectable/Criterions/PostBuildSelectableCriterion"/>
+                          <variant:cond>
+                            <variant:tst expr="0"/>
+                          </variant:cond>
+                        </variant:pbvcond>
+                      </a:a>
+                    </d:var>
+                    <d:var name="McuEnableSleepOnExit" type="BOOLEAN" 
+                           value="false">
+                      <a:a name="IMPORTER_INFO" value="@DEF"/>
+                      <a:a name="VARIANTS" type="Variant">
+                        <variant:pbvcond>
+                          <variant:criterion 
+                                             value="ASPath:/EB/PostBuildSelectable/Criterions/PostBuildSelectableCriterion"/>
+                          <variant:cond>
+                            <variant:tst expr="0"/>
+                          </variant:cond>
+                        </variant:pbvcond>
+                      </a:a>
+                    </d:var>
+                  </d:ctr>
                 </d:lst>
                 <d:lst name="McuRamSectorSettingConf" type="MAP"/>
                 <d:ctr name="McuInterruptEvents" type="IDENTIFIABLE">
@@ -2429,9 +2410,7 @@
                       <a:a name="IMPORTER_INFO" value="@DEF"/>
                     </d:var>
                     <d:var name="McuExternalResetPinInterrupt" type="BOOLEAN" 
-                           value="false">
-                      <a:a name="IMPORTER_INFO" value="@DEF"/>
-                    </d:var>
+                           value="false"/>
                     <d:var name="McuWatchdogInterrupt" type="BOOLEAN" 
                            value="false">
                       <a:a name="IMPORTER_INFO" value="@DEF"/>
@@ -2452,17 +2431,11 @@
                 </d:ctr>
                 <d:ctr name="McuPowerControl" type="IDENTIFIABLE">
                   <d:var name="McuLowVoltageDetectInterruptEnable" 
-                         type="BOOLEAN" value="false">
-                    <a:a name="IMPORTER_INFO" value="@DEF"/>
-                  </d:var>
+                         type="BOOLEAN" value="true"/>
                   <d:var name="McuLowVoltageDetectResetEnable" type="BOOLEAN" 
-                         value="false">
-                    <a:a name="IMPORTER_INFO" value="@DEF"/>
-                  </d:var>
+                         value="true"/>
                   <d:var name="McuLowVoltageWarningInterruptEnable" 
-                         type="BOOLEAN" value="false">
-                    <a:a name="IMPORTER_INFO" value="@DEF"/>
-                  </d:var>
+                         type="BOOLEAN" value="true"/>
                   <d:var name="McuLPODisable" type="BOOLEAN" value="false">
                     <a:a name="IMPORTER_INFO" value="@DEF"/>
                   </d:var>

+ 4 - 4
config/Spi.xdm

@@ -175,7 +175,7 @@
                 </d:lst>
                 <d:lst name="SpiExternalDevice" type="MAP">
                   <d:ctr name="SpiExternalDevice_0" type="IDENTIFIABLE">
-                    <d:var name="SpiBaudrate" type="FLOAT" value="500000.0">
+                    <d:var name="SpiBaudrate" type="FLOAT" value="1000000.0">
                       <a:a name="VARIANTS" type="Variant">
                         <variant:pbvcond>
                           <variant:criterion 
@@ -259,7 +259,7 @@
                         </variant:pbvcond>
                       </a:a>
                     </d:var>
-                    <d:var name="SpiTimeClk2Cs" type="FLOAT" value="8.0E-6">
+                    <d:var name="SpiTimeClk2Cs" type="FLOAT" value="3.0E-6">
                       <a:a name="VARIANTS" type="Variant">
                         <variant:pbvcond>
                           <variant:criterion 
@@ -270,7 +270,7 @@
                         </variant:pbvcond>
                       </a:a>
                     </d:var>
-                    <d:var name="SpiTimeCs2Clk" type="FLOAT" value="5.0E-6">
+                    <d:var name="SpiTimeCs2Clk" type="FLOAT" value="1.0E-6">
                       <a:a name="VARIANTS" type="Variant">
                         <variant:pbvcond>
                           <variant:criterion 
@@ -281,7 +281,7 @@
                         </variant:pbvcond>
                       </a:a>
                     </d:var>
-                    <d:var name="SpiTimeCs2Cs" type="FLOAT" value="5.0E-6">
+                    <d:var name="SpiTimeCs2Cs" type="FLOAT" value="2.0E-6">
                       <a:a name="VARIANTS" type="Variant">
                         <variant:pbvcond>
                           <variant:criterion 

+ 0 - 162
config/Uart.xdm

@@ -300,168 +300,6 @@
                       </d:var>
                     </d:ctr>
                   </d:ctr>
-                  <d:ctr name="FLEXIO_RX" type="IDENTIFIABLE">
-                    <d:var name="UartHwUsing" type="ENUMERATION" 
-                           value="FLEXIO_IP"/>
-                    <d:var name="UartChannelId" type="INTEGER" value="3"/>
-                    <d:ref name="UartClockRef" type="REFERENCE" 
-                           value="ASPath:/Mcu/Mcu/McuModuleConfiguration/McuClockSettingConfig_0/McuClockReferencePoint_FLEXIO_CLK"/>
-                    <d:ref name="UartChannelEcucPartitionRef" type="REFERENCE" >
-                      <a:a name="ENABLE" value="false"/>
-                      <a:a name="IMPORTER_INFO" value="@DEF"/>
-                    </d:ref>
-                    <d:ctr name="DetailModuleConfiguration" type="IDENTIFIABLE">
-                      <d:var name="UartHwChannel" type="ENUMERATION" value="">
-                        <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
-                          <a:v>@CALC</a:v>
-                        </a:a>
-                      </d:var>
-                      <d:var name="DesireBaudrate" type="ENUMERATION" 
-                             value="LPUART_UART_BAUDRATE_9600">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartInteruptDmaMethod" type="ENUMERATION" 
-                             value="LPUART_UART_IP_USING_INTERRUPTS">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:ref name="UartDmaTxChannelRef" type="REFERENCE" >
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:ref>
-                      <d:ref name="UartDmaRxChannelRef" type="REFERENCE" >
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:ref>
-                      <d:var name="UartParityType" type="ENUMERATION" 
-                             value="LPUART_UART_IP_PARITY_DISABLED">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartStopBitNumber" type="ENUMERATION" 
-                             value="LPUART_UART_IP_ONE_STOP_BIT">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartWordLength" type="ENUMERATION" 
-                             value="LPUART_UART_IP_8_BITS_PER_CHAR">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartCallback" type="FUNCTION-NAME" 
-                             value="NULL_PTR">
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                    </d:ctr>
-                    <d:ctr name="FlexioModuleConfiguration" type="IDENTIFIABLE">
-                      <d:ref name="UartHwChannelRef" type="REFERENCE" 
-                             value="ASPath:/Mcl/Mcl/MclConfig/FlexioCommon_0/FLEXIO_RX"/>
-                      <d:var name="FlexioUartInteruptDmaMethod" 
-                             type="ENUMERATION" 
-                             value="FLEXIO_UART_IP_DRIVER_TYPE_INTERRUPTS">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:ref name="FlexioDmaChannelRef" type="REFERENCE" >
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:ref>
-                      <d:var name="DesireBaudrate" type="ENUMERATION" 
-                             value="FLEXIO_UART_BAUDRATE_9600">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="bitCount" type="ENUMERATION" 
-                             value="FLEXIO_UART_IP_8_BITS_PER_CHAR">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="driverDirection" type="ENUMERATION" 
-                             value="FLEXIO_UART_IP_DIRECTION_RX"/>
-                      <d:var name="FlexioCallbackFunction" type="FUNCTION-NAME" 
-                             value="NULL_PTR">
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                    </d:ctr>
-                  </d:ctr>
-                  <d:ctr name="FLEXIO_TX" type="IDENTIFIABLE">
-                    <d:var name="UartHwUsing" type="ENUMERATION" 
-                           value="FLEXIO_IP"/>
-                    <d:var name="UartChannelId" type="INTEGER" value="4"/>
-                    <d:ref name="UartClockRef" type="REFERENCE" 
-                           value="ASPath:/Mcu/Mcu/McuModuleConfiguration/McuClockSettingConfig_0/McuClockReferencePoint_FLEXIO_CLK"/>
-                    <d:ref name="UartChannelEcucPartitionRef" type="REFERENCE" >
-                      <a:a name="ENABLE" value="false"/>
-                      <a:a name="IMPORTER_INFO" value="@DEF"/>
-                    </d:ref>
-                    <d:ctr name="DetailModuleConfiguration" type="IDENTIFIABLE">
-                      <d:var name="UartHwChannel" type="ENUMERATION" value="">
-                        <a:a name="IMPORTER_INFO">
-                          <a:v>@DEF</a:v>
-                          <a:v>@CALC</a:v>
-                        </a:a>
-                      </d:var>
-                      <d:var name="DesireBaudrate" type="ENUMERATION" 
-                             value="LPUART_UART_BAUDRATE_9600">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartInteruptDmaMethod" type="ENUMERATION" 
-                             value="LPUART_UART_IP_USING_INTERRUPTS">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:ref name="UartDmaTxChannelRef" type="REFERENCE" >
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:ref>
-                      <d:ref name="UartDmaRxChannelRef" type="REFERENCE" >
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:ref>
-                      <d:var name="UartParityType" type="ENUMERATION" 
-                             value="LPUART_UART_IP_PARITY_DISABLED">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartStopBitNumber" type="ENUMERATION" 
-                             value="LPUART_UART_IP_ONE_STOP_BIT">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartWordLength" type="ENUMERATION" 
-                             value="LPUART_UART_IP_8_BITS_PER_CHAR">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="UartCallback" type="FUNCTION-NAME" 
-                             value="NULL_PTR">
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                    </d:ctr>
-                    <d:ctr name="FlexioModuleConfiguration" type="IDENTIFIABLE">
-                      <d:ref name="UartHwChannelRef" type="REFERENCE" 
-                             value="ASPath:/Mcl/Mcl/MclConfig/FlexioCommon_0/FLEXIO_TX"/>
-                      <d:var name="FlexioUartInteruptDmaMethod" 
-                             type="ENUMERATION" 
-                             value="FLEXIO_UART_IP_DRIVER_TYPE_INTERRUPTS">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:ref name="FlexioDmaChannelRef" type="REFERENCE" >
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:ref>
-                      <d:var name="DesireBaudrate" type="ENUMERATION" 
-                             value="FLEXIO_UART_BAUDRATE_9600">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="bitCount" type="ENUMERATION" 
-                             value="FLEXIO_UART_IP_8_BITS_PER_CHAR">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="driverDirection" type="ENUMERATION" 
-                             value="FLEXIO_UART_IP_DIRECTION_TX">
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                      <d:var name="FlexioCallbackFunction" type="FUNCTION-NAME" 
-                             value="NULL_PTR">
-                        <a:a name="ENABLE" value="false"/>
-                        <a:a name="IMPORTER_INFO" value="@DEF"/>
-                      </d:var>
-                    </d:ctr>
-                  </d:ctr>
                 </d:lst>
               </d:ctr>
               <d:ctr name="CommonPublishedInformation" type="IDENTIFIABLE">