def setNecessaryInfo( self, mcuSeries ):
     self.mcuSeries = mcuSeries
     if self.mcuSeries in uidef.kMcuSeries_iMXRTyyyy:
         lpspiNorOpt0, lpspiNorOpt1 = uivar.getBootDeviceConfiguration(RTyyyy_uidef.kBootDevice_LpspiNor)
         self.recoverySpiNorOpt0 = lpspiNorOpt0
         self.recoverySpiNorOpt1 = lpspiNorOpt1
         deviceType = ['1bit NOR Flash',
                       'EEPROM']
         spiIndex = ['1', '2', '3', '4']
         spiSpeed = ['20MHz', '10MHz', '5MHz', '2MHz']
     elif self.mcuSeries == uidef.kMcuSeries_iMXRTxxx:
         flexcommSpiNorOpt0, flexcommSpiNorOpt1 = uivar.getBootDeviceConfiguration(RTxxx_uidef.kBootDevice_FlexcommSpiNor)
         self.recoverySpiNorOpt0 = flexcommSpiNorOpt0
         self.recoverySpiNorOpt1 = flexcommSpiNorOpt1
         deviceType = ['1bit NOR Flash',
                       'SFDP NOR Flash']
         spiIndex = ['0', '1', '2', '3', '4', '5', '6', '7']
         spiSpeed = ['24MHz']
     else:
         pass
     self.m_choice_deviceType.Clear()
     self.m_choice_deviceType.SetItems(deviceType)
     self.m_choice_spiIndex.Clear()
     self.m_choice_spiIndex.SetItems(spiIndex)
     self.m_choice_spiSpeed.Clear()
     self.m_choice_spiSpeed.SetItems(spiSpeed)
     self._recoverLastSettings()
Esempio n. 2
0
 def __init__(self, parent):
     bootDeviceWin_UsdhcSd.bootDeviceWin_UsdhcSd.__init__(self, parent)
     self._setLanguage()
     self.hasMultiUsdhcBootInstance = None
     usdhcSdOpt = uivar.getBootDeviceConfiguration(RTyyyy_uidef.kBootDevice_UsdhcSd)
     self.usdhcSdOpt = usdhcSdOpt
     self._recoverLastSettings()
 def __init__(self, parent):
     bootDeviceWin_FlexspiNor.bootDeviceWin_FlexspiNor.__init__(
         self, parent)
     flexspiNorOpt0, flexspiNorOpt1, flexspiDeviceModel = uivar.getBootDeviceConfiguration(
         uidef.kBootDevice_FlexspiNor)
     #1. Prepare Flash option
     # 0xc0000006 is the tag for Serial NOR parameter selection
     # bit [31:28] Tag fixed to 0x0C
     # bit [27:24] Option size fixed to 0
     # bit [23:20] Flash type option
     #             0 - QuadSPI SDR NOR
     #             1 - QUadSPI DDR NOR
     # bit [19:16] Query pads (Pads used for query Flash Parameters)
     #             0 - 1
     # bit [15:12] CMD pads (Pads used for query Flash Parameters)
     #             0 - 1
     # bit [11: 08] Quad Mode Entry Setting
     #             0 - Not Configured, apply to devices:
     #                 - With Quad Mode enabled by default or
     #                 - Compliant with JESD216A/B or later revision
     #             1 - Set bit 6 in Status Register 1
     #             2 - Set bit 1 in Status Register 2
     #             3 - Set bit 7 in Status Register 2
     #             4 - Set bit 1 in Status Register 2 by 0x31 command
     # bit [07: 04]  Misc. control field
     #             3 - Data Order swapped, used for Macronix OctaFLASH devcies only (except MX25UM51345G)
     #             4 - Second QSPI NOR Pinmux
     # bit [03: 00] Flash Frequency, device specific
     self.flexspiNorOpt0 = flexspiNorOpt0
     self.flexspiNorOpt1 = flexspiNorOpt1
     self.flexspiDeviceModel = flexspiDeviceModel
     self._recoverLastSettings()
Esempio n. 4
0
 def __init__(self, parent):
     bootDeviceWin_UsdhcSd.bootDeviceWin_UsdhcSd.__init__(self, parent)
     self._setLanguage()
     usdhcSdOpt = uivar.getBootDeviceConfiguration(
         uidef.kBootDevice_UsdhcSd)
     self.usdhcSdOpt = usdhcSdOpt
     self._recoverLastSettings()
 def __init__(self, parent):
     bootDeviceWin_SemcNand.bootDeviceWin_SemcNand.__init__(self, parent)
     semcNandOpt, semcNandFcbOpt, semcNandImageInfoList = uivar.getBootDeviceConfiguration(uidef.kBootDevice_SemcNand)
     self.semcNandOpt = semcNandOpt
     self.semcNandFcbOpt = semcNandFcbOpt
     self.semcNandImageInfoList = semcNandImageInfoList[:]
     self._recoverLastSettings()
 def __init__(self, parent):
     bootDeviceWin_UsdhcMmc.bootDeviceWin_UsdhcMmc.__init__(self, parent)
     self._setLanguage()
     usdhcMmcOpt0, usdhcMmcOpt1 = uivar.getBootDeviceConfiguration(uidef.kBootDevice_UsdhcMmc)
     self.usdhcMmcOpt0 = usdhcMmcOpt0
     self.usdhcMmcOpt1 = usdhcMmcOpt1
     self._recoverLastSettings()
Esempio n. 7
0
 def __init__(self, parent):
     bootDeviceWin_SemcNor.bootDeviceWin_SemcNor.__init__(self, parent)
     semcNorOpt, semcNorSetting, semcNorDeviceModel = uivar.getBootDeviceConfiguration(
         RTyyyy_uidef.kBootDevice_SemcNor)
     self.semcNorOpt = semcNorOpt
     self.semcNorSetting = semcNorSetting
     self.semcNorDeviceModel = semcNorDeviceModel
     self._recoverSemcNorLastSettings()
