From 46a14bb12136bba0b98423edd41b4139fe806325 Mon Sep 17 00:00:00 2001 From: Alex Evans <715855+mmalex@users.noreply.github.com> Date: Tue, 25 Jul 2023 20:56:28 +0100 Subject: fix build process to use binmaker.py that calls uf2conv and also commit a built version... --- binmaker.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'binmaker.py') diff --git a/binmaker.py b/binmaker.py index 4e3b6e2..ee98fa9 100644 --- a/binmaker.py +++ b/binmaker.py @@ -35,6 +35,19 @@ def main(): except IOError as e: print(f"Failed to write file: {e}") exit(2) + fname = f"plink{ver1}{ver2}{ver3}.uf2" + print(f'outputting {fname}...') + # python ../../uf2conv.py -o ${ProjName}.uf2 -c -f STM32L4 ${ProjName}.hex + class DotAccessibleObject: + def __getattr__(self, key): return False + uf2args = DotAccessibleObject() + uf2args.output=fname + uf2args.convert=True + uf2args.family='STM32L4' + uf2args.input='sw/Release/plinkyblack.hex' + uf2args.base='0x2000' + import uf2conv + uf2conv.uf2conv(uf2args) if __name__ == "__main__": -- cgit v1.2.3