Exemplo n.º 1
0
 def callbackBootDeviceConfiguration(self, event):
     if self.bootDevice == RTyyyy_uidef.kBootDevice_FlexspiNor or \
        self.bootDevice == RTxxx_uidef.kBootDevice_FlexspiNor or \
        self.bootDevice == RTxxx_uidef.kBootDevice_QuadspiNor:
         if self.tgt.isSipFlexspiNorDevice:
             self.popupMsgBox(uilang.kMsgLanguageContentDict[
                 'bootDeviceInfo_hasOnchipSerialNor'][self.languageIndex])
             return
     if self.checkIfSubWinHasBeenOpened():
         return
     if self.bootDevice == RTyyyy_uidef.kBootDevice_FlexspiNor or \
        self.bootDevice == RTxxx_uidef.kBootDevice_FlexspiNor or \
        self.bootDevice == RTxxx_uidef.kBootDevice_QuadspiNor:
         flexspiNorFrame = ui_cfg_flexspinor.secBootUiCfgFlexspiNor(None)
         if self.bootDevice == RTxxx_uidef.kBootDevice_QuadspiNor:
             flexspiNorFrame.SetTitle(
                 uilang.kSubLanguageContentDict['quadspinor_title'][
                     self.languageIndex])
         else:
             flexspiNorFrame.SetTitle(
                 uilang.kSubLanguageContentDict['flexspinor_title'][
                     self.languageIndex])
         flexspiNorFrame.setNecessaryInfo(self.tgt.flexspiFreqs)
         flexspiNorFrame.Show(True)
     elif self.bootDevice == RTyyyy_uidef.kBootDevice_FlexspiNand:
         flexspiNandFrame = ui_cfg_flexspinand.secBootUiFlexspiNand(None)
         flexspiNandFrame.SetTitle(u"FlexSPI NAND Device Configuration")
         flexspiNandFrame.Show(True)
     elif self.bootDevice == RTyyyy_uidef.kBootDevice_SemcNor:
         semcNorFrame = ui_cfg_semcnor.secBootUiSemcNor(None)
         semcNorFrame.SetTitle(u"SEMC NOR Device Configuration")
         semcNorFrame.Show(True)
     elif self.bootDevice == RTyyyy_uidef.kBootDevice_SemcNand:
         semcNandFrame = ui_cfg_semcnand.secBootUiCfgSemcNand(None)
         semcNandFrame.SetTitle(
             uilang.kSubLanguageContentDict['semcnand_title'][
                 self.languageIndex])
         semcNandFrame.setNecessaryInfo(
             self.tgt.isSwEccSetAsDefaultInNandOpt)
         semcNandFrame.Show(True)
     elif self.bootDevice == RTyyyy_uidef.kBootDevice_UsdhcSd:
         usdhcSdFrame = ui_cfg_usdhcsd.secBootUiUsdhcSd(None)
         usdhcSdFrame.SetTitle(
             uilang.kSubLanguageContentDict['usdhcsd_title'][
                 self.languageIndex])
         usdhcSdFrame.Show(True)
     elif self.bootDevice == RTyyyy_uidef.kBootDevice_UsdhcMmc:
         usdhcMmcFrame = ui_cfg_usdhcmmc.secBootUiUsdhcMmc(None)
         usdhcMmcFrame.SetTitle(
             uilang.kSubLanguageContentDict['usdhcmmc_title'][
                 self.languageIndex])
         usdhcMmcFrame.Show(True)
     elif self.bootDevice == RTyyyy_uidef.kBootDevice_LpspiNor:
         lpspiNorFrame = ui_cfg_lpspinor.secBootUiCfgLpspiNor(None)
         lpspiNorFrame.SetTitle(
             uilang.kSubLanguageContentDict['lpspinor_title'][
                 self.languageIndex])
         lpspiNorFrame.Show(True)
     else:
         pass