Esempio n. 8
0
 def __init__(self, parent):
     bootDeviceWin_DCD.bootDeviceWin_DCD.__init__(self, parent)
     dcdCtrlDict, dcdSettingsDict = uivar.getBootDeviceConfiguration(
         uidef.kBootDevice_Dcd)
     self.dcdCtrlDict = dcdCtrlDict.copy()
     self.dcdSettingsDict = dcdSettingsDict.copy()
     self.destBinFilename = None
     self.destCfgFilename = None
     self.dcdModelFolder = None
 def __init__(self, parent):
     bootDeviceWin_SemcNand.bootDeviceWin_SemcNand.__init__(self, parent)
     self._setLanguage()
     semcNandOpt, semcNandFcbOpt, semcNandImageInfoList = uivar.getBootDeviceConfiguration(
         RTyyyy_uidef.kBootDevice_SemcNand)
     self.semcNandOpt = semcNandOpt
     self.semcNandFcbOpt = semcNandFcbOpt
     self.semcNandImageInfoList = semcNandImageInfoList[:]
     self.isSwEccSetAsDefaultInNandOpt = True
Esempio n. 10
0
 def __init__(self, parent):
     bootDeviceWin_LpspiNor.bootDeviceWin_LpspiNor.__init__(self, parent)
     lpspiNorOpt0, lpspiNorOpt1 = uivar.getBootDeviceConfiguration(uidef.kBootDevice_LpspiNor)
     #1. Prepare SPI NOR/EEPROM option block
     # bit [31:28] tag, fixed to 0x0c
     # bit [27:24] Size, (bytes/4) - 1
     # bit [23:20] SPI instance
     # bit [19:16] PCS index
     # bit [15:12] Flash type, 0-SPI NOR, 1-SPI EEPROM
     # bit [11:08] Flash size(Bytes) 0 - 512K, 1-1M, 2-2M, 3-4M, 4-8M
     #             13-64K, 14-128K, 15-256K, etc.
     # bit [07:04] Sector size (Bytes), 0-4K, 1-8K, 2-32K, 3-64K,
     #             4-128K, 5-256K
     # bit [03:00] Page size (Bytes) 0-256, 1-512
     self.lpspiNorOpt0 = lpspiNorOpt0
     self.lpspiNorOpt1 = lpspiNorOpt1
     self._recoverLastSettings()
Esempio n. 11
0
 def __init__(self, parent):
     bootDeviceWin_SemcNor.bootDeviceWin_SemcNor.__init__(self, parent)
     semcNorOpt, semcNorSetting = uivar.getBootDeviceConfiguration(uidef.kBootDevice_SemcNor)
     self.semcNorOpt = semcNorOpt
     self.semcNorSetting = semcNorSetting
Esempio n. 12
0
 def __init__(self, parent):
     bootDeviceWin_UsdhcSd.bootDeviceWin_UsdhcSd.__init__(self, parent)
     usdhcSDOpt = uivar.getBootDeviceConfiguration(
         uidef.kBootDevice_UsdhcSd)
     self.usdhcSDOpt = usdhcSDOpt
Esempio n. 13
0
 def __init__(self, parent):
     bootDeviceWin_LpspiNor.bootDeviceWin_LpspiNor.__init__(self, parent)
     lpspiNorOpt0, lpspiNorOpt1 = uivar.getBootDeviceConfiguration(
         uidef.kBootDevice_SemcNor)
     self.lpspiNorOpt0 = lpspiNorOpt0
     self.lpspiNorOpt1 = lpspiNorOpt1
Esempio n. 14
0
 def __init__(self, parent):
     bootDeviceWin_FlexspiNand.bootDeviceWin_FlexspiNand.__init__(
         self, parent)
     flexspiNandOpt, flexspiNandFcbOpt, flexspiNandImageInfo, flexspiNandKeyBlob = uivar.getBootDeviceConfiguration(
         RTyyyy_uidef.kBootDevice_FlexspiNand)
     self.flexspiNandOpt = flexspiNandOpt
     self.flexspiNandFcbOpt = flexspiNandFcbOpt
     self.flexspiNandImageInfo = flexspiNandImageInfo
     self.flexspiNandKeyBlob = flexspiNandKeyBlob
Esempio n. 15
0
 def __init__(self, parent):
     bootDeviceWin_UsdhcMmc.bootDeviceWin_UsdhcMmc.__init__(self, parent)
     usdhcMmcOpt1, usdhcMmcOpt2 = uivar.getBootDeviceConfiguration(
         uidef.kBootDevice_UsdhcMmc)
     self.usdhcMmcOpt1 = usdhcMmcOpt1
     self.usdhcMmcOpt2 = usdhcMmcOpt2
Esempio n. 16
0
 def __init__(self, parent):
     bootDeviceWin_FlexspiNand.bootDeviceWin_FlexspiNand.__init__(
         self, parent)
     self._setLanguage()
     flexspiNandOpt0, flexspiNandOpt1, flexspiNandFcbOpt, flexspiNandImageInfoList = uivar.getBootDeviceConfiguration(
         RTyyyy_uidef.kBootDevice_FlexspiNand)
     self.flexspiNandOpt0 = flexspiNandOpt0
     self.flexspiNandOpt1 = flexspiNandOpt1
     self.flexspiNandFcbOpt = flexspiNandFcbOpt
     self.flexspiNandImageInfoList = flexspiNandImageInfoList[:]
     self._recoverLastSettings()