protected override void InsertResetAndHaltCommands(int idxLoad, QuickSetupDatabase.ProgrammingInterface iface, QuickSetupDatabase.TargetDeviceFamily device) { const string unprotectCommand = "mon flash protect 0 64 last off"; const string resetHalt = "mon reset halt"; const string restartAtEntry = "mon reset halt"; // set $pc = _start"; int idx; idx = Settings.StartupCommands.IndexOf(unprotectCommand); if (idx == -1) { Settings.StartupCommands.Insert(idxLoad, unprotectCommand); } idx = Settings.StartupCommands.IndexOf(resetHalt); if (idx == -1) { Settings.StartupCommands.Insert(idxLoad, resetHalt); } idx = Settings.StartupCommands.IndexOf(restartAtEntry, idxLoad + 1); if (idx == -1) { Settings.StartupCommands.Add(restartAtEntry); } }
protected override void InsertResetAndHaltCommands(int idxLoad, QuickSetupDatabase.ProgrammingInterface iface, QuickSetupDatabase.TargetDeviceFamily device) { /* int idxHalt = Settings.StartupCommands.IndexOf("mon reset halt"); * if (idxHalt == -1) * Settings.StartupCommands.Insert(idxLoad, "mon reset halt");*/ }