Exemplo n.º 2
0
 def callbackBootDeviceConfiguration( self, event ):
     if self.bootDevice == uidef.kBootDevice_FlexspiNor:
         if self.tgt.isSipFlexspiNorDevice:
             self.popupMsgBox('MCU has on-chip QSPI NOR Flash (4MB, 133MHz), so you don\'t need to configure this boot device!')
         else:
             flexspiNorFrame = ui_cfg_flexspinor.secBootUiCfgFlexspiNor(None)
             flexspiNorFrame.SetTitle(u"FlexSPI NOR Device Configuration")
             flexspiNorFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_FlexspiNand:
         flexspiNandFrame = ui_cfg_flexspinand.secBootUiFlexspiNand(None)
         flexspiNandFrame.SetTitle(u"FlexSPI NAND Device Configuration")
         flexspiNandFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_SemcNor:
         semcNorFrame = ui_cfg_semcnor.secBootUiSemcNor(None)
         semcNorFrame.SetTitle(u"SEMC NOR Device Configuration")
         semcNorFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_SemcNand:
         semcNandFrame = ui_cfg_semcnand.secBootUiCfgSemcNand(None)
         semcNandFrame.SetTitle(u"SEMC NAND Device Configuration")
         semcNandFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_UsdhcSd:
         usdhcSdFrame = ui_cfg_usdhcsd.secBootUiUsdhcSd(None)
         usdhcSdFrame.SetTitle(u"uSDHC SD Device Configuration")
         usdhcSdFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_UsdhcMmc:
         usdhcMmcFrame = ui_cfg_usdhcmmc.secBootUiUsdhcMmc(None)
         usdhcMmcFrame.SetTitle(u"uSDHC MMC Device Configuration")
         usdhcMmcFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_LpspiNor:
         lpspiNorFrame = ui_cfg_lpspinor.secBootUiCfgLpspiNor(None)
         lpspiNorFrame.SetTitle(u"LPSPI NOR/EEPROM Device Configuration")
         lpspiNorFrame.Show(True)
     else:
         pass
Exemplo n.º 3
0
 def callbackBootDeviceConfiguration(self, event):
     if self.bootDevice == uidef.kBootDevice_FlexspiNor:
         if self.tgt.isSipFlexspiNorDevice:
             self.popupMsgBox(uilang.kMsgLanguageContentDict[
                 'bootDeviceInfo_hasOnchipSerialNor'][self.languageIndex])
             return
     if self._checkIfSubWinHasBeenOpened():
         return
     if self.bootDevice == uidef.kBootDevice_FlexspiNor:
         flexspiNorFrame = ui_cfg_flexspinor.secBootUiCfgFlexspiNor(None)
         flexspiNorFrame.SetTitle(
             uilang.kSubLanguageContentDict['flexspinor_title'][
                 self.languageIndex])
         flexspiNorFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_FlexspiNand:
         flexspiNandFrame = ui_cfg_flexspinand.secBootUiFlexspiNand(None)
         flexspiNandFrame.SetTitle(u"FlexSPI NAND Device Configuration")
         flexspiNandFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_SemcNor:
         semcNorFrame = ui_cfg_semcnor.secBootUiSemcNor(None)
         semcNorFrame.SetTitle(u"SEMC NOR Device Configuration")
         semcNorFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_SemcNand:
         semcNandFrame = ui_cfg_semcnand.secBootUiCfgSemcNand(None)
         semcNandFrame.SetTitle(
             uilang.kSubLanguageContentDict['semcnand_title'][
                 self.languageIndex])
         semcNandFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_UsdhcSd:
         usdhcSdFrame = ui_cfg_usdhcsd.secBootUiUsdhcSd(None)
         usdhcSdFrame.SetTitle(u"uSDHC SD Device Configuration")
         usdhcSdFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_UsdhcMmc:
         usdhcMmcFrame = ui_cfg_usdhcmmc.secBootUiUsdhcMmc(None)
         usdhcMmcFrame.SetTitle(u"uSDHC MMC Device Configuration")
         usdhcMmcFrame.Show(True)
     elif self.bootDevice == uidef.kBootDevice_LpspiNor:
         lpspiNorFrame = ui_cfg_lpspinor.secBootUiCfgLpspiNor(None)
         lpspiNorFrame.SetTitle(
             uilang.kSubLanguageContentDict['lpspinor_title'][
                 self.languageIndex])
         lpspiNorFrame.Show(True)
     else:
         pass