comparison python/ide.py @ 250:f5fba5b554d7

Removal of obsolete editor
author Windel Bouwman
date Sun, 28 Jul 2013 19:07:51 +0200
parents e41e4109addd
children 6ed3d3a82a63
comparison
equal deleted inserted replaced
249:e41e4109addd 250:f5fba5b554d7
281 self.buildOutput.append(str(err)) 281 self.buildOutput.append(str(err))
282 self.builderrors.setErrorList(self.diag.diags) 282 self.builderrors.setErrorList(self.diag.diags)
283 ce.setErrors(self.diag.diags) 283 ce.setErrors(self.diag.diags)
284 return 284 return
285 285
286 self.buildOutput.append("Flashing stm32f4 discovery")
287 code_s = outs.getSection('code') 286 code_s = outs.getSection('code')
288 self.debugInfo = code_s.debugInfos() 287 self.debugInfo = code_s.debugInfos()
288 self.buildOutput.append("Flashing stm32f4 discovery")
289 if self.ctrlToolbar.device:
290 bts = code_s.to_bytes()
291 self.ctrlToolbar.device.writeFlash(0x08000000, bts)
292 stl = self.ctrlToolbar.device.iface
293 stl.reset()
294 stl.halt()
289 295
290 self.buildOutput.append("Done!") 296 self.buildOutput.append("Done!")
291 297
292 if __name__ == '__main__': 298 if __name__ == '__main__':
293 app = QApplication(sys.argv) 299 app = QApplication(sys.argv)