--- a/targets/LPC/__init__.py Wed Jun 02 16:35:00 2010 +0200
+++ b/targets/LPC/__init__.py Wed Jun 02 16:40:06 2010 +0200
@@ -1,11 +1,22 @@
+from subprocess import Popen,PIPE from .. import toolchain_makefile
class LPC_target(toolchain_makefile):
+ """Returns ready to send signed + sized intel formated hex program""" - return open(os.path.join(self.buildpath, "ArmPLC_rom.bin"), "rb").read()
+ ['arm-elf-size','-B',os.path.join(self.buildpath,"ArmPLC_rom.elf")], + stdout=PIPE).communicate()[0].splitlines()[1].split()[0]) + res = "&" + hashlib.md5(open(os.path.join(self.buildpath, "ArmPLC_rom.bin"), "rb").read(size)).hexdigest() + '\n' +\ + "$" + str(size) + '\n' +\ + open(os.path.join(self.buildpath, "ArmPLC_rom.hex"), "r").read()